本文整理汇总了Java中com.justwayward.reader.bean.support.FindBean类的典型用法代码示例。如果您正苦于以下问题:Java FindBean类的具体用法?Java FindBean怎么用?Java FindBean使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FindBean类属于com.justwayward.reader.bean.support包,在下文中一共展示了FindBean类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onItemClick
import com.justwayward.reader.bean.support.FindBean; //导入依赖的package包/类
@Override
public void onItemClick(View view, int position, FindBean data) {
switch (position) {
case 0:
TopRankActivity.startActivity(activity);
break;
case 1:
SubjectBookListActivity.startActivity(activity);
break;
case 2:
startActivity(new Intent(activity, TopCategoryListActivity.class));
break;
case 3:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://jq.qq.com/?_wv=1027&k=46qbql8")));
break;
default:
break;
}
}
示例2: onItemClick
import com.justwayward.reader.bean.support.FindBean; //导入依赖的package包/类
@Override
public void onItemClick(View view, int position, FindBean data) {
switch (position) {
case 0:
BookDiscussionActivity.startActivity(activity,true);
break;
case 1:
BookReviewActivity.startActivity(activity);
break;
case 2:
BookHelpActivity.startActivity(activity);
break;
case 3:
GirlBookDiscussionActivity.startActivity(activity);
break;
case 4:
BookDiscussionActivity.startActivity(activity,false);
break;
default:
break;
}
}
示例3: onItemClick
import com.justwayward.reader.bean.support.FindBean; //导入依赖的package包/类
@Override
public void onItemClick(View view, int position, FindBean data) {
switch (position) {
case 0:
TopRankActivity.startActivity(activity);
break;
case 1:
SubjectBookListActivity.startActivity(activity);
break;
case 2:
startActivity(new Intent(activity, TopCategoryListActivity.class));
break;
default:
break;
}
}
示例4: initDatas
import com.justwayward.reader.bean.support.FindBean; //导入依赖的package包/类
@Override
public void initDatas() {
mList.clear();
mList.add(new FindBean("排行榜", R.drawable.home_find_rank));
mList.add(new FindBean("主题书单", R.drawable.home_find_topic));
mList.add(new FindBean("分类", R.drawable.home_find_category));
mList.add(new FindBean("官方QQ群", R.drawable.home_find_listen));
}
示例5: initDatas
import com.justwayward.reader.bean.support.FindBean; //导入依赖的package包/类
@Override
public void initDatas() {
mList.clear();
mList.add(new FindBean("综合讨论区", R.drawable.discuss_section));
mList.add(new FindBean("书评区", R.drawable.comment_section));
mList.add(new FindBean("书荒互助区", R.drawable.helper_section));
mList.add(new FindBean("女生区", R.drawable.girl_section));
mList.add(new FindBean("原创区",R.drawable.yuanchuang));
}
示例6: onBindData
import com.justwayward.reader.bean.support.FindBean; //导入依赖的package包/类
@Override
protected void onBindData(final EasyRVHolder holder, final int position, final FindBean item) {
holder.setText(R.id.tvTitle, item.getTitle());
holder.setImageResource(R.id.ivIcon,item.getIconResId());
holder.setOnItemViewClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
itemClickListener.onItemClick(holder.getItemView(), position, item);
}
});
}
示例7: initDatas
import com.justwayward.reader.bean.support.FindBean; //导入依赖的package包/类
@Override
public void initDatas() {
mList.clear();
mList.add(new FindBean("排行榜", R.drawable.home_find_rank));
mList.add(new FindBean("主题书单", R.drawable.home_find_topic));
mList.add(new FindBean("分类", R.drawable.home_find_category));
}
示例8: FindAdapter
import com.justwayward.reader.bean.support.FindBean; //导入依赖的package包/类
public FindAdapter(Context context, List<FindBean> list, OnRvItemClickListener
listener) {
super(context, list, R.layout.item_find);
this.itemClickListener = listener;
}