Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save franciscofranco/6110b64a42313ab67a4c94c1c6b032b7 to your computer and use it in GitHub Desktop.
Save franciscofranco/6110b64a42313ab67a4c94c1c6b032b7 to your computer and use it in GitHub Desktop.
<LinearLayout
android:id="@+id/bottom_navigation_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="1dp"
android:fitsSystemWindows="true"
android:orientation="vertical"
app:behavior_hideable="false"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:minHeight="?attr/actionBarSize"
app:elevation="0dp">
<androidx.appcompat.widget.Toolbar
android:id="@+id/my_toolbar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
app:contentInsetEnd="0dp"
app:contentInsetStart="0dp" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/drawer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="8dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
</com.google.android.material.appbar.AppBarLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment