home: make edge-to-edge

Make the home fragment span from edge-to-edge. This also adds a nice
effect for the toolbar to fade out when it collapses.
This commit is contained in:
OxygenCobalt
2021-08-29 18:29:58 -06:00
parent c5b1d7d735
commit e142c17fca
4 changed files with 26 additions and 4 deletions
+1 -3
View File
@@ -17,6 +17,7 @@
android:layout_height="wrap_content"
android:background="?attr/colorSurface"
android:clickable="true"
android:clipChildren="true"
android:elevation="@dimen/elevation_normal"
android:focusable="true">
@@ -24,7 +25,6 @@
android:id="@+id/home_toolbar"
style="@style/Widget.Toolbar"
android:elevation="0dp"
android:fitsSystemWindows="true"
app:layout_scrollFlags="scroll|enterAlways"
app:menu="@menu/menu_home"
app:title="@string/info_app_name" />
@@ -33,8 +33,6 @@
android:id="@+id/home_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
app:tabContentStart="@dimen/spacing_medium"
app:tabIndicatorColor="?attr/colorAccent"
app:tabMode="scrollable"
+1 -1
View File
@@ -9,7 +9,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true"
android:fitsSystemWindows="true"
android:orientation="vertical">
<androidx.fragment.app.FragmentContainerView
@@ -27,6 +26,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="@dimen/elevation_normal"
android:clipToPadding="true"
android:background="?attr/colorSurface"
tools:layout="@layout/fragment_compact_playback" />
</LinearLayout>