ARTICLE AD BOX
I'm using bottom sheet dialog fragment with this layout.
<?xml version="1.0" encoding="utf-8"?> <FrameLayout 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:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal" android:orientation="vertical" tools:background="@drawable/bg_top_curved" tools:backgroundTint="@color/fdfdfd_2C2C31" tools:context=".views.comments.CommentsActivity"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:orientation="vertical"> <LinearLayout android:id="@+id/dragView" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:orientation="horizontal"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginVertical="16dp" android:src="@drawable/dialog_top_line" android:tint="@color/dim_black" /> </LinearLayout> <FrameLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1"> <androidx.recyclerview.widget.RecyclerView android:id="@+id/commentslist" style="@style/VerticalList" android:layout_width="match_parent" android:layout_height="match_parent" tools:listitem="@layout/row_layout_comments" /> <View android:layout_width="match_parent" android:layout_height="4dp" android:id="@+id/shadowEffectView" android:layout_gravity="bottom" android:background="@drawable/shadow_gradient" android:clickable="false" android:importantForAccessibility="no" /> </FrameLayout> <LinearLayout android:id="@+id/footer" android:layout_width="match_parent" android:layout_height="wrap_content" android:elevation="4dp" android:gravity="center_vertical" android:orientation="horizontal" android:paddingHorizontal="12dp" android:paddingVertical="16dp"> <EditText android:id="@+id/message" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginHorizontal="8dp" android:layout_weight="1" android:background="@drawable/border_dim_black_30_trans" android:hint="Leave your thoughts here..." android:inputType="textCapSentences" android:paddingHorizontal="20dp" android:paddingVertical="16dp" /> <ImageView android:id="@+id/comment" android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="8dp" android:src="@drawable/sendicon" /> </LinearLayout> </LinearLayout> <include android:id="@+id/loaderView" layout="@layout/progressdialog_item" android:layout_width="match_parent" android:layout_height="match_parent" android:visibility="gone" /> </FrameLayout>when I show the fragment, by default it is half expanded, but the problem is the UI is not fully visible & scrolling the recyclerview causes the bottomsheetfragment to expand fully & then only I can actually scroll the recyclerview & the footer layout is visible. But in Instagram comments even in half expanded condtion the recyclerview is scrollable & UI is fully visible & dragging is only handled by the view above recyclerview. How to achieve same behaviour in BottomsheetDialogFragment. I have tried lot but nothing is working
