概况
RCImageView
圆型或者圆角图片(带有边框效果),适配了ImageView的ScaleType属性
RoundImageView
定义圆角图片,四个角圆角弧度可各自定义,也可不定义默认角度为20px.
Gradle 添加引用
compile 'com.github.pao11:RCImageViewRelease:v1.1.0'
How to use 如何使用
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
android:src="@drawable/mine"
app:type="circle" />
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
android:src="@drawable/mine"
app:round_leftUp="3dp"
app:round_rightUp="3dp"/>
about attrs 关于自定义的属性
##更新记录
v1.2.0.12.01发布第三个版本
v1.1.0.10.09发布第二个版本
v1.0.0.09.30发布第一个版本
Copyright Notice
Copyright (C) pao11
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
/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.