Skip to content

Commit

Permalink
修改README和版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
KuangGang committed Dec 20, 2019
1 parent 2c1bc4e commit 09f2681
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
|![](images/07.png)|![](images/01.png)|![](images/02.png)|
|---|---|---|
|![](images/04.png)|![](images/05.png)|![](images/06.png)|
|![](images/03.png)|![](images/08.png)|
|![](images/03.png)|![](images/08.png)|![](images/09.png)|

### 特点
* LinearLayout、RelativeLayout、FrameLayout支持圆角
* ImageView、TextView、View支持圆角
* CircleImageView
* 支持圆形图片:CircleImageView
* 支持边框,不遮挡图片
* 使用xml进行配置,使用简单
* ......

Expand All @@ -31,16 +32,17 @@ allprojects {
**Step 2. 添加项目依赖**
``` gradle
dependencies {
implementation 'com.github.KuangGang:RoundCorners:1.0.1'
implementation 'com.github.KuangGang:RoundCorners:1.0.2'
}
```
**Step 3. 在布局文件中添加需要的RoundCorners**
```
<com.kproduce.roundcorners.CircleImageView
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_marginTop="20dp"
android:src="@mipmap/ic_test" />
android:src="@mipmap/ic_test"
app:rStrokeColor="@android:color/holo_red_dark"
app:rStrokeWidth="5dp" />
<com.kproduce.roundcorners.RoundImageView
android:layout_width="200dp"
Expand All @@ -63,7 +65,9 @@ dependencies {
android:layout_width="200dp"
android:layout_height="200dp"
app:rTopRightRadius="30dp"
app:rBottomRightRadius="30dp">
app:rBottomRightRadius="30dp"
app:rStrokeColor="@android:color/holo_green_dark"
app:rStrokeWidth="5dp">
<View
android:layout_width="match_parent"
Expand Down Expand Up @@ -96,6 +100,8 @@ dependencies {
|rTopRightRadius|右上角圆角半径|0dp
|rBottomLeftRadius|左下角圆角半径|0dp
|rBottomRightRadius|右下角圆角半径|0dp
|rStrokeWidth|边框宽度|0dp
|rStrokeColor|边框颜色|Color.WHITE

### 原理浅解
[Android View的绘制流程](https://github.com/KuangGang/RoundCorners)
Expand All @@ -107,5 +113,6 @@ View的绘制看一下这篇文章即可,代码版本比较早,但是逻辑
### 版本记录
|版本号|更新内容|
|---|---|
|1.0.2|1.增加边框<br>2.增加RoundButton/RoundViewPager|
|1.0.1|1.修复低版本系统圆角View黑框问题<br>2.增加CircleImageView|
|1.0.0|First Version|
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ buildscript {

min_sdk_version = 16
target_sdk_version = 28
version_code = 2
version_name = '1.0.1'
version_code = 3
version_name = '1.0.2'
}

repositories {
Expand Down
Binary file modified images/04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 09f2681

Please sign in to comment.