# rclayout **Repository Path**: hemo_data_android/rclayout ## Basic Information - **Project Name**: rclayout - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-06 - **Last Updated**: 2025-01-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # RCLayout(圆角布局) Android 通用圆角布局,快速实现圆角需求。 之前做项目的时候有圆角相关需求,在网上找了很多方案都不够满意,于是自己做了一个,目前已经使用了一段时间,更新了多个版本,我遇到的问题都进行了修复,并且添加了很多方便的可配置属性,以满足不同需求。 **相关原理解析: [雕虫晓技 · 通用圆角布局全解析](http://www.gcssloop.com/gebug/rclayout)** ## 效果预览
>
> **这种优化就间接的导致了使用 Path 时部分 Xfermode 效果与之前不同。**
### 4.添加方法
#### 4.1 添加仓库
在项目的 `build.gradle` 文件中配置仓库地址。
```groovy
allprojects {
repositories {
jcenter()
// 私有仓库地址
maven { url "http://lib.gcssloop.com:8081/repository/gcssloop-central/" }
}
}
```
#### 4.2 添加项目依赖
在需要添加依赖的 Module 下添加以下信息,使用方式和普通的远程仓库一样。
```groovy
implementation 'com.gcssloop.widget:rclayout:1.8.1'
```
## 作者简介
#### 作者微博: [@GcsSloop](http://weibo.com/GcsSloop)
#### 个人网站: http://www.gcssloop.com
## 感谢
感谢 [](https://github.com/dengyuhan) 贡献的代码。
## 更新日志
#### v1.8.1
1. 完善点击事件分发逻辑。
#### v1.8.0
1. 修改 Android P(9.0) 系统圆角失效问题。
2. 调整刷新 Path 位置。
#### v1.7.0
修复代码中圆角设置错误问题。
#### v1.6.1
解决 Android 9 上圆角策略失效问题。
#### v1.6.0
描边颜色支持 seletor。
#### v1.5.4
提供在 Java 中动态设置属性的方法。
#### v1.5.3
降低兼容最低版本。
精简项目结构。
#### v1.5.2
默认不剪裁背景,即 clip-background 默认为 false。
修复剪裁不完全的情况。
#### v1.5.1
完善布局属性提示。
#### v1.5.0
添加 RCImageView (属性和 RCRelativeLayout 相同)。
抽取 RCHelper。
#### v1.4.7
增加 `clip_background` 属性,控制对 RCLayout 的背景剪裁默认为 true(剪裁)。
#### v1.4.6
对 RCLayout 背景剪裁 (背景剪裁暂不支持抗锯齿)。
#### v1.4.5
描边支持半透明。
#### v1.4.4
优化性能(回收 TypedArray)。
#### v1.4.3
优化性能(移除在dispathcDraw中创建的对象)。
#### v1.4.2
尝试修复屏幕像素密度过低时出现边框问题。
#### v1.4.1
修复圆形状态下Padding值问题。
#### v1.4.0
限定点击区域为显示区域。
#### v1.3.0
支持描边。
添加描边宽度,描边颜色两个属性。
#### v1.2.0
支持圆形。
#### v1.1.0
更新圆角实现方式。
添加抗锯齿。
#### v1.0.0
允许对每一个角分别设置半径。
支持padding。
#### v1.0.0-alpha
测试圆角方案是否可行。
允许统一设置圆角半径。
## 版权信息
```
Copyright (c) 2017 GcsSloop
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.
```