I'm using ActionBar
of AppCompact
with tabs and ViewPager
.
How can I implement moving (with the fragment) tabs indicator like in Onavo app?
I tried to use PagerTitleStrip
but didn't succeed.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
There is a library called "PagerSlidingTabStrip" that does exactly what you want: https://github.com/astuetz/PagerSlidingTabStrip
Usage
Include the PagerSlidingTabStrip widget in your view. This should usually be placed adjacent to the ViewPager it represents.
In your onCreate method (or onCreateView for a fragment), bind the widget to the ViewPager.
(Optional) If you use an OnPageChangeListener with your view pager you should set it in the widget rather than on the pager directly.