[英]Android ViewPagerIndicator - UnderlinePageIndicator on top instead of bottom?
我正在使用ActionBarSherlock + HoloEverywhere + ViewPagerIndicator库。
您可以使用TabPageIndicator并通过编辑名为vpi_ tab ??? _ holo的九个补丁PNG来更改下划线的外观。 每个屏幕密度有6个。
只需根据需要设置高度:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<com.viewpagerindicator.UnderlinePageIndicator
android:id="@+id/pageIndicator"
android:layout_height="2dp"
android:layout_width="fill_parent"
/>
<android.support.v4.view.ViewPager
android:id="@+id/vp_pages"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.