https://kotlinlang.org logo
Title
j

jasu

02/14/2022, 1:08 PM
How can I put image inside the TextFiled in compose? Like shown in video
j

Jonas Frid

02/14/2022, 1:10 PM
trailingIcon
j

jasu

02/14/2022, 1:11 PM
that’s mostly for having icons, no? can we place image also?
j

Jonas Frid

02/14/2022, 1:17 PM
trailingIcon can contain any composable
I am not sure if there are. limitations though when it comes to size.
j

jasu

02/14/2022, 1:17 PM
cool lemme check…
👌 1
s

Siyamed

02/14/2022, 8:18 PM
If it is deletable by keyboard afaik there is not Text Field doesn't have inlime composabled yet and i don't think inlime composable will be able to fo that (Text has inline composable) Otherwise it looks like a TextField looking layout but the image and TF is actually in a Column
j

jasu

02/15/2022, 5:13 AM
okay but I’m not able to understand how it must have built. Image is dragable, focusable (clicking on it draws outline around it), it can be put between any two lines in edittext. how can we achieve it using compose @Siyamed
s

Siyamed

02/15/2022, 9:05 PM
I think we can't, if the intention is to have a docs like interface i dont know a way of doing it
🙌 1
cc @Ale Stamato
👌 1
j

jasu

02/17/2022, 11:34 AM
alright then