ShareDrawable资源 shareDrawable资料用于定义一个基本的集合图形,它在xml资源文件中,使用<shap.../>根元素定义,使用android:shape属性定义集合图形类形。shareDrawable可以定义矩形,圆形,椭圆形,线形等几种图形。 下面举个例子: 在shape ...
分类:
移动开发 时间:
2016-05-02 13:04:57
阅读次数:
208
今天使用到shape,这个里面有很多属性,在这里我记录一下各个属性的使用的情况以及所代表的意思 上面这段就是shape使用的格式,来看一下如何使用: <shape> 定义这是一个GradientDrawable,必须作为根元素。 android:shape 定义shape的值,必须是下面的之一: " ...
分类:
移动开发 时间:
2016-05-01 17:31:12
阅读次数:
209
先说下shape
资源文件里主要包括:边角(corners),渐变色(gradrent),大小(size),边距(padding) ,填充(solid),扫边(stoke)
先说下边角
[html] view
plain copy
corners
android:radius=""
and...
分类:
移动开发 时间:
2016-04-29 17:24:12
阅读次数:
218
shape和coords:是两个主要的参数,用于设定热点的形状和大小。其基本用法如下: <area shape="rect" coords="x1, y1,x2,y2" href=url>表示设定热点的形状为矩形,左上角顶点坐标为(X1,y1),右下角顶点坐标为(X2,y2)。 <area shap ...
分类:
Web程序 时间:
2016-04-27 18:28:26
阅读次数:
266
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://liangruijun.blog.51cto.com/3061169/732310 shape和selector是Android UI设计中经常用到的,比如我们要自定义一个圆角But ...
分类:
移动开发 时间:
2016-04-27 10:58:13
阅读次数:
315
一.给EditText添加背景,并且4角圆弧 对应的xml 以及样式如下: 当然还有一种方式是定义 圆弧 shape来实现 ...
分类:
移动开发 时间:
2016-04-27 09:27:56
阅读次数:
225
先说下shape
资源文件里主要包括:边角(corners),渐变色(gradrent),大小(size),边距(padding) ,填充(solid),扫边(stoke)
先说下边角
[html] view
plain copy
corners
android:radius=""
and...
分类:
移动开发 时间:
2016-04-26 19:55:35
阅读次数:
202
1. 水平向右的进度条
2.水平向左加载的进度条
3.水平两端的加载进度条
---- The mark of the immature man is that he wants to die nobly for a causer while the mark of the mature man is that he wants to live humbly for one
1-1 定义显示进度指示的图形
drawable目录下progress_v_01.xml
<shape xmln...
分类:
移动开发 时间:
2016-04-26 19:53:55
阅读次数:
379
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape=["rectangle" | "oval" | "line" | ...
分类:
移动开发 时间:
2016-04-26 15:53:27
阅读次数:
138
<shape>和<selector>在Android UI设计中经常用到。比如我们要自定义一个圆角Button,点击Button有些效果的变化,就要用到<shape>和<selector>。可以这样说,<shape>和<selector>在美化控件中的作用是至关重要。 在看这篇文章之前,可以看下这个 ...
分类:
移动开发 时间:
2016-04-22 18:13:56
阅读次数:
299