www.pudn.com > 01youkuListView.rar > activity_main.xml, change:2016-09-07,size:4799b


<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:tools="http://schemas.android.com/tools" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    tools:context=".MainActivity" > 
 
    <RelativeLayout 
        android:id="@+id/rl3" 
        android:layout_width="280dp" 
        android:layout_height="140dp" 
        android:background="@drawable/level3" 
        android:layout_alignParentBottom="true" 
        android:layout_centerHorizontal="true" 
        > 
    	<ImageView  
    	    android:id="@+id/iv_channel1" 
    	    android:layout_width="wrap_content" 
    	    android:layout_height="wrap_content" 
    	    android:src="@drawable/channel1" 
    	    android:layout_alignParentBottom="true" 
    	    android:layout_margin="8dp" 
    	    /> 
    	<ImageView  
    	    android:id="@+id/iv_channel2" 
    	    android:layout_width="wrap_content" 
    	    android:layout_height="wrap_content" 
    	    android:src="@drawable/channel2" 
    	    android:layout_alignLeft="@id/iv_channel1" 
    	    android:layout_above="@id/iv_channel1" 
    	    android:layout_marginLeft="23dp" 
    	    android:layout_marginBottom="8dp" 
    	    /> 
    	<ImageView  
    	    android:id="@+id/iv_channel3" 
    	    android:layout_width="wrap_content" 
    	    android:layout_height="wrap_content" 
    	    android:src="@drawable/channel3" 
    	    android:layout_alignLeft="@id/iv_channel2" 
    	    android:layout_above="@id/iv_channel2" 
    	    android:layout_marginLeft="33dp" 
    	    android:layout_marginBottom="8dp" 
    	    /> 
    	<ImageView  
    	    android:layout_width="wrap_content" 
    	    android:layout_height="wrap_content" 
    	    android:src="@drawable/channel4" 
    	    android:layout_centerHorizontal="true" 
    	    android:layout_margin="8dp" 
    	    /> 
    	<ImageView  
    	    android:id="@+id/iv_channel7" 
    	    android:layout_width="wrap_content" 
    	    android:layout_height="wrap_content" 
    	    android:src="@drawable/channel7" 
    	    android:layout_alignParentBottom="true" 
    	    android:layout_margin="8dp" 
    	    android:layout_alignParentRight="true" 
    	    /> 
    	<ImageView  
    	    android:id="@+id/iv_channel6" 
    	    android:layout_width="wrap_content" 
    	    android:layout_height="wrap_content" 
    	    android:src="@drawable/channel6" 
    	    android:layout_alignRight="@id/iv_channel7" 
    	    android:layout_above="@id/iv_channel7" 
    	    android:layout_marginRight="23dp" 
    	    android:layout_marginBottom="8dp" 
    	    /> 
    	<ImageView  
    	    android:id="@+id/iv_channel5" 
    	    android:layout_width="wrap_content" 
    	    android:layout_height="wrap_content" 
    	    android:src="@drawable/channel5" 
    	    android:layout_alignRight="@id/iv_channel6" 
    	    android:layout_above="@id/iv_channel6" 
    	    android:layout_marginRight="33dp" 
    	    android:layout_marginBottom="8dp" 
    	    /> 
    </RelativeLayout> 
     
    <RelativeLayout 
        android:id="@+id/rl2" 
        android:layout_width="180dp" 
        android:layout_height="90dp" 
        android:background="@drawable/level2" 
        android:layout_alignParentBottom="true" 
        android:layout_centerHorizontal="true" 
        > 
    	<ImageView  
    	    android:layout_width="wrap_content" 
    	    android:layout_height="wrap_content" 
    	    android:src="@drawable/icon_search" 
    	    android:layout_alignParentBottom="true" 
    	    android:layout_margin="8dp" 
    	    /> 
    	<ImageView 
    	    android:id="@+id/iv_icon_menu"  
    	    android:layout_width="wrap_content" 
    	    android:layout_height="wrap_content" 
    	    android:src="@drawable/icon_menu" 
    	    android:layout_centerHorizontal="true" 
    	    android:layout_margin="8dp" 
    	    /> 
    	<ImageView  
    	    android:layout_width="wrap_content" 
    	    android:layout_height="wrap_content" 
    	    android:src="@drawable/icon_myyouku" 
    	    android:layout_margin="8dp" 
    	    android:layout_alignParentBottom="true" 
    	    android:layout_alignParentRight="true" 
    	    /> 
    </RelativeLayout> 
     
    <RelativeLayout 
        android:id="@+id/rl1" 
        android:layout_width="100dp" 
        android:layout_height="50dp" 
        android:background="@drawable/level1" 
        android:layout_alignParentBottom="true" 
        android:layout_centerHorizontal="true" 
        > 
    	<ImageView  
    	    android:id="@+id/iv_icon_home" 
    	    android:layout_width="wrap_content" 
    	    android:layout_height="wrap_content" 
    	    android:src="@drawable/icon_home" 
    	    android:layout_centerInParent="true" 
    	    /> 
    </RelativeLayout> 
 
</RelativeLayout>