• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java BGANormalRefreshViewHolder类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中cn.bingoogolapple.refreshlayout.BGANormalRefreshViewHolder的典型用法代码示例。如果您正苦于以下问题:Java BGANormalRefreshViewHolder类的具体用法?Java BGANormalRefreshViewHolder怎么用?Java BGANormalRefreshViewHolder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



BGANormalRefreshViewHolder类属于cn.bingoogolapple.refreshlayout包,在下文中一共展示了BGANormalRefreshViewHolder类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: processLogic

import cn.bingoogolapple.refreshlayout.BGANormalRefreshViewHolder; //导入依赖的package包/类
@Override
protected void processLogic(Bundle savedInstanceState) {
    mRefreshLayout.setRefreshViewHolder(new BGANormalRefreshViewHolder(mApp, true));

    initBanner();

    mFragments = new Fragment[4];
    mFragments[0] = mRecyclerViewFragment = new StickyNavRecyclerViewFragment();
    mFragments[1] = mListViewFragment = new StickyNavListViewFragment();
    mFragments[2] = mScrollViewFragment = new StickyNavScrollViewFragment();
    mFragments[3] = mWebViewFragment = new StickyNavWebViewFragment();

    mTitles = new String[4];
    mTitles[0] = "RecyclerView";
    mTitles[1] = "ListView";
    mTitles[2] = "ScrollView";
    mTitles[3] = "WebView";
    mContentVp.setAdapter(new ContentViewPagerAdapter(getSupportFragmentManager()));
    mIndicator.initData(0, mContentVp);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:21,代码来源:ViewPagerActivity.java


示例2: onCreate

import cn.bingoogolapple.refreshlayout.BGANormalRefreshViewHolder; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mContext = this;
    setContentView(R.layout.activity_bga_all);
    Toolbar mToolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(mToolbar);
    mBGARefreshLayout = (BGARefreshLayout) findViewById(R.id.rl_modulename_refresh);
    mBGARefreshLayout.setDelegate(this);
    BGANormalRefreshViewHolder mRefreshViewHolder = new BGANormalRefreshViewHolder(this, true);
    mBGARefreshLayout.setRefreshViewHolder(mRefreshViewHolder);
    RecyclerView mRecyclerView = (RecyclerView) findViewById(R.id.recyclerview);
    mRecyclerView.setLayoutManager(new LinearLayoutManager(mContext));
    mContentAdapter = new ContentAdapter(mRecyclerView);
    mContentAdapter.addHeaderView(getHeadView());
    mRecyclerView.setAdapter(mContentAdapter.getHeaderAndFooterAdapter());
    initData();

    //
    mBGARefreshLayout.beginRefreshing();
}
 
开发者ID:REBOOTERS,项目名称:AndroidAnimationExercise,代码行数:22,代码来源:BgaAllActivity.java


示例3: processLogic

import cn.bingoogolapple.refreshlayout.BGANormalRefreshViewHolder; //导入依赖的package包/类
@Override
protected void processLogic(Bundle savedInstanceState) {
    //set refreshing layout
    //mRefreshLayout.setCustomHeaderView(DataEngine.getCustomHeaderView(mApp), true);
    BGANormalRefreshViewHolder refreshViewHolder = new BGANormalRefreshViewHolder(mApp, true);
    refreshViewHolder.setPullDownRefreshText(getString(R.string.pulldown_refresh_text));
    refreshViewHolder.setReleaseRefreshText(getString(R.string.release_refresh_text));
    refreshViewHolder.setRefreshingText(getString(R.string.refreshing_text));
    refreshViewHolder.setLoadingMoreText(getString(R.string.loading_more_text));
    mRefreshLayout.setRefreshViewHolder(refreshViewHolder);

    //set adapter
    mAdapter = new FrontPageAdapter(getActivity());
    rvFeed.setAdapter(mAdapter);

    //set layout to be staggeredGridLayout with 2 columns
    int columnCount = getResources().getInteger(R.integer.list_column_count);
    StaggeredGridLayoutManager sglm =
            new StaggeredGridLayoutManager(columnCount, StaggeredGridLayoutManager.VERTICAL);
    rvFeed.setLayoutManager(sglm);
}
 
开发者ID:haoguanqing,项目名称:Subreddit_Reader,代码行数:22,代码来源:MainFragment.java


示例4: processLogic

import cn.bingoogolapple.refreshlayout.BGANormalRefreshViewHolder; //导入依赖的package包/类
@Override
protected void processLogic(Bundle savedInstanceState) {
    mRefreshLayout.setCustomHeaderView(DataEngine.getCustomHeaderView(mApp), true);
    mRefreshLayout.setRefreshViewHolder(new BGANormalRefreshViewHolder(mApp, true));

    StaggeredGridLayoutManager layoutManager = new StaggeredGridLayoutManager(3, StaggeredGridLayoutManager.VERTICAL);
    mDataRv.setLayoutManager(layoutManager);

    mDataRv.setAdapter(mAdapter);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:11,代码来源:RefreshStaggeredRecyclerViewFragment.java


示例5: initRefreshLayout

import cn.bingoogolapple.refreshlayout.BGANormalRefreshViewHolder; //导入依赖的package包/类
private void initRefreshLayout() {
    mRefreshLayout.setDelegate(this);
    BGANormalRefreshViewHolder refreshViewHolder = new BGANormalRefreshViewHolder(this, false);
    refreshViewHolder.setRefreshingText("");
    refreshViewHolder.setPullDownRefreshText("");
    refreshViewHolder.setReleaseRefreshText("");
    mRefreshLayout.setRefreshViewHolder(refreshViewHolder);
}
 
开发者ID:starryxp,项目名称:LQRWeChat-master,代码行数:9,代码来源:SessionActivity.java


示例6: initBGALayout

import cn.bingoogolapple.refreshlayout.BGANormalRefreshViewHolder; //导入依赖的package包/类
private void initBGALayout() {
    // 为BGARefreshLayout 设置代理
    bgaRefreshLayout.setDelegate(this);
    // 设置下拉刷新和上拉加载更多的风格     参数1:应用程序上下文,参数2:是否具有上拉加载更多功能

    BGANormalRefreshViewHolder refreshViewHolder =
            new BGANormalRefreshViewHolder(getContext(), true);
    refreshViewHolder.setLoadingMoreText("加载更多");
    refreshViewHolder.setLoadMoreBackgroundColorRes(R.color.white);
    refreshViewHolder.setRefreshViewBackgroundColorRes(R.color.white);
    bgaRefreshLayout.setRefreshViewHolder(refreshViewHolder);
}
 
开发者ID:onlyloveyd,项目名称:JuheNews,代码行数:13,代码来源:BaseFragment.java


示例7: initBGALayout

import cn.bingoogolapple.refreshlayout.BGANormalRefreshViewHolder; //导入依赖的package包/类
private void initBGALayout() {
    // 为BGARefreshLayout 设置代理
    mSearchBgaRefresh.setDelegate(this);
    // 设置下拉刷新和上拉加载更多的风格     参数1:应用程序上下文,参数2:是否具有上拉加载更多功能
    BGANormalRefreshViewHolder refreshViewHolder =
            new BGANormalRefreshViewHolder(this, true);
    refreshViewHolder.setLoadingMoreText("加载更多");
    refreshViewHolder.setLoadMoreBackgroundColorRes(R.color.white);
    refreshViewHolder.setRefreshViewBackgroundColorRes(R.color.white);
    mSearchBgaRefresh.setRefreshViewHolder(refreshViewHolder);
}
 
开发者ID:onlyloveyd,项目名称:JuheNews,代码行数:12,代码来源:SearchActivity.java


示例8: afterViews

import cn.bingoogolapple.refreshlayout.BGANormalRefreshViewHolder; //导入依赖的package包/类
@AfterViews
public void afterViews() {
    BGARefreshViewHolder viewholder = new BGANormalRefreshViewHolder(this, true);
    viewholder.setLoadingMoreText("正在卖力加载...");

    mRefreshLayout.setRefreshViewHolder(viewholder);

    NormalLoadingStatusHelper statusHelper = new NormalLoadingStatusHelper(this);
    statusHelper.setDataSetEmptyStr("获取的数据集为空");
    mRefreshLayout.setLoadingStatusHelper(statusHelper);
    
    mRecyclerView.setLayoutManager(new LinearLayoutManager(this.mContext));
    mRecyclerView.setItemAnimator(new FadeInLeftAnimator());

    mRefreshLayout.setDataSource(new DataSource(mContext) {
        @Override
        public void refreshData() {
            refresh();
        }

        @Override
        public boolean loadMore() {
            return false;
        }
    });
    
}
 
开发者ID:yndongyong,项目名称:fast-dev-library,代码行数:28,代码来源:TestRefreshLoadingStatusHelper.java


示例9: processLogic

import cn.bingoogolapple.refreshlayout.BGANormalRefreshViewHolder; //导入依赖的package包/类
@Override
protected void processLogic(Bundle savedInstanceState) {
    mRefreshLayout.setRefreshViewHolder(new BGANormalRefreshViewHolder(mApp, true));
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:5,代码来源:ScrollViewActivity.java


示例10: afterViews

import cn.bingoogolapple.refreshlayout.BGANormalRefreshViewHolder; //导入依赖的package包/类
@AfterViews
    public void afterViews() {
        mRefreshLayout.setEmptyImage(R.mipmap.ico_empty);
        mRefreshLayout.setErrorImage(R.mipmap.ico_empty);
        BGARefreshViewHolder viewholder = new BGANormalRefreshViewHolder(this, true);
        viewholder.setLoadingMoreText("正在卖力加载...");


        //禁止下拉刷新
//        mRefreshLayout.setPullDownRefreshEnable(false);

        mRefreshLayout.setRefreshViewHolder(viewholder, true);
        mRefreshLayout.setDataSource(new DataSource(this) {
            @Override
            public void refreshData() {
                pageNum=1;
                refresh();
            }

            @Override
            public boolean loadMore() {
                pageNum++;
                return load();
            }
        });

        mAdapter = new PhotoAdapter(this,lists);

        mRecyclerView.setAdapter(mAdapter);

        StaggeredGridLayoutManager layoutManager = new StaggeredGridLayoutManager(3,
                StaggeredGridLayoutManager.VERTICAL);
        mRecyclerView.setLayoutManager(layoutManager);

//        GridLayoutManager layoutManager1 = new GridLayoutManager(this, 3);
//        mRecyclerView.setLayoutManager(layoutManager1);
        
        mRecyclerView.setItemAnimator(new DefaultItemAnimator());

        refresh();
    }
 
开发者ID:yndongyong,项目名称:fast-dev-library,代码行数:42,代码来源:StaggeredActivity.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java UniqueOrKey类代码示例发布时间:2022-05-23
下一篇:
Java Sheets类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap