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

Better use drawable selector #1

Closed
splundid opened this issue May 29, 2020 · 1 comment
Closed

Better use drawable selector #1

splundid opened this issue May 29, 2020 · 1 comment

Comments

@splundid
Copy link

private val enabledDrawable by lazy { ContextCompat.getDrawable(this, R.drawable.mult_select_bg_enabled) }
private val disabledDrawable by lazy { ContextCompat.getDrawable(this, R.drawable.mult_select_bg_disabled) }

It's probably better to use one selector drawable instead of multiple drawables with logic in code

@RustemMuzafarov
Copy link
Collaborator

Yeah, thanks, good idea. Will be done in 1.0.1

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