1
Pleae взглянуть на следующий XMLAndroid LinearLayout Выравнивание по правому
я хочу Выравнивание изображения вправо перед текстом
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/list_selector"
android:orientation="horizontal"
android:padding="6dp" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:background="@drawable/rounded_corner"
android:orientation="vertical" >
<ImageView
android:id="@+id/image_category"
android:layout_width="72dp"
android:layout_height="72dp"
android:contentDescription="@string/app_name"
android:padding="0dp"
android:src="@drawable/ic_launcher" />
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="8dp"
android:orientation="vertical" >
<TextView
android:id="@+id/txt_allphotos_categty"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:text=""
android:textColor="@color/texthoverclr"
android:gravity="right"
android:textSize="20sp" />
</LinearLayout>
я хочу выровнять фотографию справа, затем текст после него вправо
использовать относительные макете вместо линейного макета будет легко. –
Вы можете включить поддержку RTL в манифесте. –
Вы имеете в виду этот андроид: поддерживаетRtl = "true" ?? cand Вы можете отредактировать код для меня? – user3418508