I'm having some issues with laying out an activity layout in xml, well I'm using the Design option and the layout is shown in xml below, which is all embedded in a RelativeLayout.
Basically, what I want to have is four even ImageViews which I'll be adding images too, for a Quiz and there are 4 squares, two on top and two on bottom which altogether will make a larger square.
What I have is ok, but I think there should be a better or standard way or laying out stuff like this with Android?
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView"
android:maxWidth="100dp"
android:maxHeight="100dp"
android:minHeight="100dp"
android:minWidth="100dp"
android:nestedScrollingEnabled="false"
android:layout_toStartOf="@+id/imageView2"
android:layout_alignTop="@+id/imageView2"
android:layout_toLeftOf="@+id/imageView2" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView2"
android:maxWidth="100dp"
android:maxHeight="100dp"
android:minHeight="100dp"
android:minWidth="100dp"
android:nestedScrollingEnabled="false"
android:layout_marginTop="94dp"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_marginRight="89dp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView3"
android:maxWidth="100dp"
android:maxHeight="100dp"
android:minHeight="100dp"
android:minWidth="100dp"
android:nestedScrollingEnabled="false"
android:layout_below="@+id/imageView2"
android:layout_alignLeft="@+id/imageView2"
android:layout_alignStart="@+id/imageView2"
android:layout_alignRight="@+id/imageView2"
android:layout_alignEnd="@+id/imageView2" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView4"
android:maxWidth="100dp"
android:maxHeight="100dp"
android:minHeight="100dp"
android:minWidth="100dp"
android:nestedScrollingEnabled="false"
android:layout_below="@+id/imageView"
android:layout_alignLeft="@+id/imageView"
android:layout_alignStart="@+id/imageView" />