Tôi có một bố tríAligning ImageView sang phải bố trí 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>
Rendering đang xảy ra bây giờ như trong hình ảnh đầu tiên nhưng tôi muốn làm cho giống như trong hình ảnh thứ hai hoàn toàn đúng thẳng hàng. Mọi sự giúp đỡ đều có ích.
Mong trả lời của bạn. cảm ơn.
Những người đề cập RelativeLayout như một giải pháp có khá nhiều giải pháp đúng. Chỉ cần nói với chúng tôi không làm việc là không giúp bản thân bạn hay bất cứ ai. – Maurice
@Maurice cảm ơn, nhưng đối với tôi câu trả lời đã không làm việc ra cho RelativeLayout, đó là những gì tôi trả lời. – Mukunda