shape(二)
来源:互联网 发布:淘宝人脸认证为何失败 编辑:程序博客网 时间:2024/05/18 00:25
button_pressed.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" ><item>
<shape android:shape="rectangle">
<solid android:color="#FF0099cc" />
<corners
android:topLeftRadius="4dip"
android:topRightRadius="4dip"
android:bottomLeftRadius="4dip"
android:bottomRightRadius="4dip" />
</shape>
</item>
<item android:top="1px" android:bottom="1px" android:left="1px" android:right="1px">
<shape>
<gradient
android:startColor="@android:color/holo_blue_dark" android:endColor="@android:color/holo_blue_dark"
android:type="linear" android:angle="90"
android:centerX="0.5" android:centerY="0.5" />
<corners
android:topLeftRadius="4dip"
android:topRightRadius="4dip"
android:bottomLeftRadius="4dip"
android:bottomRightRadius="4dip" />
</shape>
</item>
</layer-list>
第一个item指的是形状是什么(例如长方形),边线是什么颜色
第二个item形状内部的颜色渐变gradient ,拐角怎么处理corners ,边缘怎么处理stroke,等等
0 0
- shape(二)
- Shape对象与VML坐标系(二)
- 项目二(抽象基类shape)
- android shape的使用(总结二)
- Android xml绘图(二)-----------Shape
- TensorFlow入门(二)--Rank,Shape,Type
- Visio二次开发(二)----Shape的添加和连接
- Android资源知识(二)之Shape Drawable的使用
- 安卓自定义控件(二)BitmapShader、ShapeDrawable、Shape
- MapObjects shape数据操作 二
- android shape标签详解(二)
- 14周项目二(抽象shape类派生出几何体类)
- 人脸对齐(二):Active Shape Models ---Their Training and Application
- 布局demo二:shape的使用
- 第14周项目二-Shape
- 第十四周项目二----shape类
- Android基础--shape的使用 二
- shape画图(转)
- 深入剖析Android四大组件(七)——Activity启动的4个阶段
- FZU 2183 简单题(字符串匹配|字符串压缩)(简单)
- JAVA基础一大堆0804反射+注解
- Java学习笔记 线程,注解(注释)...
- 乘法逆元 & hdu 1576 A/B
- shape(二)
- ocp知识点:控制事务
- 1026. Table Tennis (30)
- 利用MyBatis生成器自动生成实体类、DAO接口和Mapping映射文件
- Java方法中的参数传递方式
- linux oracle修改最大连接数
- HDU 3729 I'm Telling the Truth
- hdu 1700 Points on Cycle(几何)(中等)
- 链表的创造(我的困难主要在这)