1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > android imageview 加边框 RCImageView 自定义圆角ImageView 带边框效果

android imageview 加边框 RCImageView 自定义圆角ImageView 带边框效果

时间:2021-08-29 00:01:11

相关推荐

android imageview 加边框 RCImageView 自定义圆角ImageView 带边框效果

概况

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.

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。