Instead of using @color/background directly, use ?attr/colorSurface so that changes can be made to the theming easier. This also resolves some more minor issues regarding certain widget's backgrounds.
58 lines
2.4 KiB
XML
58 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
tools:context=".MainFragment">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/main_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:animateLayoutChanges="true"
|
|
android:fitsSystemWindows="true"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.fragment.app.FragmentContainerView
|
|
android:id="@+id/explore_nav_host"
|
|
android:name="androidx.navigation.fragment.NavHostFragment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
app:layout_constraintBottom_toTopOf="@+id/controls_container"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:navGraph="@navigation/nav_explore"
|
|
tools:layout="@layout/fragment_library" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/controls_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:animateLayoutChanges="true"
|
|
android:background="?android:attr/colorBackground"
|
|
android:baselineAligned="false"
|
|
android:elevation="@dimen/elevation_normal"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
<com.google.android.material.bottomnavigation.BottomNavigationView
|
|
android:id="@+id/nav_bar"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1.5"
|
|
android:background="?android:attr/colorBackground"
|
|
android:elevation="0dp"
|
|
app:elevation="0dp"
|
|
app:menu="@menu/menu_nav" />
|
|
|
|
<androidx.fragment.app.FragmentContainerView
|
|
android:id="@+id/compact_playback"
|
|
android:name="org.oxycblt.auxio.playback.CompactPlaybackFragment"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
tools:layout="@layout/fragment_compact_playback" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</layout> |