Search in sources :

Example 1 with Category

use of com.zhan_dui.model.Category in project AnimeTaste by daimajia.

the class StartActivity method init.

public void init(Intent intent) {
    ArrayList<Animation> Animations = intent.getParcelableArrayListExtra("Animations");
    ArrayList<Category> Categories = intent.getParcelableArrayListExtra("Categories");
    mAdvertises = intent.getParcelableArrayListExtra("Advertises");
    ArrayList<Animation> Recommends = intent.getParcelableArrayListExtra("Recommends");
    mRecommendAdapter = new RecommendAdapter(mContext, mAdvertises, Recommends);
    mRecommendPager.setAdapter(mRecommendAdapter);
    mRecommendIndicator.setViewPager(mRecommendPager);
    mVideoAdapter = AnimationListAdapter.build(mContext, Animations);
    mVideoList.setAdapter(mVideoAdapter);
    CategoryListAdapter categoryListAdapter = new CategoryListAdapter(mContext, Categories);
    mCategoryList.setAdapter(categoryListAdapter);
    ViewUtils.setListViewHeightBasedOnChildren(mCategoryList);
}
Also used : Category(com.zhan_dui.model.Category) Animation(com.zhan_dui.model.Animation) RecommendAdapter(com.zhan_dui.adapters.RecommendAdapter)

Aggregations

RecommendAdapter (com.zhan_dui.adapters.RecommendAdapter)1 Animation (com.zhan_dui.model.Animation)1 Category (com.zhan_dui.model.Category)1