2016-06-07 83 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

这种类型的布局是不需要亲爱的。如果我必须做出这样的简单。我可以轻松制作。但我需要像我已经发布的图像 –