在我的布局中,回收视图滚动,但图像是静态的,我想要的是当用户滚动图像也滚动回收视图请帮助我出来..! 我已经省略了id的空格 我试过滚动视图>相对布局/线性布局>(imageview +回收视图),但它使应用程序崩溃。Imageview和recycleview里面滚动视图与背景
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id=" "
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=" "
>
<ru.egslava.blurredview.BlurredImageView
app:radius="0.8"
app:keepOriginal="true"
app:downSampling="2"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:id=" "
/>
<ImageView
android:layout_width="200dp"
android:layout_height="250dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="35dp"
android:id=" "
/>
<android.support.v7.widget.RecyclerView
android:id=" "
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below=" "
android:layout_marginTop="25dp"
android:scrollbars="vertical"
>
</android.support.v7.widget.RecyclerView>
</RelativeLayout>
添加图像作为您RecyclerView的标题。 –
http://stackoverflow.com/questions/29449329/recyclerview-with-scrolling-background检查了这一点。它类似于你的问题 –