I want to use an XML layout for a custom view insi...
# compose
r
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
If you're inflating an xml layout you don't need to pass it explicitly, the LayoutInflater does it for you
🙏 1
👍 1