2017-11-09 16:25:14 +00:00
<!-- A DrawerLayout is intended to be used as the top - level content view using match_parent for both width and height to consume the full space available. -->
2018-11-06 15:11:02 +00:00
<androidx.drawerlayout.widget.DrawerLayout
2017-11-09 16:25:14 +00:00
xmlns:android="http://schemas.android.com/apk/res/android"
2017-04-20 13:33:33 +00:00
xmlns:tools="http://schemas.android.com/tools"
2017-11-09 16:25:14 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer_layout"
2017-04-20 13:33:33 +00:00
android:layout_width="match_parent"
2017-11-09 16:25:14 +00:00
android:layout_height="match_parent"
2019-06-14 08:05:51 +00:00
tools:context="com.habitrpg.android.habitica.ui.activities.MainActivity"
2022-11-22 14:48:15 +00:00
android:background="?attr/colorContentBackground">
2017-04-20 13:33:33 +00:00
2017-11-09 16:25:14 +00:00
<!-- As the main content view, the view below consumes the entire
space available using match_parent in both dimensions. -->
2022-08-16 09:58:24 +00:00
<include layout= "@layout/activity_main_content" android:id= "@+id/content" />
2017-11-09 16:25:14 +00:00
<!-- The drawer is given a fixed width in dp and extends the full height of
the container. -->
2021-02-23 15:17:40 +00:00
<androidx.fragment.app.FragmentContainerView
2017-11-09 16:25:14 +00:00
android:id="@+id/navigation_drawer"
2019-11-05 14:19:44 +00:00
class="com.habitrpg.android.habitica.ui.fragments.NavigationDrawerFragment"
2022-07-19 16:34:31 +00:00
android:layout_width="@dimen/drawer_width"
2017-04-20 13:33:33 +00:00
android:layout_height="match_parent"
2017-11-09 16:25:14 +00:00
android:layout_gravity="start"
tools:layout="@layout/drawer_main"/>
2023-12-21 13:17:06 +00:00
</androidx.drawerlayout.widget.DrawerLayout>