Comments (1)
You can try to implement CustomTabProvider, in this case indicators will be invalid.
public class MyPagerAdapter extends PagerAdapter implements CustomTabProvider{
@Override
public View getCustomTabView(ViewGroup parent, int position) {
View tab = LayoutInflater.from(mContext).inflate(R.layout.custom_tab, parent, false);
((ImageView) tab.findViewById(R.id.image)).setImageResource(ICONS[position]);
return tab;
}
@Override
public void tabSelect(View tab) {
//Callback with the tab on his selected state. It is up to the developer to change anything on it.
}
@Override
public void tabUnselect(View tab) {
//Callback with the tab on his unselected state. It is up to the developer to change anything on it.
}
}
If you also want to use indicators, It takes time for me to add this feature to my lib.
Or you can fork the lib and try to do this yourself.
from flycotablayout.
Related Issues (20)
- 怎么设置纵向滑动
- SlidingTabLayout设置红点 默认显示在左边 HOT 2
- SlidingTabLayout.setOnTabSelectListener错误 只有点击事件 没有滚动事件
- SlidingTabLayout配合ViewPager使用 viewpage不能自适应吗? 如果不设置高度 就会不显示
- TAB选中项加粗状态有缺陷 HOT 3
- app:tl_textBold="SELECT"的情况下,默认选中的第一项未加粗 HOT 4
- 一点建议
- 和Navigation搭配 rootFragment内放改控件,会导致内容不显示的问题 HOT 1
- tl_textBold无效 HOT 3
- 各位大佬,问下如何支持RTL布局? 翻转的话,就不显示TAB文字了。 HOT 2
- set Font Family for the tap title
- 平板横屏时不能平均铺满屏幕
- SlidingTabLayout不支持Viewpager2 HOT 7
- 滑动字体大小渐变
- 设置了setSnapOnTabClick(true)后tab的字体选中大小以及指示器不工作了
- 支持viewpage2
- Fragment 中无法使用建议:SlidingTabLayout setViewPager 参数 FragmentActivity 换成 FragmentManager
- 动态修改底部tab数量
- NullPointerException错误,代码行数:CommonTabLayout.calcIndicatorRect (CommonTabLayout.java:355)
- CommonTabLayout嵌套CommonTabLayout 长时间后台回白屏
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flycotablayout.