android - BottomSheet touch area taking all the screen -


i've added bottom sheet , view , works touch area can drag sheet taking screen. view code looking this

<android.support.design.widget.appbarlayout     android:id="@+id/app_bar"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:fitssystemwindows="true"     android:transitionname="@string/transition_image">      <android.support.design.widget.collapsingtoolbarlayout         android:id="@+id/collapsing_toolbar"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:fitssystemwindows="true"         app:contentscrim="@color/color_primary"         app:expandedtitlemarginend="64dp"         app:expandedtitlemarginstart="48dp">          <com.oxzimo.fabric.ui.detailsimageview             android:id="@+id/backdrop"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:fitssystemwindows="true"             android:scaletype="centercrop"             app:layout_collapsemode="parallax" />          <android.support.v7.widget.toolbar             android:id="@+id/toolbar"             android:layout_width="match_parent"             android:layout_height="?attr/actionbarsize"             app:layout_collapsemode="pin"             app:popuptheme="@style/themeoverlay.appcompat.light" />      </android.support.design.widget.collapsingtoolbarlayout> </android.support.design.widget.appbarlayout>  <framelayout     android:id="@+id/bottom_sheet"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:background="#fff"     android:elevation="6dp"     app:behavior_peekheight="56dp"     app:layout_behavior="@string/bottom_sheet_behavior">      <include layout="@layout/item_detail" /> </framelayout>  <android.support.design.widget.floatingactionbutton     android:id="@+id/fab"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_margin="@dimen/fab_margin"     android:clickable="true"     android:visibility="gone"     android:elevation="10dp"     android:src="@drawable/ic_wallpaper_white_24dp"     android:contentdescription="@string/content_desc_set_wallpaper"     app:layout_anchor="@id/bottom_sheet"     app:layout_anchorgravity="top|right|end" /> </android.support.design.widget.coordinatorlayout> 

i'd know why behavior there , how can make touch area including bottom sheet only.


Comments

Popular posts from this blog

ruby on rails - Permission denied @ sys_fail2 - (D:/RoR/projects/grp/public/uploads/ -

c++ - nodejs socket.io closes connection before upgrading to websocket -

java - What is the equivalent of @Value in CDI world? -