开发者

How to display pictures on multiple rows , android

i want to have a gallery that has multiple rows (the pictures are from web so the number is dynamic) I tried to use gallery but they appear in centre and all in same r开发者_运维技巧ow, I don t know what atributes regard this functionality

    <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>

thank you


Maybe you need to use GridView instead? http://developer.android.com/resources/tutorials/views/hello-gridview.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜