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

[Question] Enable/Disable Buttons #24

Closed
TurKurT656 opened this issue May 17, 2018 · 2 comments
Closed

[Question] Enable/Disable Buttons #24

TurKurT656 opened this issue May 17, 2018 · 2 comments

Comments

@TurKurT656
Copy link

Hi, Thnx for this amazing library.
How we can enable/disable options of buttons in java and xml?

@TurKurT656
Copy link
Author

I've tried this:

val video = options.getChildAt(3)
video.isEnabled = false

@golovin47
Copy link
Contributor

Hello, @TurKurT656. You were on the right track, but instead of isEnabled, use clickable and longClickable like this:

menu.getChildAt(3).setClickable(false);
menu.getChildAt(3).setLongClickable(false);

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

No branches or pull requests

2 participants