How can I add the new “Floating Action Button” between two widgets/layouts

問題:

I guess you have seen the new Android design guidelines, with the new "Floating Action Button" aka "FAB" 我想你已經看到了新的Android設計指南,新的“浮動動作按鈕”又名“FAB”

For instance this pink button: 例如這個粉紅色的按鈕:

在此輸入圖像描述

My question sounds stupid, and I have already tried a lot of things, but what is the best way to put this button at the intersection of two layouts? 我的問題聽起來很愚蠢,我已經嘗試了很多東西,但是將這個按鈕放在兩個佈局的交叉點上的最佳方法是什麼?

In the above exemple, this button is perfectly placed between what we can imagine to be an ImageView and a relativeLayout. 在上面的例子中,這個按鈕完全位於我們可以想象的ImageView和relativeLayout之間。

I have already tried a lot of tweaks, but I am convinced there is a proper way to do it. 我已經嘗試了很多調整,但我確信有一個正確的方法來做到這一點。


解決方案:

參考一: https://en.stackoom.com/question/1eczg
參考二: https://stackoom.com/question/1eczg
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章