Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 1.5 KB

README.md

File metadata and controls

24 lines (15 loc) · 1.5 KB

Download license

#ToggleButtons

This library adds two custom widgets that adhere to the Material Design definition for toggle buttons.

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).

screenshot_1484163201


Official Material Guidelines

materialtoggle