How to set drawable left in android compose Text ?
c
How to set drawable left in android compose Text ?
r
You can draw Icon and Text in a Row
1
c
I have adopted this , I am looking for the one we have TextView , we can set drawable with drawable padding
r
In a input field there is leading and trailing composables which can be used for icons The same could be implemented for text by yourself
We should stop thinking in traditional way where for every situation there is a custom view Compose is dynamic
👌 3
a
Yes, TextView compound drawables is one specific API we did not want to repeat in compose 🙂 it was a great example of a view doing far too much beyond its core responsibility instead of encouraging composition of simpler elements
👍 4
c
@Adam Powell Thanks for confirming this
2239 Views