use of com.db.williamchartdemo.linechart.LineCardOne in project WilliamChart by diogobernardino.
the class ChartsFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View layout = inflater.inflate(R.layout.charts, container, false);
((AppCompatActivity) getActivity()).setSupportActionBar((Toolbar) layout.findViewById(R.id.toolbar));
((TextView) layout.findViewById(R.id.title)).setTypeface(Typeface.createFromAsset(getContext().getAssets(), "Ponsi-Regular.otf"));
(new LineCardOne((CardView) layout.findViewById(R.id.card1), getContext())).init();
(new LineCardThree((CardView) layout.findViewById(R.id.card2), getContext())).init();
(new BarCardOne((CardView) layout.findViewById(R.id.card3), getContext())).init();
(new StackedCardThree((CardView) layout.findViewById(R.id.card4), getContext())).init();
(new StackedCardOne((CardView) layout.findViewById(R.id.card5))).init();
(new BarCardThree((CardView) layout.findViewById(R.id.card6), getContext())).init();
(new BarCardTwo((CardView) layout.findViewById(R.id.card7), getContext())).init();
(new StackedCardTwo((CardView) layout.findViewById(R.id.card8))).init();
(new LineCardTwo((CardView) layout.findViewById(R.id.card9))).init();
return layout;
}
Aggregations