Skip to content

Instantly share code, notes, and snippets.

@danielwilson1702
Created March 2, 2022 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielwilson1702/45cf4b8162e3efc2d49e27313607c98e to your computer and use it in GitHub Desktop.
Save danielwilson1702/45cf4b8162e3efc2d49e27313607c98e to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<androidx.slidingpanelayout.widget.SlidingPaneLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/sliding_pane_layout">
<androidx.fragment.app.FragmentContainerView
android:id="@+id/primary_nav_host_fragment"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="@dimen/list_width"
android:layout_height="match_parent"
android:layout_gravity="start"/>
<androidx.fragment.app.FragmentContainerView
android:id="@+id/detail_nav_host_fragment"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="@dimen/item_width"
android:layout_height="match_parent"
android:layout_weight="1" />
</androidx.slidingpanelayout.widget.SlidingPaneLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment