我有一个像下面滚动型不滚动
<ScrollView android:id="@+id/appsgridscroll"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:fadeScrollbars="true"
android:scrollbarFadeDuration="10000"
android:layout_below="@id/applisttitlebar">
<LinearLayout android:id="@+id/appsgridlayout"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</LinearLayout>
</ScrollView>
而且我动态地添加GridView的到的LinearLayout视图。
我与以下问题正在运行。
GridView控件不伸展,以填补其内容(正如你所看到的图像显示,只有当它在GridView中有多个项目第一行)
GridView控件不滚动(它显示滚动酒吧 - 看到手机(安卓4.1.2图像)),但滚动Nexus7(7寸平板电脑)
任何想法?请建议。
不要设置在GridView的高度WRAP_CONTENT(如果你)。改为设置layout_weight。 – Tarun