Soy nuevo en la programación de Android, pero por lo mucho que he entendido de los diseños del documentation, RelativeLayout se utiliza principalmente cuando necesita las vistas basadas en algunas reglas y el FrameLayout cuando quiere superponer vistas.¿Diferencia entre el diseño de marco y relativo?
Pero desafortunadamente para el siguiente programa obtengo el trabajo de FrameLayout utilizando RelativeLayout. Hice mi trabajo pero para entenderlo, ¿me estoy perdiendo algo en la diferencia? Además, ¿cómo llegaron los botones a mi imagen? (. Incluso la otra imagen es la superposición)
<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