当前位置: 首页>>代码示例>>Java>>正文


Java FindBean类代码示例

本文整理汇总了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;
    }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:20,代码来源:FindFragment.java

示例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;
    }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:23,代码来源:CommunityFragment.java

示例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;
    }
}
 
开发者ID:JustWayward,项目名称:BookReader,代码行数:17,代码来源:FindFragment.java

示例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));
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:9,代码来源:FindFragment.java

示例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));
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:10,代码来源:CommunityFragment.java

示例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);
        }
    });
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:14,代码来源:FindAdapter.java

示例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));
}
 
开发者ID:JustWayward,项目名称:BookReader,代码行数:8,代码来源:FindFragment.java

示例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;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:FindAdapter.java


注:本文中的com.justwayward.reader.bean.support.FindBean类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。