你好Android的專家,如果屏幕上沒有水平空間,請轉到下一個垂直可用空間?
我有以下佈局:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal">
<ImageButton android:id="@+id/ImageButton01"
android:layout_width="80px"
android:layout_height="80px"
android:background="@drawable/projects_badge"
android:layout_margin="10px"/>
<ImageButton android:id="@+id/ImageButton02"
android:layout_width="80px"
android:layout_height="80px"
android:background="@drawable/projects_badge"
android:layout_margin="10px"/>
<ImageButton android:id="@+id/ImageButton01"
android:layout_width="80px"
android:layout_height="80px"
android:background="@drawable/projects_badge"
android:layout_margin="10px"/>
<ImageButton android:id="@+id/ImageButton02"
android:layout_width="80px"
android:layout_height="80px"
android:background="@drawable/projects_badge"
android:layout_margin="10px"/>
<ImageButton android:id="@+id/ImageButton01"
android:layout_width="80px"
android:layout_height="80px"
android:background="@drawable/projects_badge"
android:layout_margin="10px"/>
<ImageButton android:id="@+id/ImageButton02"
android:layout_width="80px"
android:layout_height="80px"
android:background="@drawable/projects_badge"
android:layout_margin="10px"/>
</LinearLayout>
此佈局的圖像按鈕失控屏幕和不可見。我想從新的一行開始。
任何幫助將不勝感激。
在此先感謝。 :)
也許[這個問題]的第一個答案(http://stackoverflow.com/questions/549451/line-breaking-widget-layout-for-android)可以幫助你嗎? – scessor
謝謝@scessor,這正是我所期待的。我真的很想感謝你:D –