मैं एंड्रॉइड प्रोग्रामिंग के लिए नया हूं लेकिन documentation से लेआउट के बारे में मुझे कितना समझ आया है, रिलेवेटलाइट का अधिकतर उपयोग होता है जब आपको कुछ नियमों और फ्रेमलेआउट के आधार पर विचारों की आवश्यकता होती है जब आप विचारों को ओवरलैप करना चाहते हैं।फ़्रेम और सापेक्ष लेआउट के बीच अंतर?
लेकिन दुर्भाग्यवश निम्न प्रोग्राम के लिए मुझे रिलेवेटिवआउट का उपयोग करके फ़्रेमलेआउट का कार्य मिलता है। मैंने अपना काम पूरा कर लिया लेकिन समझने के लिए, क्या मुझे अंतर में कुछ याद आ रहा है? इसके अलावा, बटन मेरी छवि पर कैसे आए? (। यहां तक कि अन्य छवि अतिव्यापी है)
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/ic_launcher"
/>
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/ic_launcher"
android:layout_alignParentTop="true"
android:layout_alignLeft="@id/imageView1"
/>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/imageView1"
android:gravity="center"
android:orientation="horizontal"
android:weightSum="1.0" >
<Button
android:id="@+id/button1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:text="Login" />
<Button
android:id="@+id/button2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:text="Register" />
<Button
android:id="@+id/button3"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.33"
android:text="Try application" />
</LinearLayout>
</RelativeLayout>
http://stackoverflow.com/a/4905403/1434631 – Nermeen