Mal*_*ean 10 android android-layout android-linearlayout android-xml
我觉得以前一定要问过,但我找不到.
我希望有一个LinearLayout东西与右边和底部对齐.
我试过了:
android:gravity="right | bottom"
android:gravity="right + bottom"
android:gravity="right & bottom"
android:gravity="right, bottom"
android:gravity="right bottom"
Run Code Online (Sandbox Code Playgroud)
所有这些产生
Error: String types not allowed (at 'gravity' with value 'right, bottom').
Run Code Online (Sandbox Code Playgroud)
我想我可以在子元素上使用边距,但我宁愿不这样做.
Mal*_*ean 20
Grah.这是空间.正确的语法是
android:gravity="right|bottom"
Run Code Online (Sandbox Code Playgroud)
我希望Eclipse会有这样的建议,如果它看到你输入一个字符串.喜欢
Error: String types not allowed (at 'gravity' with value 'right, bottom').
If you want to enter multiple values, use the syntax "value1|value2"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5711 次 |
| 最近记录: |