All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Support for right-to-left languages.
- Ripple effect on click from Material Design.
- Customizable toggle button dimensions
- Customizable border's color and width
- Customizable separator's color and visibility
- Added
android:entriesattribute to set the entries from xml. - Added
android:layout_widthandandroid:layout_heightattributes to supportmatch_parentwidth and height. - Added
android:enabledattribute to support disable toggle buttons. - Added
app:checkedBorderColorandapp:uncheckedBorderColorattributes. - Added
app:border_widthattribute. - Added
app:elevationattribute to support button's elevation. - Added
app:separatorVisibleattribute to set if the separator should be visible or not. - Added
app:toggleMarginattribute to support separated toggle switch. - Added
app:toggleWidthandapp:toggleHeightattributes to set the dimensions of the toggle buttons.
app:activeBgColorrenamed toapp:checkedBackgroundColor.app:inactiveBgColorrenamed toapp:uncheckedBackgroundColor.app:activeTextColorrenamed toapp:checkedTextColor.app:inactiveTextColorrenamed toapp:uncheckedTextColor.app:cornerRadiusrenamed toapp:borderRadius
- Method
getCheckedTogglePositionrenamed togetCheckedPosition. - Method
setCheckedTogglePositionrenamed tosetCheckedPosition. - Listener
OnToggleSwitchChangeListenerrenamed toOnChangeListener. - Changed listener method
onToggleSwitchChangeListener(int pos, boolean checked)changed toonToggleSwitchChanged(int pos).
- Method
getCheckedTogglePositionsrenamed ingetCheckedPositionsand its return type isList<Integer>. - Method
setCheckedTogglePositionrenamed insetCheckedPositionsand its argument is now aList<Integer>. - Listener
OnToggleSwitchChangeListenerrenamed toOnChangeListener. - Renamed listener method
onToggleSwitchChangeListenertoonMultipleToggleSwitchChanged.
- Removed method
setUncheckedTogglePositionfromMultipleToggleSwitch