首页 > 其他 > 详细

xml中背景为圆形状颜色 ,图片为透明图片

时间:2015-11-27 16:52:53      阅读:248      评论:0      收藏:0      [点我收藏+]

 

1 .

<ImageView  
        android:id="@+id/zhongjie"  
        android:layout_width="wrap_content"  
        android:layout_height="wrap_content"  
        android:background="@drawable/mark_caller_house_agent"  
        android:scaleType="centerInside"  
        android:src="@drawable/背景图" />
 
 

 

2 .

<?xml version="1.0" encoding="utf-8"?>  
    <shape  
        xmlns:android="http://schemas.android.com/apk/res/android"  
        android:shape="oval"  
        android:useLevel="false">  
       
        <solid android:color="#66CC00"/>  
        <size android:width="50dp"  
              android:height="50dp"/>  
    </shape>

3 效果

技术分享

xml中背景为圆形状颜色 ,图片为透明图片

原文:http://www.cnblogs.com/520-1314/p/5000818.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!