ToggleButtonLayout
ToggleButtonLayout copied to clipboard
setSelected() does not set the background color
Hi,
When invoking toggle.setSelected(true) the button gets selected but the button background doesn't show the selection.
I've already found a workaround for this issue: use toggle.setToggled(toggle.getId(), true);:

As a developer I'm expecting that setSelected(true) selects the toggle and marks the toggle background as selected. Could you fix this small bug?
With kind regards, Eimert
wrong method, you should use menu.setToggled(R.id.my_id, true);