如何在每行并排列出布局中的项目 - android

时间:2018-05-18 07:05:29

标签: android-layout listview

帮助我理解可以并排列出项目并可滚动的布局。

  

例如

<LinearLayout 
    android:id="@+id/LinearLayout" 
    android:layout_height="wrap_content" 
    android:layout_width="fill_parent" 
    android:layout_alignParentBottom="true">
    <ImageView
        android:id="@+id/Button02" 
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:layout_weight="1">

    <ImageView
        android:id="@+id/Button03" 
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content"
        android:layout_weight="1" 
        >
</LinearLayout>

上面的示例将仅列出两个并排的项目,但它不会溢出所以在我的情况下我不知道应用程序将从服务器拉出的项目如何但这些项目必须溢出并且每行仅显示两个项目。

请帮助我刚接触android,所以我无法做到。

0 个答案:

没有答案