home: fix appbar issues

Fix two annoying appbar issues:
- Appbar will collapse if the navigation sequence is too fast
- Tab ripple would paint over the indicator unless the ripple was unbounded [???]
This commit is contained in:
OxygenCobalt
2021-08-23 19:40:21 -06:00
parent 5fe01777d0
commit 9162246b8b
3 changed files with 25 additions and 22 deletions
+7 -1
View File
@@ -16,6 +16,8 @@
android:id="@+id/home_appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
android:background="?attr/colorSurface"
android:elevation="@dimen/elevation_normal">
@@ -31,9 +33,13 @@
android:id="@+id/home_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
app:tabUnboundedRipple="true"
app:tabRippleColor="?attr/colorControlHighlight"
app:tabTextAppearance="@style/TextAppearance.TabLayout.Label"
app:tabMode="scrollable"
app:tabContentStart="@dimen/spacing_medium"
app:tabMode="scrollable"
app:tabTextColor="?android:attr/textColorPrimary"
app:tabIndicatorColor="?attr/colorAccent" />