Skip to content

Commit

Permalink
Release 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
IvBaranov committed Apr 5, 2016
1 parent dacacb8 commit 17c2b29
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ Variations
----------
![Library_countries](images/library_countries.png)
![Library_countries_rect](images/library_countries_rect.png)
![Library_round_rect](images/library_round_rect.png)
![Library_triangle](images/library_triangle.png)

Download
--------

```groovy
compile 'com.github.ivbaranov:materiallettericon:0.2.1'
compile 'com.github.ivbaranov:materiallettericon:0.2.2'
```


Expand All @@ -37,7 +39,7 @@ Or static initializer (see xml attributes below for customization):
```java
MaterialLetterIcon icon = new MaterialLetterIcon.Builder(context) //
.shapeColor(getResources().getColor(R.color.circle_color))
.setShapeType(MaterialLetterIcon.SHAPE_CIRCLE)
.setShapeType(SHAPE.CIRCLE)
.letter("S")
.letterColor(getResources().getColor(R.color.letter_color))
.letterSize(26)
Expand All @@ -62,6 +64,15 @@ app:mli_initials="false" // turn on initials mode (takes `mli_let
app:mli_initials_number="2" // number of initials to be showed
```

Rectangular shape with rounded corners code:

```java
MaterialLetterIcon icon = new MaterialLetterIcon.Builder(context) //
.shapeColor(getResources().getColor(R.color.circle_color))
.setShapeType(SHAPE.ROUND_RECT)
.setRoundRectRx(8) // default x-corner radius
.setRoundRectRy(8) // default x-corner radius
```

Developed By
------------
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
applicationId "com.github.ivbaranov.ma.exmaple"
minSdkVersion MIN_SDK_VERSION
targetSdkVersion TARGET_SDK_VERSION
versionCode 1
versionCode VERSION_CODE.toInteger()
versionName VERSION_NAME
}
buildTypes {
Expand Down
5 changes: 4 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ MIN_SDK_VERSION=11
TARGET_SDK_VERSION=23

# Current library version
VERSION_NAME=0.2.1
VERSION_NAME=0.2.2

# Current library version code
VERSION_CODE=22

# Dependency versions (library)
SUPPORT_LIBRARY_VERSION=23.2.1
Expand Down

0 comments on commit 17c2b29

Please sign in to comment.