Join Slack
Powered by
I want to use an XML layout for a custom view insi...
# compose
r
Remon Shehata
06/02/2022, 7:10 PM
I want to use an XML layout for a custom view inside my compose view. the problem is the constructor my custom view takes
Context
and
AttributeSet
from Compose I can pass only the
Context
is there a way to pass the
AttributeSet
?
a
Adam Powell
06/02/2022, 8:21 PM
If you're inflating an xml layout you don't need to pass it explicitly, the LayoutInflater does it for you
🙏 1
👍 1
2
Views
Open in Slack
Previous
Next