XRecyclerView

用法

1、导依赖
扩展-XRecyclerView-ActionBar
2、支持刷新加载
(1)、setLoadingmoreEnable(true)
(2)、setpullRefresh(true)
扩展-XRecyclerView-ActionBar
3、添加事件-setLoadiongListener();
扩展-XRecyclerView-ActionBar
onRefresh():刷新 page=1; refreshXompleate();
onLoadMore();加载更多 page++;loadMoreCompleter();

代码演示

布局文件:
扩展-XRecyclerView-ActionBar
Activiey代码:
扩展-XRecyclerView-ActionBar

ActionBar

定义

具有导航功能的一个组件

相关方法

1、ActionBar bar = getSupportActionBar();
2、setLogo(int id);–导航图标
3、setTitle(R.string.xx);–标题
4、setSubTitle(0;–副标题)
5、setCustomView(int resId/View v);–添加自定义布局
6、setDisplayshowHomeEnabled(true);–显示导航
7、setDesplayVseLogoEnabled(true);–显示logo
8、setDisplayshowTitleEnabled(true); – 显示标题

相关文章:

  • 2021-08-13
  • 2021-12-05
  • 2021-12-24
  • 2022-12-23
  • 2021-11-18
  • 2021-09-27
  • 2021-06-23
猜你喜欢
  • 2021-05-28
  • 2021-07-25
  • 2021-05-11
  • 2021-06-28
  • 2021-07-03
  • 2021-07-12
  • 2021-06-02
相关资源
相似解决方案