Skip to content

Instantly share code, notes, and snippets.

@ForceTower
Created May 11, 2020 01:05
Show Gist options
  • Save ForceTower/ec8d4be2a37105272e7ede51927d546b to your computer and use it in GitHub Desktop.
Save ForceTower/ec8d4be2a37105272e7ede51927d546b to your computer and use it in GitHub Desktop.
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id="@+id/root_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.MainActivity">
<fragment
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
android:name="androidx.navigation.fragment.NavHostFragment"
app:defaultNavHost="true"
app:navGraph="@navigation/home_nav_graph"/>
<fragment
android:id="@+id/mini_player"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="bottom"
android:name="dev.forcetower.podcasts.ui.miniplayer.MiniPlayerFragment"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
app:behavior_peekHeight="128dp"
app:behavior_skipCollapsed="false"
app:behavior_hideable="true"
tools:layout="@layout/fragment_mini_player"/>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_nav"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:menu="@menu/home_bottom_menu"
android:layout_gravity="bottom" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment