2016-06-07 30 views
-2

我想在android中實現這樣的佈局,但不知道如何在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

這種類型的佈局是不需要親愛的。如果我必須做出這樣的簡單。我可以輕鬆製作。但我需要像我已經發布的圖像 –