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);
}
Aggregations