您的位置:首页 > 移动开发 > Android开发

[Android] SlidingDrawableTabLayout

2016-05-20 11:07 1076 查看
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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: