0

選択したタブの下にインジケーターをフロートさせるオプションはありますか? ここで問題を説明しました: https://github.com/jpardogo/PagerSlidingTabStrip/issues/67カスタムビューをセットアップできるように、フォークされたライブラリを使用しているため

4

1 に答える 1

1

これは非常に簡単です。Pag​​erSlidingTabSTrip を ViewGroup でラップし、いくつかのパディングを追加するだけです。

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingBottom="10dp"
    android:paddingRight="10dp"
    android:paddingLeft="10dp"
    android:background="@color/pst_bg_color">

    <com.astuetz.PagerSlidingTabStrip
        android:id="@+id/psts"
        style="@style/BaseTextViewStyle"
        android:layout_width="match_parent"
        android:layout_height="38dp"
        android:background="@color/pst_bg_color"
        android:textColor="@color/white"
        android:textSize="18sp"
        app:pstsTextAllCaps="false"
        app:pstsIndicatorHeight="@dimen/pst_indicator_height"
        app:pstsShouldExpand="@bool/main_pst_should_expand"
        app:pstsIndicatorColor="@color/pst_indicator_color"
        app:pstsDividerColor="@color/pst_divider_color"
        app:pstsUnderlineHeight="0dp"/>

</LinearLayout>
于 2015-03-06T10:03:24.390 に答える