Ich benutze die neue BottomNavigationView mit einer schwebenden Aktionsschaltfläche über .. und es funktionierte gut, bis ich Element Hintergrund in die untere Navigationsansicht hinzugefügt, jetzt die Navigationsansicht umfasst die FAB obwohl die FAB hat mehr Höhe als die Navigationsansicht ..BottomNavigationView mit Artikel Hintergrund umfasst FAB
hier ist meine xml:
<android.support.design.widget.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
app:itemBackground="@drawable/transparent"
android:elevation="0dp"
android:translationZ="0dp"
app:menu="@menu/navigation" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/floatingActionButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:clickable="true"
android:elevation="16dp"
android:fitsSystemWindows="true"
android:focusable="true"
android:translationZ="16dp"
android:layout_alignBottom="@id/navigation"
android:layout_centerHorizontal="true"
app:rippleColor="@color/colorPrimaryDark"
app:srcCompat="@drawable/main_menu_timeline_icon" />
wollen Aber hier ist, was ich bekommen:
können Sie mit der na Bild hinzufügen, ist problema? –
Fertig, Überprüfen Sie die Bearbeitung –