Search in sources :

Example 1 with StackedCardThree

use of com.db.williamchartdemo.stackedchart.StackedCardThree 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;
}
Also used : StackedCardOne(com.db.williamchartdemo.stackedchart.StackedCardOne) BarCardThree(com.db.williamchartdemo.barchart.BarCardThree) LineCardTwo(com.db.williamchartdemo.linechart.LineCardTwo) AppCompatActivity(android.support.v7.app.AppCompatActivity) BarCardTwo(com.db.williamchartdemo.barchart.BarCardTwo) StackedCardTwo(com.db.williamchartdemo.stackedchart.StackedCardTwo) TextView(android.widget.TextView) StackedCardThree(com.db.williamchartdemo.stackedchart.StackedCardThree) BarCardOne(com.db.williamchartdemo.barchart.BarCardOne) CardView(android.support.v7.widget.CardView) TextView(android.widget.TextView) View(android.view.View) LineCardOne(com.db.williamchartdemo.linechart.LineCardOne) LineCardThree(com.db.williamchartdemo.linechart.LineCardThree)

Aggregations

AppCompatActivity (android.support.v7.app.AppCompatActivity)1 CardView (android.support.v7.widget.CardView)1 View (android.view.View)1 TextView (android.widget.TextView)1 BarCardOne (com.db.williamchartdemo.barchart.BarCardOne)1 BarCardThree (com.db.williamchartdemo.barchart.BarCardThree)1 BarCardTwo (com.db.williamchartdemo.barchart.BarCardTwo)1 LineCardOne (com.db.williamchartdemo.linechart.LineCardOne)1 LineCardThree (com.db.williamchartdemo.linechart.LineCardThree)1 LineCardTwo (com.db.williamchartdemo.linechart.LineCardTwo)1 StackedCardOne (com.db.williamchartdemo.stackedchart.StackedCardOne)1 StackedCardThree (com.db.williamchartdemo.stackedchart.StackedCardThree)1 StackedCardTwo (com.db.williamchartdemo.stackedchart.StackedCardTwo)1