Make sure the FAB is always displayed on top

Partially fixes API level 19 compatibility
This commit is contained in:
Alexander Bakker 2017-12-26 13:57:10 +01:00
parent da2f69f860
commit 5aad0d62f9

View file

@ -21,6 +21,14 @@
</android.support.design.widget.AppBarLayout>
<fragment
android:name="me.impy.aegis.KeyProfileView"
android:id="@+id/key_profiles"
android:layout_height="match_parent"
android:layout_width="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
<!-- note: the fab should always be the last element to be sure it's displayed on top -->
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
@ -30,11 +38,4 @@
android:src="@drawable/ic_add_black_24dp"
android:tint="@color/background"/>
<fragment
android:name="me.impy.aegis.KeyProfileView"
android:id="@+id/key_profiles"
android:layout_height="match_parent"
android:layout_width="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
</android.support.design.widget.CoordinatorLayout>