私はレイアウトを持って揃えImageViewのアンドロイド
<?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
@Mauriceありがとう、しかし、私の答えは、RelativeLayoutのためにうまくいかなかった、それは私が答えたものです。 – Mukunda