Skip to content

Commit

Permalink
Merge pull request #4 from andremion/andremion-patch-1
Browse files Browse the repository at this point in the history
Add Customization section into README file
  • Loading branch information
andremion authored Jun 22, 2017
2 parents a6b7d59 + 2493a01 commit 0d2d6ec
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ counterFab.increase(); // Increase the current count value by 1
counterFab.decrease(); // Decrease the current count value by 1
```

## Customization

The recommended way to customize the background color is by using the `app:backgroundTint` attribute

```xml
<com.andremion.counterfab.CounterFab
android:id="@+id/counter_fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:backgroundTint="#009688"
android:src="@drawable/ic_add_white_24dp" />
```

See more at the [sample](https://github.com/andremion/CounterFab/tree/master/sample)

## Libraries and tools used in the project
Expand Down

0 comments on commit 0d2d6ec

Please sign in to comment.