سلام
من میخوام تو یه صفحه ؛ فسمت اول یه لیبل ( پرسش چند خطی یک تک خطی ) داشته باشم و چهار تا رادیوباتن که اونا هم می تونن چند خطی یا تک خط باشن طراحی کنم
کد پایین رو نوشتم اما مشکل داره . به خصوص وقتی متن عناصر کم و زیاد میشه چیدمان بهم می ریزه ..
***
متن سوال
متن گزینه 1
متن گزینه 2
متن گزینه 3
متن گزینه 4
هدفم اینکه که فیلدهایی که بالا اشاره کردم به صورتی تو xml داشته باشم که با چند خطی شدن و ... صفحه بهم نریزه
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true">
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/rl"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="10dp"
tools:context=".flashcardpage"
android:background="@drawable/bg3"
>
<EditText
android:id="@+id/et2"
android:layout_width="450dp"
android:layout_height="wrap_content"
android:layout_marginTop="100dp"
android:layout_marginBottom="20dp"
android:background="#d4d7a5"
android:fontFamily="sans-serif-condensed"
android:hint="من عاشق مشعل علی ام ، من عاشق مشعل علی ام می دانی نمی دانم که چگونه است که نمی توانم از لحظات زندگی ام لذت ببرم ایا تو می توانی ؟"
android:padding="10dp"
android:textDirection="rtl"
/>
<RadioGroup xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RadioButton
android:id="@+id/r1"
android:layout_width="450dp"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginTop="200dp"
android:layout_marginBottom="20dp"
android:background="#d4d7a5"
android:button="@null"
android:drawableRight="@android:drawable/btn_radio"
android:fontFamily="sans-serif-condensed"
android:hint="من عاشق مشعل علی ام ، من عاشق مشعل علی ام می دانی نمی دانم که چگونه است که نمی توانم از لحظات زندگی ام لذت ببرم ایا تو می توانی ؟"
android:padding="10dp"
android:textDirection="rtl" />
<RadioButton
android:id="@+id/r2"
android:layout_width="450dp"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginTop="300dp"
android:layout_marginBottom="20dp"
android:background="#d4d7a5"
android:button="@null"
android:drawableRight="@android:drawable/btn_radio"
android:fontFamily="sans-serif-condensed"
android:hint="من عاشق مشعل علی ام ، من عاشق مشعل علی ام می دانی نمی دانم که چگونه است که نمی توانم از لحظات زندگی ام لذت ببرم ایا تو می توانی ؟"
android:padding="10dp"
android:textDirection="rtl" />
<RadioButton
android:id="@+id/r3"
android:layout_width="450dp"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginTop="400dp"
android:layout_marginBottom="20dp"
android:background="#d4d7a5"
android:button="@null"
android:drawableRight="@android:drawable/btn_radio"
android:fontFamily="sans-serif-condensed"
android:hint="من عاشق مشعل علی ام ، من عاشق مشعل علی ام می دانی نمی دانم که چگونه است که نمی توانم از لحظات زندگی ام لذت ببرم ایا تو می توانی ؟"
android:padding="10dp"
android:textDirection="rtl" />
<RadioButton
android:id="@+id/r4"
android:layout_width="450dp"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginTop="500dp"
android:layout_marginBottom="20dp"
android:background="#d4d7a5"
android:button="@null"
android:drawableRight="@android:drawable/btn_radio"
android:fontFamily="sans-serif-condensed"
android:hint="من عاشق مشعل علی ام ، من عاشق مشعل علی ام می دانی نمی دانم که چگونه است که نمی توانم از لحظات زندگی ام لذت ببرم ایا تو می توانی ؟"
android:padding="10dp"
android:textDirection="rtl" />
</RadioGroup>
</RelativeLayout>
</ScrollView>