您的位置:首页 > 移动开发 > Android开发

如何让多张图片叠加显示

2010-12-14 17:58 369 查看
那要研究下这个AbsoluteLayout方式布局

问题已经解决。我选用的是AbsoluteLayout方式布局。
<AbsoluteLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content">
<ImageView
    android:src="@drawable/sample_1" --图片1
    android:adjustViewBounds="true"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_x="14.5sp"        ---绝对位置
    android:layout_y ="14.5sp"/>
  <ImageView
    android:src="@drawable/sample_2" --图片2
    android:adjustViewBounds="true"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_x="54.5sp"          --绝对位置
    android:layout_y ="64.5sp"/>   
</AbsoluteLayout>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android layout