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

Components should support setEnabled #82

Closed
emilsjolander opened this issue Apr 12, 2017 · 2 comments
Closed

Components should support setEnabled #82

emilsjolander opened this issue Apr 12, 2017 · 2 comments

Comments

@emilsjolander
Copy link
Contributor

We need a way to specify the enabled selector state of a component so that background and foreground drawables can adopt the correct state. This would most likely be another method on the ComponentLayout.Builder interface. It would also have to be transfers to the drawables on the component.

Code pointers

https://github.com/facebook/litho/blob/master/litho-core/src/main/java/com/facebook/litho/ComponentLayout.java

Point of contact: @muraziz

@mmm111mmm
Copy link

There are more states here https://developer.android.com/reference/android/graphics/drawable/StateListDrawable.html for the same reason that should be added, I'd say.

I'd also like to set clickable. I have to set a view as such when I want to detect a fling.

@colriot
Copy link
Contributor

colriot commented Jun 4, 2019

Both enabled and clickable are already added as CommonProps.
Closing

@colriot colriot closed this as completed Jun 4, 2019
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

3 participants