0
A
回答
0
好的嘗試了這一點,
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:orientation="horizontal" >
<RadioButton
android:id="@+id/radio_pirates"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="male"
android:onClick="onRadioButtonClicked"/>>
<TextView
android:layout_width="100dp"
android:text="besides"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="@string/send" />
</LinearLayout>
+0
是的,但我如何讓該文本出現在顯示按鈕的同一行?有些文本非常長,它們在按鈕所在的位置上方開始一行(請參閱問題)。我想調整文本以與RadioButton相同的行開始。 – Mir
相關問題
- 1. 使用RadioGroup/RadioButton對齊文本
- 2. Radiobutton甚至水平對齊
- 3. 文本對齊不對齊
- 4. 對齊文本
- 5. 對齊文本
- 6. 對齊文本
- 7. 對齊文本
- 8. 對齊文本
- 9. 文本對齊
- 10. 對齊文本
- 11. 文本對齊
- 12. 如何在radioGroup中對齊radioButton和textView?
- 13. 如何使RadioButton的Bullet對齊頂部?
- 14. 文本框 - 文本對齊
- 15. 文本對齊的文本
- 16. 對齊文本右對齊圖標
- 17. CSS文本對齊對齊大空格
- 18. TToolButton文本對齊
- 19. UITableViewCellStyleSubtitle文本對齊
- 20. 對齊文本左
- 21. 右對齊文本?
- 22. CSS對齊文本
- 23. JList文本對齊
- 24. 對齊文本GGPLOT2
- 25. CCLabelTTF文本對齊
- 26. NSTextView文本對齊
- 27. 將文本對齊
- 28. 對齊文本行
- 29. 對齊文本框
- 30. Notepad ++文本對齊
我不明白你問 – njzk2
我想在一個單選按鈕文本在同一行按鈕本身,當我在應用程序中。現在,由於文本非常長,文本從單選按鈕上方開始一行,如上所示。這有意義嗎? – Mir
請發佈示例XML佈局。 –