Releases: lopspower/CircularImageView
Releases · lopspower/CircularImageView
4.3.1
What's Changed
- Update script to publish to Maven Central with Gradle 7.x.x
- Update version Kotlin 1.7.10
- Update gradle version 7.2.2
- Update version AndroidX AppCompat 1.5.0
- Add issue template for Bug & Report
- Add pull request template
Full Changelog: 4.3.0...4.3.1
USAGE
implementation 'com.mikhaellopez:circularimageview:4.3.1'
Release 4.2.0
RELEASE NOTES
- Update Kotlin to 1.3.61
- VectorDrawable is now draw with best quality
- shadow_radius is now in DP
USAGE
implementation 'com.mikhaellopez:circularimageview:4.2.0'
Release 4.1.0
RELEASE NOTES
- Update Kotlin to 1.3.50
- Improve
onMeasure
method to center the circle when the main view is not square - Add gradient border properties:
civ_border_color_start
,civ_border_color_end
andciv_border_color_direction
- Add gradient circle color properties:
civ_circle_color_start
,civ_circle_color_end
andciv_color_direction
- Add new scaleType:
FIT_CENTER
,CENTER_CROP
andCENTER_INSIDE
USAGE
implementation 'com.mikhaellopez:circularimageview:4.1.0'
Release 4.0.1
RELEASE NOTES
- Update Kotlin to 1.3.40
- Include Kotlin Stdlib in the dependencies list in pom.xml to use this library on Android Java project
USAGE
implementation 'com.mikhaellopez:circularimageview:4.0.1'
Release 4.0.0
RELEASE NOTES
- CircularImageView is now rewrite in Kotlin
- default
android:elevation
is now support instead ofapp:civ_shadow
- Migration to AndroidX for AppCompatImageView
- Replace
app:civ_background_color
byapp:civ_color
to manage color of circle for transparent image - Replace
addShadow
bysetShadowEnable
method - Fix shadow effect on API 28
USAGE
implementation 'com.mikhaellopez:circularimageview:4.0.0'
Release 3.1.0
RELEASE NOTES
- Update gradle version
- Update compile, target & min sdk Version
- Remove allowBackup & supportsRtl on library
- Improve sample
- Update script to publish on jcenter
- New properties to set background color for png ->
civ_background_color
orsetBackgroundColor
- CircularImageView extends now AppCompatImageView, you can used
app:srcCompat
- Update Licence file Apache Version 2.0
- You can now set shadowGravity with
setShadowGravity
method or withciv_shadow_gravity
(center, top, bottom, start or end) - Add ColorFilter support
- Improve drawableToBitmap method
- Replace cropBitmap method by center image in shader with this default size to fix memory leak from this method
USAGE
implementation 'com.mikhaellopez:circularimageview:3.1.0'
Preview and new Prefix
I update this library with:
- Add Prefix
civ
in front of properties (to correct "Attribute has already been defined") - Fix Preview in Edit mode
New demo app on PlayStore and Fixes
Add two new params to set shadow param
I update this library for you with two new params:
app:shadow_color
(color) -> default BLACKapp:shadow_radius
(float) -> default 8.0f
Or programmatically:
CircularImageView circularImageView = (CircularImageView)findViewById(R.id.yourCircularImageView);
// Add Shadow with default param
circularImageView.addShadow();
// or with custom param
circularImageView.setShadowRadius(15);
circularImageView.setShadowColor(Color.RED);
You can used this update with gradle:
compile 'com.mikhaellopez:circularimageview:2.0.2'
Add Library with Gradle
You now add this library with gradle like :
compile 'com.mikhaellopez:circularimageview:2.0.1'