开发者

How to display pictures on multiple rows , android

开发者 https://www.devze.com 2023-03-27 00:18 出处:网络
i want to have a gallery that has multiple rows (the pictures are from web so the number is dynamic)

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

精彩评论

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