From ad915c09367d347260bd17b3139da14966111da8 Mon Sep 17 00:00:00 2001 From: Anthony Mandra Date: Thu, 2 Feb 2017 21:21:33 +0100 Subject: [PATCH] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 11e114e..ff7a168 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,14 @@ This library adds two custom widgets that adhere to the Material Design definition for toggle buttons. -When no text is present they will use a custom draw that allows proper image alignment. When text is present they will behave like a traditional CompoundButton (ToggleButton). You can toggle exclusive selection on a group and you can also allow unselecting (no selection at all). Buttons support tint. +

You can add the library with:

+`compile 'com.anthonymandra:ToggleButtons:1.1.0'` +

You can use ToggleGroup much like you would a RadioGroup and fill it with ToggleButton, or anything extending CompoundButton. See the Sample for examples.

+ +When no text is present they will use a custom draw that allows proper image alignment. When text is present they will behave like a traditional CompoundButton, or the old android ToggleButton +![image](https://cloud.githubusercontent.com/assets/4026030/22566665/2954ec68-e98d-11e6-9c23-765adeba4e74.png) + +You can toggle exclusive selection or multi selection on a group and you can also allow unselecting (no selection at all). Buttons support tint. Library is currently API 21+, but can be ported to 11+ (possibly 7 or 9).