Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setSelected() does not set the background color #18

Open
Eimert opened this issue Jun 28, 2019 · 1 comment
Open

setSelected() does not set the background color #18

Eimert opened this issue Jun 28, 2019 · 1 comment

Comments

@Eimert
Copy link

Eimert commented Jun 28, 2019

Hi,

When invoking toggle.setSelected(true) the button gets selected but the button background doesn't show the selection.
2019-06-28_11:33:19-maindesk_001
I've already found a workaround for this issue: use toggle.setToggled(toggle.getId(), true);:
2019-06-28_11:33:27-maindesk_001

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

@dr0-dev
Copy link

dr0-dev commented Jul 16, 2021

wrong method, you should use menu.setToggled(R.id.my_id, true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants