2016-06-07 1 views
-2

나는 안드로이드에서 이와 같은 레이아웃을 구현하고 싶지만 xml을 구현하는 방법을 모른다. 도움이 필요하다.아래 주어진 이미지처럼 레이아웃을 디자인하는 방법

enter image description here

+0

recycleview – Shubhank

+0

방법 모든 예에서 엇갈리게 배치에 대한 검색? 나는 노력하고 있지만 성공하지 못했습니다. –

+0

당신은 사람들을 더 잘 인도하기 위해 시도한 것을 게시해야합니다. – Shubhank

답변

1
<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 

    <ImageView 
     android:id="@+id/imageBannar" 
     android:layout_width="match_parent" 
     android:layout_height="200dp" 
     android:src="@mipmap/ic_launcher"/> 

    <ImageView 
     android:id="@+id/imageBottomLeft" 
     android:layout_width="100dp" 
     android:layout_height="100dp" 
     android:layout_below="@+id/imageBannar" 
     android:src="@mipmap/ic_launcher" 
     android:layout_alignBottom="@+id/imageBottomMiddle" /> 

    <ImageView 
     android:id="@+id/imageBottomMiddle" 
     android:layout_width="100dp" 
     android:layout_height="100dp" 
     android:src="@mipmap/ic_launcher" 
     android:layout_below="@+id/imageBannar" 
     android:layout_centerHorizontal="true" /> 

    <ImageView 
     android:id="@+id/imageBottomRight" 
     android:layout_width="100dp" 
     android:layout_height="100dp" 
     android:src="@mipmap/ic_launcher" 
     android:layout_below="@+id/imageBannar" 
     android:layout_alignParentRight="true" 
     android:layout_alignParentEnd="true" /> 
</RelativeLayout> 
+0

이런 유형의 레이아웃은 필요하지 않습니다. 이처럼 간단하게 만들어야합니다 .i 쉽게 만들 수 있습니다.하지만 이미지를 올린 것처럼 필요합니다. –