android学习 读书笔记之 android 绘图shape
2016-03-13 00:53
555 查看
<?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>
相关文章推荐
- Android LineaLayout baselineAligned
- Android—将Bitmap图片保存到SD卡目录下或者指定目录
- Android 中字符串的拆分--split的使用
- AndroidStudio下加入百度地图的使用(一)——环境搭建
- android中的文件(图片)上传
- Android Activity的4种启动模式详解(示例)
- 唤醒锁: 检测 Android* 应用中的 No-Sleep(无法进入睡眠)问题
- Android selector的item里的属性说明
- Servlet+msql+ android客户端实现从服务器获取信息
- 36个Android开发常用代码片段
- Android---获取手机联系人及归属地
- [android] 内容提供者实现
- 使用实验性的 Gradle 工具构建 Android NDK 环境
- Android开发之调用摄像头照相并剪切
- Android studio提示:plugs is too old
- This version of android studio is incompatible with the gradle version used.Try disabling the instant run
- Android布局文件.xml中的自定义属性
- android studio Cannot reload AVD list
- android 圆角图片
- 将android手机屏幕投影到电脑端