私はRecyclerViewとLinearLayoutを下記のような私の引用アプリケーションで使用しています。RecyclerView LinearLayoutを隠す
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:background="@color/colorPrimary"
android:layout_alignParentBottom="true"
android:id="@+id/pageNavLayout"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="40dp">
<RelativeLayout
android:layout_weight="1"
android:id="@+id/butPrev"
style="@style/SelectableItemBackground"
android:clickable="true"
android:layout_width="0dp"
android:layout_height="match_parent">
<ImageView
android:layout_centerInParent="true"
android:scaleType="fitCenter"
android:src="@drawable/ic_keyboard_arrow_left_white_24dp"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
<View
android:background="#ffffff"
android:layout_width="1dp"
android:layout_height="match_parent"/>
<TextView
android:id="@+id/textPageCount"
android:clickable="true"
style="@style/SelectableItemBackground"
android:padding="8dp"
android:textSize="16sp"
android:textColor="@android:color/white"
android:text="Page 1 0f 67"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<View
android:background="#ffffff"
android:layout_width="1dp"
android:layout_height="match_parent"/>
<RelativeLayout
android:layout_weight="1"
style="@style/SelectableItemBackground"
android:clickable="true"
android:id="@+id/butNext"
android:layout_width="0dp"
android:layout_height="match_parent">
<ImageView
android:layout_centerInParent="true"
android:src="@drawable/ic_keyboard_arrow_right_white_24dp"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
</LinearLayout>
<android.support.v7.widget.RecyclerView
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:layout_above="@id/pageNavLayout"
android:id="@+id/listQuoteView"
android:layout_width="match_parent"
android:layout_height="match_parent"></android.support.v7.widget.RecyclerView>
</RelativeLayout>
今、私は次のボタンとRecyclerViewリストを押し、別の引用...私はそれをスクロールするときには、そのがそれを示す、いくつかの時間のために私のLinearLayoutを隠します。私は私のボトムバーにLinearLayoutを使用しました。私が欠けているものと、私はいつもボトムバーを表示するために何をすべきですか?
ありがとうございました
あなたが使っているコードは何ですか? XMLは、隠れ要素やサイズ変更の有無など、多くのことを教えてくれません。 –