Ich habe eine CoordinatorLayout
, die AppBarLayout
und eine FrameLayout
enthält, die Fragmente enthält.Fix untere Leiste in CoordinatorLayout
Eines dieser Fragment enthält eine TabLayout
oben, eine Liste durch RecyclerView
und unten eine "hausgemachte" Symbolleiste.
Die AppBarLayout
ist so konfiguriert, mit app:layout_scrollFlags="scroll|enterAlways"
Mein Problem ist, dass beide „Symbolleisten“ verstecken, wenn blättern, die AppBarLayout und meine „hausgemachten“ Symbolleiste am unteren Rand. Dies ist das aktuelle Verhalten
Ich möchte den Boden „hausgemachte“ Symbolleiste beheben sichtbar zu halten, aber ich kann es nicht erreichen.
Dies ist das XML des Fragments Layout-
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<android.support.design.widget.TabLayout
android:id="@+id/toolbarfilter"
android:layout_width="match_parent"
android:background="@color/azul_asde"
app:tabMode="fixed"
app:tabMaxWidth="0dp"
android:elevation="4dp"
app:tabIndicatorColor="@color/verde_pastel"
android:layout_height="wrap_content"
/>
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/swipeContainer"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<android.support.v7.widget.RecyclerView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</android.support.v4.widget.SwipeRefreshLayout>
<LinearLayout
android:id="@+id/toolbarselection"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:background="@color/azul_asde"
android:elevation="4dp"
android:visibility="visible"
>
<ImageView
android:id="@+id/delete"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:src="@drawable/ic_delete_white_24dp"
android:tint="@color/gris_desactivado" />
<ImageView
android:id="@+id/select"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:src="@drawable/ic_bookmark_border_white_24dp"/>
<ImageView
android:id="@+id/send"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:src="@drawable/ic_send_white_24dp"
android:tint="@color/gris_desactivado" />
</LinearLayout>
</LinearLayout>
EDIT1:THIS Fragen scheint das gleiche Problem.
Könnten Sie mir einen Gefallen tun und uns zeigen, wie Sie auf die untere Leiste versteckt? Ich kann nicht scheinen es herauszufinden ... (Ich brauche nicht die obere Leiste, nur die Unterseite) – AndreiBogdan
Hallo Hanzo, Haben Sie eine Lösung für dieses Problem gefunden? – Sharath
können Sie Ihre XML-Datei, die 'CoordinatorLayout' enthält, posten –