https://kotlinlang.org logo
#compose
Title
# compose
c

Chethan

12/24/2020, 8:55 AM
How to set drawable left in android compose Text ?
r

rsktash

12/24/2020, 9:05 AM
You can draw Icon and Text in a Row
1
c

Chethan

12/24/2020, 9:06 AM
I have adopted this , I am looking for the one we have TextView , we can set drawable with drawable padding
r

rsktash

12/24/2020, 9:11 AM
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

Adam Powell

12/24/2020, 3:31 PM
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

Chethan

01/04/2021, 1:14 AM
@Adam Powell Thanks for confirming this
960 Views