android - 使用 layout_gravity="bottom||end" xml 时 Android 资源链接失败
问题描述
我试着把我FAB
的放在Bottom
屏幕的右侧。但是每次我build
,如果我使用app
它总是失败AAPT
error
android:layout_gravity="bottom||end"
这是详细的错误:Android资源链接失败
AAPT:错误:'bottom||end' 与属性 layout_gravity (attr) 标志不兼容 [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"
推荐阅读
- css - 如何制作具有粘性第一列的角材料表
- javascript - Webpack 错误:请手动安装 sqlite3 包
- java - maven无法添加库
- excel - 在一台显示器上弹出一封电子邮件,在另一台显示器上显示一个消息框
- html - 如何阻止 prettier 格式化 HTML 文件?
- angularjs - Angularjs 过滤器使用和返回对象:未捕获错误:[$rootScope:infdig]
- tensorflow - 如何将卷积 1D 与 lstm 一起使用?
- r - 在绘图中注释/标记区域
- android - 当我打开 proguard 时,Android Studio 3.1.2 失败并出现 StackOverFlowError
- three.js - threejs - 为一条线创建 3d 透视图