fix tab style

This commit is contained in:
Felix 2020-04-05 00:15:05 +02:00
parent 7bbb2100c6
commit 8c938adc52
4 changed files with 5 additions and 7 deletions

View file

@ -17,7 +17,6 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
style="@style/ColoredToolbarStyle"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:minHeight="?attr/actionBarSize"

View file

@ -7,9 +7,9 @@
<com.google.android.material.tabs.TabLayout
android:id="@+id/tabs"
style="@style/ColoredToolbarStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
style="@style/ColoredTabLayout"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"

View file

@ -19,13 +19,10 @@
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/primary"
style="@style/ColoredTabLayout"
app:layout_anchor="@id/toolbar"
app:layout_anchorGravity="bottom"
app:tabMode="scrollable"
app:tabSelectedTextColor="@color/white"
app:tabIndicatorColor="@color/white"
app:tabTextColor="@color/inactive_tab_color"/>
app:tabMode="auto"/>
</com.google.android.material.appbar.AppBarLayout>

View file

@ -31,6 +31,8 @@
<item name="android:textColorSecondary">@color/white</item>
</style>
<style name="ColoredTabLayout" parent="@style/Widget.MaterialComponents.TabLayout.Colored"/>
<style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@drawable/splash_screen</item>
</style>