ogaclejapan/SmartTabLayout

Always in Center is not in Center

開放

#53 建立於 2015年7月23日

 (18 則留言) (0 個反應) (0 位負責人)Java (1,323 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (7,063 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Im implementing the always in center style and i can't get it to be centered. Whats weird is if i rotate landscape then back portrait it is then centered like it should be.

<com.ogaclejapan.smarttablayout.SmartTabLayout
            android:id="@+id/tabs"
            android:layout_width="match_parent"
            android:layout_height="48dp"
            android:paddingBottom="4dp"
            app:stl_indicatorAlwaysInCenter="true"
            app:stl_indicatorWithoutPadding="false"
            app:stl_indicatorInFront="false"
            app:stl_indicatorInterpolation="smart"
            app:stl_indicatorGravity="bottom"
            app:stl_indicatorColor="@color/accent2"
            app:stl_indicatorThickness="4dp"
            app:stl_indicatorCornerRadius="0dp"
            app:stl_overlineColor="#4D000000"
            app:stl_overlineThickness="0dp"
            app:stl_underlineThickness="1dp"
            app:stl_dividerColor="#00000000"
            app:stl_dividerThickness="1dp"
            app:stl_defaultTabTextAllCaps="true"
            app:stl_defaultTabTextColor="@color/app_tab_text"
            app:stl_underlineColor="@color/transparent"
            app:stl_defaultTabBackground="?attr/selectableItemBackground"
            app:stl_defaultTabTextSize="14sp"
            app:stl_defaultTabTextMinWidth="120dp"
            app:layout_scrollFlags="enterAlways"/>

Issue

貢獻者指南