苏打邱的博客
在 LinearLayout 中,尝试将 ImageView 设置为 靠右对齐,也就是:
LinearLayout
ImageView
12
<ImageView android:layout_gravity="end" />
代码无效。
原因: 我也不知道,还在想嘞
办法: 把 LinearLayout 改成 RelativeLayout 然后设置属性:
RelativeLayout
<ImageView android:layout_alignParentEnd="true"/>
这样就能 ImageView 就能靠右对齐了。对于不更改布局方式让 ImageView 靠右对齐还没有找到有效的解决方法。