Android使用shape实现非四角圆角
2017-07-13 10:03
543 查看
如图效果:如果直接设置radius,会是四角都是圆角
<corners android:radius="5dp" />
区别性的设置圆角,需要使用下面的:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners
android:bottomLeftRadius="0dp"
android:bottomRightRadius="6dp"
android:topLeftRadius="0dp"
android:topRightRadius="6dp" />
<solid android:color="#ffffff" />
</shape>
相关文章推荐
- android 使用shape 实现圆角图片__不用.9了
- android使用shape实现布局文件呈圆角
- Android实现圆角边框,shape的使用详解以及常用效果
- Android Shape Drawable 静态使用和动态使用(圆角,渐变实现)
- Android Shape Drawable 静态使用和动态使用(圆角,渐变实现)
- Android shape的使用实现圆角,虚线,渐变等效果
- Android技巧之shape实现控件圆角,背景,边框等属性
- Android之shape与selector实现圆角
- Android 使用shape来实现界面效果
- Android 自定义View修炼-Android实现圆形、圆角和椭圆自定义图片View(使用BitmapShader图形渲染方法)
- android中的shape圆角布局的使用
- 使用selector和shape实现圆角选项
- ShapeDemo---Android布局实现圆角边框
- 使用shape实现圆角button
- Android中的Shape使用总结—圆角的按钮
- Android 自定义View修炼-实现自定义圆形、圆角和椭圆ImageView(使用Xfermode图形渲染方法)
- 【android】 使用一个shape.xml文件,使用代码设置不同圆角背景颜色
- Android之shape与selector实现圆角
- android:shape的使用 -实心,渐变,描边,圆角
- android里面shape属性用代码实现圆角背景的工具类