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:entries
attribute to set the entries from xml. - Added
android:layout_width
andandroid:layout_height
attributes to supportmatch_parent
width and height. - Added
android:enabled
attribute to support disable toggle buttons. - Added
app:checkedBorderColor
andapp:uncheckedBorderColor
attributes. - Added
app:border_width
attribute. - Added
app:elevation
attribute to support button's elevation. - Added
app:separatorVisible
attribute to set if the separator should be visible or not. - Added
app:toggleMargin
attribute to support separated toggle switch. - Added
app:toggleWidth
andapp:toggleHeight
attributes to set the dimensions of the toggle buttons.
app:activeBgColor
renamed toapp:checkedBackgroundColor
.app:inactiveBgColor
renamed toapp:uncheckedBackgroundColor
.app:activeTextColor
renamed toapp:checkedTextColor
.app:inactiveTextColor
renamed toapp:uncheckedTextColor
.app:cornerRadius
renamed toapp:borderRadius
- Method
getCheckedTogglePosition
renamed togetCheckedPosition
. - Method
setCheckedTogglePosition
renamed tosetCheckedPosition
. - Listener
OnToggleSwitchChangeListener
renamed toOnChangeListener
. - Changed listener method
onToggleSwitchChangeListener(int pos, boolean checked)
changed toonToggleSwitchChanged(int pos)
.
- Method
getCheckedTogglePositions
renamed ingetCheckedPositions
and its return type isList<Integer>
. - Method
setCheckedTogglePosition
renamed insetCheckedPositions
and its argument is now aList<Integer>
. - Listener
OnToggleSwitchChangeListener
renamed toOnChangeListener
. - Renamed listener method
onToggleSwitchChangeListener
toonMultipleToggleSwitchChanged
.
- Removed method
setUncheckedTogglePosition
fromMultipleToggleSwitch