There are two activations inherited from AppCompatActivity , in the markup of both classes there is a CoordinatorLayout and an embedded FloatingActionButton , while the behavior of the FAB when the keyboard appears is radically different. In MainActivity FAB pops up along with the keyboard, and in the second activity, when the keyboard appears, there is no. Below are the markup, the classes are almost identical.
activity_main.xml
<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:id="@+id/main_coordinator_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" tools:context="ru.appchief.application.cargocalculator.MainActivity"> <android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" app:popupTheme="@style/AppTheme.PopupOverlay" /> </android.support.design.widget.AppBarLayout> <include layout="@layout/content_main" /> <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin" app:srcCompat="@drawable/ic_add_white_48dp" /> </android.support.design.widget.CoordinatorLayout> And almost identical second markup
activity_checkpoint.xml
<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:id="@+id/checkpoint_coordinator_layout" android:layout_width="match_parent" android:layout_height="match_parent"> <include layout="@layout/content_check_point" /> <android.support.design.widget.FloatingActionButton android:id="@+id/fab_add_checkpoint" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin" app:layout_behavior="@string/appbar_scrolling_view_behavior" app:srcCompat="@drawable/ic_add_location_white_48dp" /> </android.support.design.widget.CoordinatorLayout> At the moment, I'm wondering why in the second activation the CoordinatorLayout does not coordinate the behavior of the child object, as in the first activation?