Fix tab gravity

This commit is contained in:
len 2016-12-20 16:54:56 +01:00
parent 94ee4e7fb5
commit e542a8d8e2
2 changed files with 4 additions and 9 deletions

View File

@ -25,8 +25,9 @@
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/Theme.ActionBar.Tab.Filled"
app:tabIndicatorColor="@android:color/white" />
android:theme="@style/Theme.ActionBar.Tab"
app:tabGravity="fill"
app:tabIndicatorColor="@android:color/white"/>
</android.support.design.widget.AppBarLayout>

View File

@ -13,13 +13,7 @@
<!--====-->
<!--Tabs-->
<!--====-->
<style name="Theme.ActionBar.Tab" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
<item name="tabIndicatorColor">@android:color/white</item>
</style>
<style name="Theme.ActionBar.Tab.Filled">
<item name="tabGravity">fill</item>
</style>
<style name="Theme.ActionBar.Tab" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>
<!--===========-->
<!--AlertDialog-->