When the ListView stops interrupting the screen, it overlaps the fab, after which it is no longer possible to click on the fab (until the ListView has reached the fab - fab). All clicks go to list items. The screen shows how the dividers go over the fab.
Gradle
compile 'com.android.support:design:25.3.1' XML
<LinearLayout 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:orientation="vertical" tools:context="torin.dmitry.todolist.MainActivity"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="60dp" android:background="@color/colorToolbar" android:elevation="@dimen/normalMargin" /> <FrameLayout android:id="@+id/main_frame" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.design.widget.FloatingActionButton android:id="@+id/main_fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="20dp" android:src="@drawable/ic_cancel" app:elevation="4dp" android:layout_gravity="end|bottom" /> </FrameLayout> </LinearLayout> The frame is used for fragments.
@Override public void setFragment(Fragment f) { getFragmentManager() .beginTransaction() .replace(R.id.main_frame, f) .commit(); The problem is only on the emulator (Genymotion, on the native I can not try). It is emulated by the Nexus S API 16,480 x 800.
The physical device on which everything works: Xiaomi API 21 1080 x 1920
