bingoogolapple / BGAImageView-Android Licence: other
No description, website, or topics provided.
Programming Languages java 68154 projects - #9 most used programming language
🏃 BGAImageView-Android🏃
使用v4包中的RoundedBitmapDrawable实现圆角矩形、圆形
描边圆形
根据宽度确定高度的正方形
效果图
Gradle依赖 「latestVersion」指的是左边这个 maven-central 徽章后面的「数字」,请自行替换。
dependencies {
compile ' com.android.support:support-v4:latestVersion'
compile ' cn.bingoogolapple:bga-imageview:latestVersion@aar'
}
自定义属性说明
<!-- 默认图片资源,默认为null -->
<attr name =" android:src" />
<!-- 是否是圆形,默认值为false -->
<attr name =" bga_iv_isCircle" format =" boolean" />
<!-- 圆角矩形的半径,默认值为0dp -->
<attr name =" bga_iv_cornerRadius" format =" reference|dimension" />
<!-- 是否是矩形,默认值为false -->
<attr name =" bga_iv_isSquare" format =" boolean" />
<!-- 描边的宽度,默认值为0dp -->
<attr name =" bga_iv_borderWidth" format =" reference|dimension" />
<!-- 描边的颜色,默认值为Color.WHITE -->
<attr name =" bga_iv_borderColor" format =" reference|color" />
关于我
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at
[email protected] .