1
因此,這裏是我的活動佈局如何響應隱藏/顯示佈局滾動
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
<include
layout="@layout/signs"
android:layout_height="wrap_content"
android:layout_width="match_parent"/>
<android.support.v7.widget.RecyclerView
android:layout_height="match_parent"
android:layout_width="match_parent"
android:id="@+id/rv"
android:clipToPadding="false">
</android.support.v7.widget.RecyclerView>
</LinearLayout>
的signs
包括:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:elevation="4dp">
<ImageView
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:id="@+id/navi_door"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:paddingTop="5dp"
android:src="@drawable/door_24"/>
</RelativeLayout>
當我滾動的RecyclerView
項目清單跡象佈局保持當然,在它的地方。這就是爲什麼我的問題是如何使這個佈局也滾動,然後RecyclerView的列表滾動。