Skip to content

Instantly share code, notes, and snippets.

@ch8n
Created October 15, 2018 07:24
Show Gist options
  • Save ch8n/53babaf3ea846cf8a17442fa698d867e to your computer and use it in GitHub Desktop.
Save ch8n/53babaf3ea846cf8a17442fa698d867e to your computer and use it in GitHub Desktop.
Android bottom sheet behaviour fix after androidx migration
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/bottom_sheet"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:behavior_hideable="true"
app:behavior_peekHeight="0dp"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"
tools:showIn="@layout/activity_main_genie">
</androidx.appcompat.widget.LinearLayoutCompat>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment