You can use this library to have a double border circular image view for any given image of any size.
I will explain how to use this library in your project.
This is just like regular Image View, but with a rounded circle and double border associated with it. The below screenshot will help you to understand how it will look like when you use this in your project.
Attribute | Type | XML | Description |
---|---|---|---|
outerciclecolor | color | outerciclecolor |
Outer circle color |
innercirclecolor | color | innercirclecolor |
Inner circle color |
outerradius | integer | outerradius |
Outer circle radius value |
innerradius | integer | innerradius |
Inner circle radius value |
outerradiuswidth | integer | outerradiuswidth |
Outer circle stroke width |
innerrardiuswidth | integer | innerrardiuswidth |
Inner circle stroke width |
cliptype | enum | center |
to create the circular view from center crop |
cliptype | enum | left |
to create the circular view from left crop |
cliptype | enum | right |
to create the circular view from right crop |
borderanim | boolean | borderanim |
to enable or disable border animation |
Center Crop |
Left Crop |
Right Crop |
Border Animation |
Copyright 2020 Chiradeep Banerjee
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.