我用了 android:layout_gravity="right"没什么效果,不知道怎么弄了
建议使用RelativeLayout
这种对位置有特殊需求的建议使用RelativeLayout
LinearLayout
比较适合 顺序排布的线性布局
也可以在 ImageView 的左侧再加个 TextView ,然后设置其 width = 0, weight = 1,让其充满左侧,这样你的 ImageView 就在右侧了
这种情况只能嵌套使用用 Relativelayout,使用android:layout_alignParentRight="true" 这个属性