6 개의 ImageView 블록이 있습니다. 세로 레이아웃, 2 열 3 행에 들어가기를 원합니다.2 열 3 행 정확한 맞춤, 상대적 레이아웃 (안드로이드)
정확히 6 개가되도록 블록을 균등하게 분산 시키려면 어떻게해야합니까?
마지막 네 블록 사이에 약간의 겹침이 있습니다.
은 (이미지 뷰 3-6은 기본적으로 처음 두 동일합니다.)
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:id="@+id/imageView"
android:padding="96dp"
android:background="@color/colorAccent" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/imageView"
android:layout_alignParentRight="true"
android:id="@+id/imageView2"
android:background="@color/colorPrimary"
android:padding="96dp" />
<ImageView
3 />
<ImageView
4 />
<ImageView
5 />
<ImageView
6 />
</RelativeLayout>
감사합니다,이 일! – Edwin