android 背景边框变圆角
2013-01-17 18:31
218 查看
android 背景边框变圆角
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke android:width="5dip" android:color="#FFFF00" /><!-- 描边 :边框宽度与颜色 -->
<padding android:left="20dip" android:top="0dip" android:right="0dip" android:bottom="0dip" /><!-- 主要内容的padding 文字距离上下左右的距离 -->
<corners android:topLeftRadius="15dip"
android:topRightRadius="15dip"
android:bottomLeftRadius="0dip"
android:bottomRightRadius="0dip"/><!-- 圆角的半径 也可以统一设置半径 android:radius="9dip"-->
<gradient android:startColor="#ff8c00" android:endColor="#FFFFFF" android:angle="270" /> <!-- 渐变 -->
<solid android:color="#FFEFD5" /> <!-- 没有描边的中间部分 --><!--solid 与 gradient 只能显示在代码最后那个-->
</shape>
相关文章推荐
- Android给TextView设置透明背景、圆角边框
- Android技巧之shape实现控件圆角,背景,边框等属性
- (转)#小美化#Android给TextView设置透明背景、圆角边框
- android 圆角边框、渐变背景的TextView
- Android给TextView设置透明背景、圆角边框
- android 圆角边框、渐变背景的TextView
- 【Android UI】案例02 圆角边框、圆角背景的实现(shape)
- android shape实现控件圆角,背景,边框等属性
- Android给TextView设置透明背景、圆角边框
- Android给TextView设置透明背景、圆角边框
- 【Android UI】案例02 圆角边框、圆角背景的实现(shape)
- android 背景边框变圆角的几种方法
- Android给TextView和EditText等控件设置透明背景、圆角边框
- android 背景边框变圆角
- android 背景边框变圆角的几种方法
- android 开发技巧(10)--为背景添加圆角边框
- Android给TextView设置透明背景、圆角边框
- Android实现代码画虚线边框背景效果
- LinearLayout设置白色背景、灰色边框、倒圆角
- android开发 - 圆角和边框