的权利我有一个布局对齐ImageView的布局Android的
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFFFF">
<TextView android:id="@+id/groupname"
android:paddingLeft="50px"
android:textSize="16px"
android:background="#FFFFFF"
android:textColor="#000000"
android:textStyle="normal"
android:layout_width="wrap_content"
android:layout_height="50px"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginRight="6dp"
android:background="#ffffff"
android:src="@drawable/sort"/>
</LinearLayout>
呈现在第一图像现在发生等,但我想呈现像在第二图像完全右对齐。任何帮助都是有用的。
期待您的回复。 谢谢。
谁提到的RelativeLayout为相当多的解决方案的人有正确的解决方案。只是告诉我们不工作不会帮助你自己或任何人。 – Maurice 2012-02-21 08:47:33
@Maurice谢谢,但对我来说,RelativeLayout的答案并不成立,这就是我所回答的。 – Mukunda 2012-02-21 09:08:24