2014-11-21 22 views
2

enter image description here我如何定位浮在兩個視圖頂部(地圖片段和LinearLayout中)操作按鈕

我想達到的意見的定位。兩個視圖頂部的浮動操作按鈕,其中一半按鈕與每個視圖重疊。有人可以幫助我的XML?

+0

它是在這裏找到答案。 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

+0

你需要發佈更多關於你的信息佈局。該解決方案將取決於您的佈局類型。 – Aeyoun 2015-12-17 01:50:36

回答

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" 
相關問題