ورود

View Full Version : راست چین کردن لیست ویو



mehdi64org
یک شنبه 27 بهمن 1392, 13:58 عصر
سلام
لیست ویویی که الان درست کردم به این شکله:

116789

و این هم کدشه:


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >

<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/bullet_red_icon" />

<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView" />

</LinearLayout>

ولی چون قراره مطالبم فارسی باشه میخوام که اون آیکون قرمز سمت راست باشه و در کنارش هم تکست ویو قرار بگیره ولی هر کاری میکنم مرتب نمیشه. لطفا راهنمایی بفرمایید.

با تشکر

saeed_g21
یک شنبه 27 بهمن 1392, 14:57 عصر
بفرما


<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >

<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:src="@drawable/bullet_red_icon" />

<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/imageView1"
android:layout_marginBottom="14dp"
android:layout_toLeftOf="@+id/imageView1"
android:text="TextView" />

</RelativeLayout>

mehdi64org
یک شنبه 27 بهمن 1392, 15:31 عصر
ممنون ولی نوشته ها معلوم نیست. این جوری شد:


116793

saeed_g21
یک شنبه 27 بهمن 1392, 16:24 عصر
خوب textView رو کمی بکش اینور اونور درست میشه