चित्र: http://img838.imageshack.us/img838/1402/picse.pngरिलेवेटिवआउट का उपयोग करके मैं निम्नलिखित परिणाम कैसे प्राप्त करूं?
मैं Pic में लेआउट कैसे बना सकता हूं। 2 केवल रिलेवेटिवआउट का उपयोग कर। नीचे पहले स्क्रीनशॉट का एक्सएमएल लेआउट है।
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/timer_textview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_marginTop="10dip"
android:textSize="30sp"
android:layout_alignParentTop="true"
android:text="@string/timer_start" />
<ListView
android:id="@+id/questions_listview"
android:layout_below="@id/timer_textview"
android:layout_width="wrap_content"
android:layout_height="fill_parent" />
<Button android:id="@+id/true_btn"
android:text="@string/true_option"
android:layout_alignParentBottom="true"
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button
android:id="@+id/false_btn"
android:text="@string/false_option"
android:layout_toRightOf="@id/true_btn"
android:layout_alignBaseline="@id/true_btn"
android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
'एंड्रॉइड: लेआउट_वेट' का कोई 'रिलेवेटिवआउट' में कोई अर्थ नहीं है। मुझे खेद है कि आप एक 'रिलेवेटिव लयआउट' का उपयोग करके जो चाहते हैं उसे लागू करने के तरीके से अवगत नहीं हैं। – CommonsWare