問題:
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