shape用法
来源:互联网 发布:梦幻西游 知乎 编辑:程序博客网 时间:2024/05/15 16:49
shape用法
<shape> android:shape=["rectangle" | "oval" | "line" | "ring"] 其中rectagle矩形,oval椭圆,line水平直线,ring环形 <shape>中子节点的常用属性: <gradient> 渐变 android:startColor 起始颜色 android:endColor 结束颜色 android:angle 渐变角度,0从上到下,90表示从左到右,数值为45的整数倍默认为0; android:type 渐变的样式 liner线性渐变 radial环形渐变 sweep <solid > 填充 android:color 填充的颜色 <stroke > 描边 android:width 描边的宽度 android:color 描边的颜色 android:dashWidth 表示'-'横线的宽度 android:dashGap 表示'-'横线之间的距离 <corners > 圆角 android:radius 圆角的半径 值越大角越圆 android:topRightRadius 右上圆角半径 android:bottomLeftRadius 右下圆角角半径 android:topLeftRadius 左上圆角半径 android:bottomRightRadius 左下圆角半径
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true"> <shape android:shape="rectangle" > <corners android:radius="30dp"/> <stroke android:color="#ff0000" android:width="1dp"/> <solid android:color="#eee"/> </shape> </item> <item > <shape android:shape="rectangle" > <corners android:radius="30dp"/> <stroke android:color="#00ff55" android:width="1dp" /> <solid android:color="#fff"/> </shape> </item></selector>
0 0
- Shape 用法
- shape用法
- shape用法
- andorid 的shape用法
- android shape用法
- android shape 用法整理
- shape 的一般用法
- android中的shape用法
- Android Shape 简单用法
- Android shape 用法详解
- android shape的用法
- shape用法笔记
- numpy函数:shape用法
- shape用法笔记
- numpy函数:shape用法
- shape的用法
- shape的基本用法
- shape用法详解
- shell学习--变量
- 快捷键-netbeans
- php那些容易出错的题型
- Android studio SO 导入巨坑!!必须将so文件放入jniLibs 目录下
- 【ife】任务三十四:听指令的小方块(二)
- shape用法
- C#中的<%# %>,<%= %>,<% %>
- sql语句给数据库表新增字段
- O - Bone Collector
- 微信支付code=-1的问题解决(坑之下划线)
- 背景图片修改大小
- web导航代码库
- 【C++解题报告】Hello, World!
- tomcat的三种运行模式