android shape-color
来源:互联网 发布:手写单例模式 java 编辑:程序博客网 时间:2024/05/20 23:32
http://www.cnblogs.com/cyanfei/archive/2012/07/27/2612023.html
http://www.sioe.cn/yingyong/yanse-rgb-16/
shape用于设定形状,可以在selector,layout等里面使用,有6个子标签,各属性如下:
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" > <!-- 圆角 --> <corners android:radius="9dp" android:topLeftRadius="2dp" android:topRightRadius="2dp" android:bottomLeftRadius="2dp" android:bottomRightRadius="2dp"/><!-- 设置圆角半径 --> <!-- 渐变 --> <gradient android:startColor="@android:color/white" android:centerColor="@android:color/black" android:endColor="@android:color/black" android:useLevel="true" android:angle="45" android:type="radial" android:centerX="0" android:centerY="0" android:gradientRadius="90"/> <!-- 间隔 --> <padding android:left="2dp" android:top="2dp" android:right="2dp" android:bottom="2dp"/><!-- 各方向的间隔 --> <!-- 大小 --> <size android:width="50dp" android:height="50dp"/><!-- 宽度和高度 --> <!-- 填充 --> <solid android:color="@android:color/white"/><!-- 填充的颜色 --> <!-- 描边 --> <stroke android:width="2dp" android:color="@android:color/black" android:dashWidth="1dp" android:dashGap="2dp"/></shape>
添加背景之后
阅读全文
0 0
- android shape-color
- android中shape、selector、color
- 《老罗Android第二季》color、 Shape Drawable
- Android 代码创建Shape属性(solid, corner, stroke, color)
- 改变shape solid color
- 动态改变shape color
- Android的selector和shape基本使用和color颜色列表
- android:shape
- Android Shape
- android shape
- android:shape
- android shape
- android shape
- Android Shape
- android:shape
- Android Shape
- Android Shape
- android shape
- 【OpenCV入门指南】第一篇 安装OpenCV
- this,static关键字和包pakage
- 程序员面试金典:像素设定、加法运算替代
- 湖南省第六届大学生计算机程序设计竞赛I
- NIFI简介
- android shape-color
- yii2使用composer安装出错,github授权问题
- ubuntu16.04下配置Qt+OpenCV开发环境
- 学习的笔记
- 【OpenCV入门指南】第二篇 缩放图像
- 直接插入排序
- Sony Vegas Pro 11.0汉化版 含32位、64位
- 莫慈金数 那罗延数
- JAVA中的内部类链接到外部类