Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yiiguxing/compositionavatar
Android composition avatar. 仿QQ讨论组头像
https://github.com/yiiguxing/compositionavatar
android avatar custom-view qq
Last synced: 3 days ago
JSON representation
Android composition avatar. 仿QQ讨论组头像
- Host: GitHub
- URL: https://github.com/yiiguxing/compositionavatar
- Owner: YiiGuxing
- License: mit
- Created: 2017-04-04T11:44:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-07T02:49:56.000Z (almost 3 years ago)
- Last Synced: 2024-12-24T03:09:32.404Z (10 days ago)
- Topics: android, avatar, custom-view, qq
- Language: Java
- Homepage: https://www.jianshu.com/p/349aa6153fcc
- Size: 9.72 MB
- Stars: 378
- Watchers: 11
- Forks: 57
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CompositionAvatar [![](https://jitpack.io/v/YiiGuxing/CompositionAvatar.svg)](https://jitpack.io/#YiiGuxing/CompositionAvatar)
**Android composition avatar**仿QQ讨论组头像
- 基础
![基础](./images/base.png)- 动态增减图像
![动态](./images/dynamic_drawables.gif)- 动态设置间距
![动态](./images/dynamic_gap.gif)- 动画图像
![动画](./images/animation.gif)- Drawable状态(如点击状态)(selector)
![状态](./images/state.gif)- 矢量图
![状态](./images/vector.png)### 使用
1. 添加 JitPack 仓库地址到项目构建文件 - [`build.gradle`](./build.gradle):
```groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
2. 添加依赖:
```groovy
dependencies {
compile 'com.github.YiiGuxing:CompositionAvatar:v1.0.4'
}
```
3. 在 `xml` 上使用:
```xml
```
详细请看 [`sample`](./sample)