Tôi có một hình ảnh collapsableToolBar layout.The bên trong tolbar bị thu gọn và trượt nhưng các mục trong chế độ xem tái chế không bị thu hẹp, chúng chỉ ở vị trí của chúng. di chuyển lên trên và sụp đổ.Thanh công cụ có thể thu gọn không được thu gọn đúng cách khi có chế độ xem tái chế bên trong nó
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:animateLayoutChanges="true"
>
<android.support.design.widget.CollapsingToolbarLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/collapps_bar"
app:layout_scrollFlags="scroll|exitUntilCollapsed"
>
<View
android:id="@+id/image"
android:layout_width="fill_parent"
android:layout_height="200dp"
app:layout_collapseMode="parallax"
android:background="@android:color/transparent"
/>
<include layout="@layout/toolbar" />
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:id="@+id/recyClerView"
app:layout_collapseMode="parallax"
android:layout_height="wrap_content"
android:layout_marginTop="100dp"
android:orientation="horizontal" />
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
Hi chồng Learner, bạn đã tìm ra câu trả lời? Nếu không, đó là chính xác những gì tôi nói? cảm ơn! – Jaco