这里是我当前选项卡的布局:如何在android中自定义TabLayout?
<android.support.design.widget.TabLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/pager"
android:background="?attr/colorPrimary"
android:elevation="6dp"
android:minHeight="?attr/actionBarSize"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
/>
这使得屏幕看起来是这样的:
我想圆导航(我不知道的是,确切的术语)所以,我附上一张照片:
正如你可以看到,当我浏览屏幕上的可滑动选项卡,我应该关注与当前页面对应的圆圈编号(在我的情况下,它应该是深灰色的,而其他的则是浅灰色的)。 您可以在页面底部看到圆圈。
我知道我可以让这些圆圈成为片段的一部分,然后让各自的圆圈成为焦点,但随后,每次滑动,圆圈组也会被刷掉 - 这是我不想要的。
有没有办法做到这一点?
检查该链接tablayout http://stackoverflow.com/a/17898875/2826147 –
那insted的只是使用HTTPS: //github.com/PaoloRotolo/AppIntro –
你见过http://stackoverflow.com/questions/30892545/tablayout-with-icons? – PPartisan