Open alouanemed opened 6 years ago
When showing the bottom layout, it overlaps the fab in a collapsing toolbar layout
Code
<?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout 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:fitsSystemWindows="true" > <android.support.design.widget.AppBarLayout android:id="@+id/app__product_list_appbar" android:layout_width="match_parent" android:layout_height="@dimen/ho__app_bar_height" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" style="@style/AppTheme.PopupOverlay" > <android.support.design.widget.CollapsingToolbarLayout android:id="@+id/app__product_list_collapsing_toolbar" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" app:contentScrim="?attr/colorPrimary" app:expandedTitleMarginStart="@dimen/ho__space_medium_large" app:layout_scrollFlags="scroll|exitUntilCollapsed|snap" app:toolbarId="@+id/toolbar" > <ImageView android:id="@+id/app__product_list_header" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/ho_home_hero" android:scaleType="centerCrop" app:layout_collapseMode="parallax" tools:ignore="ContentDescription" /> <View android:layout_width="match_parent" android:layout_height="160dp" android:layout_gravity="bottom" android:background="@drawable/shape_bg_scrim" /> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:fitsSystemWindows="true" app:layout_collapseMode="pin" app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /> </android.support.design.widget.CollapsingToolbarLayout> </android.support.design.widget.AppBarLayout> <android.support.v4.widget.SwipeRefreshLayout android:id="@+id/app__product_list_srl" android:layout_width="match_parent" android:layout_height="match_parent" android:clipToPadding="false" app:layout_behavior="@string/appbar_scrolling_view_behavior" > <com.cooltechworks.views.shimmer.ShimmerRecyclerView android:id="@+id/app__product_list_rv" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:layout_alignParentTop="true" android:layout_gravity="center_horizontal" android:animateLayoutChanges="false" android:gravity="center" android:scrollbars="vertical" app:demo_child_count="10" app:demo_layout="@layout/view_product_h_shimmer" app:demo_layout_manager_type="grid" /> </android.support.v4.widget.SwipeRefreshLayout> <com.flipboard.bottomsheet.BottomSheetLayout android:id="@+id/ho__bottom_sheet_share_l" android:layout_width="match_parent" android:layout_height="match_parent" > <LinearLayout android:id="@+id/root" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <View android:id="@+id/view1" android:layout_width="match_parent" android:layout_height="match_parent" /> </LinearLayout> </com.flipboard.bottomsheet.BottomSheetLayout> <android.support.design.widget.FloatingActionButton android:id="@+id/app__product_list_fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="@dimen/fab_margin" app:srcCompat="@drawable/ic_share" app:backgroundTint="@color/colorPrimary" app:fabSize="normal" app:layout_anchor="@+id/app__product_list_appbar" app:layout_anchorGravity="bottom|right|end" /> </android.support.design.widget.CoordinatorLayout>
When showing the bottom layout, it overlaps the fab in a collapsing toolbar layout
Code