'BottomSheet Peak Height problem when Android is using gesture instead of Navigation Button
I have a BottomSheet inside a Coordinate layout. Which works perfectly under the normal scenario. When Android is using screen gesture instead of Navigation Button there is a problem.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/episode_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black"
app:behavior_hideable="false"
app:behavior_peekHeight="0dp"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
When using Navigation button in android

When using gesture navigation
I have tried negative app:behavior_peekHeight but it is not working. but when I gave app:behavior_peekHeight="@dimen/_45sdp" it shows player controller but also shows bottom layout. I want to hide the bottom layout.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


