Ich habe Probleme mit meiner Android-Anwendung. Ich versuche das Layout meiner Snackbar zu reparieren, weil es nicht gut zu meiner BottomBar passt. Wenn Sie das Bild sehen, das ich gepostet habe, können Sie sehen, dass zwischen den beiden Elementen ein kleiner Zwischenraum ist, der nicht angezeigt werden sollte.XML-Elemente stimmen nicht richtig
Ich werde Ihnen etwas Code zeigen. In meiner MainActivity befinden sich meine BottomBar und ein FrameLayout. Meine Snackbar erscheint auf meinem Fragment (in diesem Rahmenlayout).
MainActivity.xml:
<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/imageview_logo"
android:layout_above="@id/bottomBar"
android:layout_alignParentStart="true">
</FrameLayout>
<com.roughike.bottombar.BottomBar
android:id="@+id/bottomBar"
android:layout_width="match_parent"
android:layout_alignParentBottom="true"
app:bb_tabXmlResource="@xml/bottombar_tabs"
android:layout_height="60dp"
app:bb_inActiveTabColor="@color/inActiveTabColor"
app:bb_inActiveTabAlpha="0.8"
app:bb_activeTabAlpha="1" />
Fragment.java
This is the java class that shows my Snackbar.
Hier ist ein Bild des Problems:
Wissen Sie, was dieses Layout Problem verursachen könnte ? Danke euch allen.
ID empfohlen mit der Google Bottom Toolbar Bibliothek. Dies kann helfen - https://medium.com/@hitherejoe/exploring-the-android-design-support-library-bottom-navigation-drawer-548de699e8e0#.iho7rvvm9 – Shmuel