2
A
回答
1
有用的定位屬性:
android:layout_alignParentRight="true"
app:layout_anchorGravity="bottom|right|end"
android:layout_gravity="bottom|right|end"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_margin="4dp"
相關問題
- 1. 地圖片段頂部的浮動動作按鈕
- 2. Android - Google地圖頂部的浮動動作按鈕
- 3. OnClickListener不能使用谷歌地圖頂部的按鈕片段
- 4. LinearLayout - 定位視圖
- 5. 在圖片頂部添加按鈕
- 6. 活動中的浮動操作按鈕 - 如何在片段中固定到recyclerview?
- 7. 在地圖片段頂部設置textview
- 8. 如何在兩個操作欄中分割圖標 - 頂部和底部?
- 9. 在地圖片段中添加按鈕?
- 10. 將LinearLayout放在列表視圖頂部
- 11. 重新定位Google地圖片段中的MyLocation按鈕
- 12. android自定義視圖如何在視圖頂部繪製按鈕
- 13. 在操作欄頂部顯示視圖
- 14. 如何插入浮動操作按鈕內延伸片段
- 15. 在片段中設置浮動操作按鈕的可見性
- 16. Android地圖片段頂部的活動
- 17. 在頂部和兩個視圖之間放置視圖
- 18. 如何在android中添加兩個圖像視圖和兩個按鈕
- 19. 在ListView頂部包含浮動操作按鈕
- 20. 想要在列表視圖中添加兩個浮動按鈕
- 21. 帶選擇器和自定義視圖的LinearLayout頂部
- 22. 片段自定義視圖addToBackStack(),自定義視圖和後退按鈕
- 23. android地圖固定按鈕圖像頂部
- 24. 如何集中中央和兩個按鈕頂部的佈局
- 25. RelativeLayout按鈕頂部和按鈕下面的自定義列表視圖
- 26. 如何使用CoordinatorLayout正確地固定「浮動操作按鈕」?
- 27. 固定在圖像的頂部位置FB Like按鈕(響應)
- 28. 在android片段視圖中使用微調和按鈕單擊
- 29. 在操作欄中設置片段內的自定義視圖
- 30. 在運行時在圖像視圖頂部添加按鈕
它是在這裏找到答案。 http://stackoverflow.com/questions/24459352/how-can-i-add-the-new-floating-action-button-between-two-widgets-layouts – NiharG15 2014-11-26 09:51:20
你需要發佈更多關於你的信息佈局。該解決方案將取決於您的佈局類型。 – Aeyoun 2015-12-17 01:50:36