Last active
May 23, 2021 14:04
-
-
Save iamnaran/cc7e349d5710bd4d15964235511d7203 to your computer and use it in GitHub Desktop.
Bottom Sheet Dialog Above Bottom Navigation UI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@color/colorContainerBackground"> | |
<FrameLayout | |
android:id="@+id/frameLayout" | |
android:layout_width="match_parent" | |
android:layout_height="?attr/actionBarSize" | |
android:layout_marginBottom="10dp" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent"> | |
<TextView | |
android:id="@+id/title" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_gravity="center" | |
android:gravity="center" | |
android:padding="10dp" | |
android:paddingBottom="2dp" | |
android:text="Pull This Layout" | |
android:textColor="@color/colorPrimary" | |
android:textSize="14sp" /> | |
</FrameLayout> | |
<androidx.recyclerview.widget.RecyclerView | |
android:id="@+id/recycler_view_bottom_sheet" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:clipToPadding="false" | |
android:paddingBottom="?attr/actionBarSize" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@+id/frameLayout" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment