我试着把我的 FAB
在 Bottom
上屏幕右侧。但每次我build
app
, 它总是失败 AAPT
error
如果我使用 android:layout_gravity="bottom||end"
这是详细的错误: Android 资源链接失败
AAPT: error: 'bottom||end' is incompatible with attribute layout_gravity (attr) flags [bottom=80, center=17, center_horizontal=1, center_vertical=16, clip_horizontal=8, clip_vertical=128, end=8388613, fill=119, fill_horizontal=7, fill_vertical=112, left=3, right=5, start=8388611, top=48].
我试过使用 android:layout_gravity="bottom"
它工作得很好。
有人可以帮我吗?
最佳答案
使用
android:layout_gravity="bottom|end"
代替
android:layout_gravity="bottom||end"
关于使用 layout_gravity ="bottom||end"xml 时 Android 资源链接失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58038941/