码迷,mamicode.com
首页 > 移动开发 > 详细

Android基础TOP6_1:FrameLyayout和ImageView制作层叠图片

时间:2017-04-09 15:56:21      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:oid   draw   imageview   src   androi   apk   parent   效果   top   

Activity:

<FrameLayout 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"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.example.top6_1.MainActivity" >

    <ImageView 
        android:layout_height="500dp"
        android:layout_width="200dp"
        android:src="@drawable/dfhgc"/>
     <ImageView 
         android:layout_marginTop="50dp"
         android:layout_marginLeft="50dp"
        android:layout_height="500dp"
        android:layout_width="200dp"
        android:src="@drawable/hgcgh"/>
     <ImageView 
           android:layout_marginTop="100dp"
         android:layout_marginLeft="100dp"
        android:layout_height="500dp"
        android:layout_width="200dp"
        android:src="@drawable/fg"/>
      <ImageView 
            android:layout_marginTop="150dp"
         android:layout_marginLeft="150dp"
        android:layout_height="500dp"
        android:layout_width="200dp"
        android:src="@drawable/jhv"/>
     
</FrameLayout>

 

 运行效果:

技术分享

 

Android基础TOP6_1:FrameLyayout和ImageView制作层叠图片

标签:oid   draw   imageview   src   androi   apk   parent   效果   top   

原文地址:http://www.cnblogs.com/AndroidCSY/p/6684782.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!