本文整理匯總了Java中com.justwayward.reader.ui.adapter.TopCategoryListAdapter類的典型用法代碼示例。如果您正苦於以下問題:Java TopCategoryListAdapter類的具體用法?Java TopCategoryListAdapter怎麽用?Java TopCategoryListAdapter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
TopCategoryListAdapter類屬於com.justwayward.reader.ui.adapter包,在下文中一共展示了TopCategoryListAdapter類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: configViews
import com.justwayward.reader.ui.adapter.TopCategoryListAdapter; //導入依賴的package包/類
@Override
public void configViews() {
showDialog();
mRvMaleCategory.setHasFixedSize(true);
mRvMaleCategory.setLayoutManager(new GridLayoutManager(this, 3));
mRvMaleCategory.addItemDecoration(new SupportGridItemDecoration(this));
mRvFeMaleCategory.setHasFixedSize(true);
mRvFeMaleCategory.setLayoutManager(new GridLayoutManager(this, 3));
mRvFeMaleCategory.addItemDecoration(new SupportGridItemDecoration(this));
mMaleCategoryListAdapter = new TopCategoryListAdapter(mContext, mMaleCategoryList, new ClickListener(Constant.Gender.MALE));
mFemaleCategoryListAdapter = new TopCategoryListAdapter(mContext, mFemaleCategoryList, new ClickListener(Constant.Gender.FEMALE));
mRvMaleCategory.setAdapter(mMaleCategoryListAdapter);
mRvFeMaleCategory.setAdapter(mFemaleCategoryListAdapter);
mPresenter.attachView(this);
mPresenter.getCategoryList();
}