RelativeLayout 内で ImageView と TextView を中央に配置する必要があります。何が間違っているのかわかりません。
これが私のコードです:
<RelativeLayout
android:id="@+id/teamNameLayout"
android:layout_width="130dip"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:background="@drawable/border"
android:layout_toLeftOf="@+id/teamPosition"
>
<ImageView
android:id="@+id/teamIcon"
android:src="@drawable/logo1"
android:layout_width="20dip"
android:layout_height="fill_parent"
android:scaleType="fitXY"
android:textStyle="bold"
android:textSize="16sp"
/>
<TextView android:id="@+id/teamName"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:textColor="#000000"
android:textStyle="bold"
android:textSize="16sp"
android:text="blabla" />
</RelativeLayout>
「center_horizontal」を試しましたが、成功しませんでした。ImageView が TextView の右側にある必要があります。