我想将图像放在视图的右侧.为此,我正在使用类似的东西
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
...some other elements
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
android:id="@+id/imageIcon"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:src="@drawable/image_icon" >
...
以上似乎把图像放在了中心位置.无论我们处于纵向还是横向模式,如何确保图像右对齐?
感谢名单!