zxd_72 于 2013.07.11 14:49 提问
- 如何在多行中显示图像?
-
我创建了一个 gallery 有多行(图像来自网络所以数量是动态的),我想使用 gallery,但是它们显示在中间,所有的都在同一行。我不知道哪个属性控制的这个函数。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <Gallery xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/Gallery" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </LinearLayout>
-
- ssummeraw 2013.07.11 16:59
- 已采纳
你可能需要使用 GridView 代替。
请参考: http://developer.android.com/resources/tutorials/views/hello-gridview.html
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!