0
下,我想提出一个布局像下面RecyclerGridView滚动型
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/l_out
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<-Some view here.....->
</LinearLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/similar_recyclerview"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
现在的问题是我不知道的l_out
高度。当l_out
的高度更多时,RecyclerView
变为隐藏并且l_out
的某个部分变为隐藏并且RecyclerView
在ScrollView
中不起作用。我怎样才能实现我的上述布局做垂直滚动?
是什么?“机器人:layout_below =“@ + ID/id_scroll” –
你有没有达到你的目标 –
我放在下一个布局的滚动视图,以便为什么我会m给了滚动视图作为下面的布局,所以我用这样的。 –