Android ImageView Library


License

License

GroupId

GroupId

cn.bingoogolapple
ArtifactId

ArtifactId

bga-imageview
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

aar
Description

Description

Android ImageView Library
Android ImageView Library
Project URL

Project URL

https://github.com/bingoogolapple/BGAImageView-Android
Source Code Management

Source Code Management

https://github.com/bingoogolapple/BGAImageView-Android

Download bga-imageview

How to add to project

<!-- https://jarcasting.com/artifacts/cn.bingoogolapple/bga-imageview/ -->
<dependency>
    <groupId>cn.bingoogolapple</groupId>
    <artifactId>bga-imageview</artifactId>
    <version>1.0.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/cn.bingoogolapple/bga-imageview/
implementation 'cn.bingoogolapple:bga-imageview:1.0.0'
// https://jarcasting.com/artifacts/cn.bingoogolapple/bga-imageview/
implementation ("cn.bingoogolapple:bga-imageview:1.0.0")
'cn.bingoogolapple:bga-imageview:aar:1.0.0'
<dependency org="cn.bingoogolapple" name="bga-imageview" rev="1.0.0">
  <artifact name="bga-imageview" type="aar" />
</dependency>
@Grapes(
@Grab(group='cn.bingoogolapple', module='bga-imageview', version='1.0.0')
)
libraryDependencies += "cn.bingoogolapple" % "bga-imageview" % "1.0.0"
[cn.bingoogolapple/bga-imageview "1.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.android.support » support-v4 jar 23.3.0

Project Modules

There are no modules declared in this project.

🏃 BGAImageView-Android 🏃

  • 使用v4包中的RoundedBitmapDrawable实现圆角矩形、圆形
  • 描边圆形
  • 根据宽度确定高度的正方形

效果图

Image of BGAImageViewDemo

Gradle依赖 Maven Central 「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" />

关于我

新浪微博 个人主页 邮箱 BGA系列开源库QQ群
bingoogolapple bingoogolapple.cn [email protected] BGA_CODE_CLUB

Versions

Version
1.0.0