android学习 读书笔记之 android 绘图shape

来源:互联网 发布:淘宝一件代发好做吗 编辑:程序博客网 时间:2024/05/16 04:24
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android">   <!--默认shape的 shape属性为:rectangle   [rectangle,oval,line,ring]-->    <!--当shape属性为rectangle时使用-->    <!--radius半径 会被后面单独设置的覆盖-->    <corners        android:radius=""        android:topLeftRadius=""        android:topRightRadius=""        android:bottomLeftRadius=""        android:bottomRightRadius=""        ></corners>    <!--渐变-->    <gradient        android:angle=""        android:centerX=""        android:centerY=""        android:centerColor=""        android:endColor=""        android:gradientRadius=""        android:startColor=""        android:useLevel=""        android:type="[linear,radial,sweep]"/>    <!--内边距-->    <padding        android:left=""        android:right=""        android:top=""        android:bottom=""        />    <!--填充颜色-->    <solid        android:color=""></solid>    <!--边框  dashWidth虚线宽度 dashGap虚线间隔-->    <stroke android:width=""        android:color=""        android:dashWidth=""        android:dashGap=""></stroke></shape>

0 0
原创粉丝点击