Ich habe einen Titel mit einem Bild und einem RecyclerView mit einigen EinzelteilenScroll-Header, wenn Scroll recyclerview Artikel
<?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:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/header"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="100dp"
android:background="#ffffff">
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:padding="0dp"
android:id="@+id/imageView"
android:adjustViewBounds="true"
android:cropToPadding="false" />
</RelativeLayout>
<ProgressBar
android:id="@+id/progressBar1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true" />
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:scrollbars="vertical"
android:layout_alignParentLeft="true" />
</LinearLayout>
RelativeLayout oben auf RecyclerView fixiert ist. Was ich will, ist diese Kopfzeile (RelativeLayout) nach oben scrollen, wenn Scroll RecyclerView.
Irgendwelche Ideen, wie Kopfzeile mit RecyclerView scrollen?
vielen dank, es funktioniert! –