shape绘制方法

来源:互联网 发布:怎么更换淘宝的实名制 编辑:程序博客网 时间:2024/06/06 11:36


//右击res 新建一个  android resource file  

//  File name  名称

//resource type  更改为drawable

//Root  element  更改该为shape             OK



//XML绘制

<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"    android:shape="rectangle" >
//实心    <solid android:color="#0000cc" />
//圆角    <corners android:radius="5dip" /></shape>
//完成之后直接引用就可以了

原创粉丝点击