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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章