0

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" /> 

und hier ist was ich What I want

wollen Aber hier ist, was ich bekommen: Floating isn't visible

+0

können Sie mit der na Bild hinzufügen, ist problema? –

+0

Fertig, Überprüfen Sie die Bearbeitung –

Antwort

Verwandte Themen