鉴于重叠图像的android [英] Overlap images in view in android

查看:85
本文介绍了鉴于重叠图像的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个包含两个图像的布局。(我一起附上图像文件).The图像应该是这样的,首先应该在second.Can重叠一些身体请帮助我,因为我是新手到Android任何帮助将AP preciable.There实际上是两个图像的一个普通的图像,另一个有倾斜lines.I想使所得到的图像出现类似如下

I need to create a layout containing two images .(I am attaching the image file along).The images should be such that the first should overlap over the second.Can some body please help me as i am a newbie to android any help will be appreciable.There are actually two images one plain image and another having slanting lines.I want to make the resultant image appear something like the following

推荐答案

您需要一个框架布局是这样的:

you need a frame layout something like this:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
       android:orientation="vertical"
       android:layout_width="match_parent"
       android:layout_height="match_parent">
  <ImageView
            android:id="@+id/image1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:src="@drawable/image1"/>
  <ImageView
            android:id="@+id/image2"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:src="@drawable/image2"/>

此将布置在彼此的顶部件。 :)

This will layout items on top of each other. :)

这篇关于鉴于重叠图像的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆