Skip to content
项目

关于

一个帮助 Android 内置 View 轻松便捷地设置圆角矩形背景的库,同时可以减少相应的 shape 资源。

学习与教育

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

#FlycoRoundView A library helps Android built-in views easy and convenient to set round rectangle background and accordingly related shape resources can be reduced. 一个扩展原生控件支持圆角矩形框背景的库,可以减少相关shape资源文件使用. ##Demo

##Gradle

dependencies{
    compile 'com.flyco.roundview:FlycoRoundView_Lib:1.1.4@aar'
}

###Attributes

name format description
rv_backgroundColor color background color
rv_backgroundPressColor color background press color
rv_cornerRadius dimension background rectangle corner radius,unit dp
rv_strokeWidth dimension background rectangle stroke width,unit dp
rv_strokeColor color background rectangle stroke color
rv_strokePressColor color background rectangle stroke press color
rv_textPressColor color text press color
rv_isRadiusHalfHeight boolean corner radius is half of height
rv_isWidthHeightEqual boolean width and height is the same size which is the max value of them
rv_cornerRadius_TL dimension corner radius top left,unit dp
rv_cornerRadius_TR dimension corner radius top right,unit dp
rv_cornerRadius_BL dimension corner radius bottom left,unit dp
rv_cornerRadius_BR dimension corner radius bottom right,unit dp
rv_isRippleEnable boolean is ripple effect enable for Api21+

探索相关项目

加载中…