Search in sources :

Example 1 with RecyclerViewFragment

use of com.zhy.sample.fragment.RecyclerViewFragment in project AndroidAutoLayout by hongyangAndroid.

the class MainActivity method initDatas.

private void initDatas() {
    ArrayList<Fragment> mList = new ArrayList<Fragment>();
    mList.add(new ListFragment());
    mList.add(new RegisterFragment());
    mList.add(new PayFragment());
    mList.add(new RecyclerViewFragment());
    mList.add(new RecyclerViewGridFragment());
    mList.add(new TestFragment());
    mViewPager.setAdapter(new MyAdapter(getSupportFragmentManager(), mList));
}
Also used : RecyclerViewGridFragment(com.zhy.sample.fragment.RecyclerViewGridFragment) TestFragment(com.zhy.sample.fragment.TestFragment) RegisterFragment(com.zhy.sample.fragment.RegisterFragment) ArrayList(java.util.ArrayList) ListFragment(com.zhy.sample.fragment.ListFragment) PayFragment(com.zhy.sample.fragment.PayFragment) RecyclerViewFragment(com.zhy.sample.fragment.RecyclerViewFragment) Fragment(android.support.v4.app.Fragment) RegisterFragment(com.zhy.sample.fragment.RegisterFragment) TestFragment(com.zhy.sample.fragment.TestFragment) RecyclerViewFragment(com.zhy.sample.fragment.RecyclerViewFragment) PayFragment(com.zhy.sample.fragment.PayFragment) ListFragment(com.zhy.sample.fragment.ListFragment) RecyclerViewGridFragment(com.zhy.sample.fragment.RecyclerViewGridFragment)

Aggregations

Fragment (android.support.v4.app.Fragment)1 ListFragment (com.zhy.sample.fragment.ListFragment)1 PayFragment (com.zhy.sample.fragment.PayFragment)1 RecyclerViewFragment (com.zhy.sample.fragment.RecyclerViewFragment)1 RecyclerViewGridFragment (com.zhy.sample.fragment.RecyclerViewGridFragment)1 RegisterFragment (com.zhy.sample.fragment.RegisterFragment)1 TestFragment (com.zhy.sample.fragment.TestFragment)1 ArrayList (java.util.ArrayList)1