Android:res之layer-list图片叠加

时间:2014-07-12 13:31:53   收藏:0   阅读:530

layer-list可以将多个图片按照顺序层叠起来。 

item属性有:

bubuko.com,布布扣

 如

bubuko.com,布布扣 和 bubuko.com,布布扣   叠加为:bubuko.com,布布扣

语法:faceleft.xml

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
  <item android:drawable="@drawable/a"></item>
 <item android:drawable="@drawable/b"></item>
</layer-list>

引用:

 <ImageView
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:background="@drawable/faceleft" />

Android:res之layer-list图片叠加,布布扣,bubuko.com

原文:http://www.cnblogs.com/tinyphp/p/3835943.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!