Android 使用 layout_gravity="bottom||end" 时资源链接失败 xml
Android resource linking failed when using layout_gravity="bottom||end" xml
我试图将 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"
我试图将 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"