Android shape使用
2013-09-17 10:31
148 查看
使用shape可以方便的实现圆角、渐变、描边效果:
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<gradient android:startColor="#ff000000" android:endColor="#ffffffff" android:angle="0"/> // 颜色渐变效果 android:angle是角度
<solid android:color="#ff00ffff" /> // 颜色填充
<stroke android:width="5dip" android:color="#ff00eebb"/> //描边效果
<corners android:radius="20dip" /> //圆角效果
</shape>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<gradient android:startColor="#ff000000" android:endColor="#ffffffff" android:angle="0"/> // 颜色渐变效果 android:angle是角度
<solid android:color="#ff00ffff" /> // 颜色填充
<stroke android:width="5dip" android:color="#ff00eebb"/> //描边效果
<corners android:radius="20dip" /> //圆角效果
</shape>
相关文章推荐
- Android中shape的使用
- Android中的Shape使用总结
- android中shape的使用
- 【Android进阶学习】shape和selector的结合使用
- shape在Android中的使用
- android使用shape实现布局文件呈圆角
- android:shape的使用
- Android中的Shape使用总结
- Android 使用shape来优化界面效果
- Android开发教程:shape和selector的结合使用
- Android中shape的使用
- 关于android中shape的使用
- 【转】Android UI美化之Shape Drawable的使用
- Android开发之Shape的使用(为TextView等空间添加边框)
- android关于shape的使用
- Android中的Shape使用总结
- Android之Selector与Shape的使用
- Android之Shape和state_enabled使用总结
- android shape 和 select 的使用
- Android使用shape制作圆形控件及添加弹跳动画