Hello!
Help to choose the right markup for displaying two pictures so that they are displayed
in portrait orientation: the first from the top, the second from the bottom;
in horizontal orientation: first left, second right; Pictures should stick to each other in the center. What Layot and what ratio of fill_ parent, match_ parent, wrap_content to choose for each ImageView?
It seems like a simple question, but got lost in three pines.
Markup Code:
<?xml version="1.0" encoding="utf-8"?> <GridLayout 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" android:background="@drawable/fon" tools:ignore="UseCompoundDrawables" > <ImageView android:id="@+id/aboutImageOne" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="top|center_vertical|center_horizontal" android:contentDescription="@string/about_image" /> <ImageView android:id="@+id/aboutImageTwo" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="bottom|center_vertical|center_horizontal" android:contentDescription="@string/about_image" /> </GridLayout>