我在一個單選組中有 7個單選按鈕。 我使用 orientation ="horizontal" 水平渲染它們。 但一次只能看見 4,而其餘的則不可見。
是否有任何方法可以在第二行中顯示它的余的內容,並將所有這些'radiobutton'保存在一個radiogroup`中?
如果你需要我的密碼-
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1 BHK"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1.5 BHK"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2 BHK"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2.5 BHK"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2 BHK"/>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2.5 BHK"/>