android的scrollview视图内部的子视图中android:layout_height="fill_parent"无效的解决办法

    在Android卷轴视图(ScrollView)的子视图中,设置其android:layout_height="fill_parent"属性是无效的。为了解决这个问题,我们需要在在ScrollView中加入如下属性:

1 android:fillViewport="true"

原文地址:

    http://stackoverflow.com/questions/2599837/linearlayout-not-expanding-inside-a-scrollview

posted @ 2011-11-25 16:35  网络渔夫  阅读(351)  评论(0编辑  收藏  举报