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

manju reddy

05/20/2022, 4:57 PM
Hello All, I am looking at Textfields and I dont see a way to set Overflow for Text. Is there a way we set overflow with type ellipse.
a

Ale Stamato

05/20/2022, 5:08 PM
Overflow is not supported for TextField. Also textfield should be able to scroll horizontally on overflow. What is your usecase?
❤️ 1
m

manju reddy

05/20/2022, 6:59 PM
Basically when we have trailing Icons we need to show ellipse for long text
c

Chrimaeon

05/20/2022, 7:03 PM
For static text there is the
Text()
composable which has overflow handling
m

manju reddy

05/20/2022, 7:19 PM
hmm I see for Text(), but our usecase is for Edittext aka TextField
c

Chrimaeon

05/20/2022, 7:23 PM
No, that is not possible and from an UX perspective also not suitable. you are editing the text so it’s either multiline or scrolls while you are typing.
5
2 Views