0
A
回答
1
創建RelativeLayout
和使用屬性android:layout_alignParentTop="true"
的按鈕。
見代碼片段:
<RelativeLayout
android:layout_height="fill_parent"
android:orientation="horizontal"
android:layout_width="match_parent">
<Button
android:layout_alignParentTop="true"
android:layout_width="120dip"
android:layout_height="wrap_content"
android:layout_marginTop="2dip"
android:id="@+id/btn_send"
android:text="Send"
android:layout_alignParentLeft="true"/>
<Button
android:id="@+id/btn_clear"
android:layout_width="120dip"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_height="wrap_content"
android:text="Reset"
/>
<!-- your rest of layout elements -->
</RelativeLayout>
相關問題
- 1. 創建一個靜態菜單欄
- 2. 在WPF中創建一個菜單欄?
- 3. 創建菜單欄
- 4. 創建菜單欄
- 5. 創建HTML菜單欄
- 6. 在導航欄固定標題菜單
- 7. 邊欄菜單中的固定部分?
- 8. 保持固定菜單欄不重疊
- 9. 固定菜單
- 10. 如何創建一個固定的導航欄iOS Swift
- 11. 在Python中創建一個Windows菜單欄
- 12. 下創建二級菜單欄的第一個ORACLE APEX
- 13. 在操作欄上創建一個選項菜單
- 14. 如何在Access中創建一個菜單欄使用VBA
- 15. 如何創建一個滾動或靜態工具欄菜單
- 16. .HTML5替代與1個固定(菜單)欄
- 17. 創建具有固定頭,固定側邊欄角
- 18. 創建一個簡單的Python菜單
- 19. 創建一個簡單的IVR菜單
- 20. 固定菜單問題,固定時垂直菜單堆棧
- 21. Bootstrap:在導航欄固定頂部和導航欄固定底部之間創建一個動態div
- 22. 如何在JSF中創建菜單欄
- 23. 創建1Password-like macOS菜單欄應用
- 24. 如何在python3.5中創建菜單欄
- 25. 在jsf 2.0中創建菜單欄
- 26. 創建一個固定的URL
- 27. 如何在HTML中創建底部固定位置菜單?
- 28. 如何創建固定菜單(鏈接從右到左) - HTML&CSS
- 29. 如何使用JSF創建菜單欄和子菜單
- 30. Asp Boilerplate ,,,如何在菜單欄中創建新菜單?
我可以做出這樣的菜單欄上,我躺在這個相對佈局的文本透明? – 2011-02-17 06:22:00