Die Aktivität besteht aus einer unteren Navigationsleiste und einem Fragment. Das Fragment enthält eine Navigationsleiste, die über der unteren Navigationsleiste sichtbar sein soll.Wie wird die Navigationsleiste über der unteren Navigationsleiste hinzugefügt, wenn die Navigationsleiste in einem Fragment verwendet wird?
Was ich habe, ist dies:
Was ich erreichen will, ist dies
Mein Fragment Layout-
Mein Aktivitäts-
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/activity_main"
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:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.harshitaneja.homie.MainActivity">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/navigation_main"
android:animateLayoutChanges="true"
android:id="@+id/frame_layout">
</FrameLayout>
<android.support.design.widget.BottomNavigationView
android:id="@+id/navigation_main"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@color/colorPrimary"
app:itemIconTint="@color/nav_item_state_list"
app:itemTextColor="@color/nav_item_state_list"
app:menu="@menu/bottom_navigation_items">
</android.support.design.widget.BottomNavigationView>
</RelativeLayout>
Es tut mir leid, wenn ich einen Fehler gemacht haben, während diese Frage, da dies hier meine erste Frage ist. Danke
Zeigen Sie Ihr Layout XML-Code – Sony
@Sony hinzugefügt, um die Layouts – Harshit