我如何滚动gridview horrizonally insted垂直
问题描述:
我正在做一个任务,从服务器检索图像,并显示在应用程序中的GridView。这个网格视图是向上和向下滚动的。但是,当菜单屏幕滚动时,我想从左向右滚动此视图。网格视图可能吗?还是有更好的方法来做到这一点?请帮我这样做我如何滚动gridview horrizonally insted垂直
答
在你的gridview中添加这行。
android:scrollbars="horizontal"
为前:
<GridView
android:id="@+id/gridView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:animationCache="true"
android:numColumns="3"
android:scrollbars="horizontal"
android:scrollingCache="false" >
</GridView>
http://stackoverflow.com/questions/5725745/horizontal-scrolling-grid-view – Raghunandan 2013-04-05 12:36:11
你可以尝试 “图库视图” .. – Subburaj 2013-04-05 12:37:16