Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rcketscientist authored Feb 2, 2017
1 parent 69353b8 commit ad915c0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<p>You can add the library with:</p>
`compile 'com.anthonymandra:ToggleButtons:1.1.0'`
<p>You can use <code>ToggleGroup</code> much like you would a <code>RadioGroup</code> and fill it with <code>ToggleButton</code>, or anything extending <code>CompoundButton</code>. See the Sample for examples.</p>

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 <code>CompoundButton</code>, or the old android <code>ToggleButton</code>
![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).

Expand Down

0 comments on commit ad915c0

Please sign in to comment.