机器人:RecyclerView滚动型内 [英] android: RecyclerView inside a ScrollView
问题描述
我有包装在一个的LinearLayout和RecyclerView它完美的作品如预期。我可以看到在RecyclerView作为填充的所有数据。到目前为止好。
I have a RecyclerView wrapped in a LinearLayout and it works perfectly as expected. I can see all the data in the RecyclerView as populated. So far so good.
当我换行的LinearLayout在滚动型的RecyclerView一片空白。我看不出里面RecyclerView什么。为什么?如何使这项工作。
When I wrap the LinearLayout in a ScrollView, the RecyclerView goes blank. I do not see anything inside RecyclerView. Why? How to make this work.
该网页有一个ViewPagerIndicator其中一个选项卡,使一切都在该选项卡需要在一个滚动型。
The page is one of the tabs in a ViewPagerIndicator, so everything in that tab needs to be in a ScrollView.
感谢所有帮助。
推荐答案
这个属性为滚动型设置,
Set this property for the ScrollView,
android:fillViewport="true"
滚动型将扩大自己填写的内容
ScrollView will extend itself to fill the contents
这篇关于机器人:RecyclerView滚动型内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!