Hello, I am using FloatingActionButton

  <android.support.design.widget.AppBarLayout android:id="@+id/app_bar" android:layout_width="match_parent" android:layout_height="@dimen/app_bar_height" android:fitsSystemWindows="true" android:theme="@style/AppTheme.AppBarOverlay"> <android.support.design.widget.CollapsingToolbarLayout android:id="@+id/toolbar_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" app:collapsedTitleGravity="right" app:expandedTitleGravity="center" app:expandedTitleMarginEnd="32dp" app:contentScrim="?attr/colorPrimary" app:layout_scrollFlags="scroll|exitUntilCollapsed"> <ImageView android:id="@+id/collapsing_img" android:scaleType="centerCrop" android:src="@drawable/collapsing_img" app:layout_collapseMode="pin" android:layout_width="match_parent" android:layout_height="wrap_content"/> <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/AppTheme.PopupOverlay"/> </android.support.design.widget.CollapsingToolbarLayout> </android.support.design.widget.AppBarLayout> <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" app:layout_anchor="@id/app_bar" app:layout_anchorGravity="bottom|start" app:srcCompat="@android:drawable/ic_media_play"/> </android.support.design.widget.CoordinatorLayout> 

In all versions above API 16 button is displayed as expected, but I launched the application in API 16 , and the button does not go beyond CollapsingToolbar . Has anyone come across? How to fix?

FloatingActionButton

  • Show the markup. And think about the refusal to support such ancient versions of the axis - YuriySPb
  • That is, to specify the minimum API 16 is already antiquity? Updated code - Tommy
  • When did this JB become an old man? Candy appeared and swept the sweet life? Yes, there are more than whale katov! - Flippy
  • Min API 9! Here is what I say - Flippy

0