标签:文件 top start pad tom roi add 用法 背景
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- 边角的圆弧半径 -->
<corners android:radius="9dp" />
<!-- 实心填充 -->
<solid android:color="#00000000" />
<!-- 描边:一般大小都是1dp -->
<stroke
android:width="1dp"
android:color="#ff000000" />
<!-- 四周留出来的空白,和xml文件中的pad效果一样,对内起作用 -->
<padding
android:bottom="30dp"
android:left="20dp"
android:right="30dp"
android:top="20dp" />
<!-- 背景颜色渐变 -->
<gradient
android:angle="90"
android:endColor="#ff00ff00"
android:startColor="#ff0000ff" />
</shape>标签:文件 top start pad tom roi add 用法 背景
原文地址:http://www.cnblogs.com/ww668/p/6813571.html