Skip to content

Commit

Permalink
ReadMe updated
Browse files Browse the repository at this point in the history
  • Loading branch information
TalbotGooday committed Sep 15, 2020
1 parent 2aa49fa commit a0ce812
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,50 @@
# AvatarView
# AvatarView

[![](https://jitpack.io/v/TalbotGooday/AvatarView.svg)](https://jitpack.io/#TalbotGooday/AvatarView)
[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)]()

A simple AvatarView based on the AppCompatImageView

<img src="/screenshots/1.png" width=32%/>

## Getting started

Add to your root build.gradle:
```Groovy
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
```
## Code example

Settle the AvatarView somewhere in your XML like this:

```xml
<com.goodayapps.widget.AvatarView
android:id="@+id/avatarView1"
android:layout_width="@dimen/avatar_size"
android:layout_height="@dimen/avatar_size"
android:src="@drawable/ic_launcher_foreground"
app:avBackgroundColor="@color/colorPrimary"
app:avBorderColor="@color/colorAccent"
app:avBorderWidth="5dp"
app:avVolumetricDrawable="false"
app:avVolumetricPlaceholder="false"
app:iconDrawableScale=".7"
app:placeholderText="AV" />
```

Add the dependency:
```Groovy
dependencies {
implementation 'com.github.TalbotGooday:AvatarView:x.x.x'
}
```


## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
Binary file added screenshots/1.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 a0ce812

Please sign in to comment.