首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

android:shape的施用

2012-07-03 
android:shape的使用??我们还可以把描边弄成虚线的形式,设置方式为:android:dashWidth5dpandroid:dashG

android:shape的使用

?

?我们还可以把描边弄成虚线的形式,设置方式为:
android:dashWidth="5dp"

android:dashGap="3dp"
其中android:dashWidth表示'-'这样一个横线的宽度,android:dashGap表示之间隔开的距离。

corners:圆角
android:radius为角的弧度,值越大角越圆。
我们还可以把四个角设定成不同的角度,方法为:

?

?

?

?

获得焦点状态:
android:shape的施用

按下状态:
android:shape的施用

热点排行