[Android] SlidingDrawableTabLayout
来源:互联网 发布:淘宝网旗袍金丝绒 编辑:程序博客网 时间:2024/05/21 10:23
TabLayout with drawable indicator
Usage
gradle
compile 'com.legendmohe.maven:slidingdrawabletablayout:0.1'
code
Just use it as TabLayout:
// Create the adapter that will return a fragment for each of the three// primary sections of the activity.mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());// Set up the ViewPager with the sections adapter.mViewPager = (ViewPager) findViewById(R.id.container);mViewPager.setAdapter(mSectionsPagerAdapter);SlidingDrawableTabLayout tabLayout = (SlidingDrawableTabLayout) findViewById(R.id.tabs);tabLayout.setupWithViewPager(mViewPager);
查看原文:http://legendmohe.net/2016/05/20/android-slidingdrawabletablayout/
0 0
- [Android] SlidingDrawableTabLayout
- Android
- android
- Android
- android
- android
- Android
- Android
- android
- android
- android
- Android
- Android
- android!!!
- android
- android
- android
- android
- 巩固缓存相关,深入解析imageLoader
- JAVA
- Huffman编码文件压缩 - Huffman树的建立与编码
- ant构建出现乱码
- 设计模式之命令模式php示例
- [Android] SlidingDrawableTabLayout
- c++第6次实验
- IOS集成到支付宝
- C++默认参数注意事项
- SVN系列(一)--SVN版本控制原理
- 高效地配置OkHttp
- php操作redis常用方法
- Core Animation - 图层行为
- OKHTTP3 Version=2.4.1 编码问题