Hello!
I have a spinner containing long lines. Is it possible to display the selected line truncated? That is, I select a long line from the list, and in a closed spinner, the selected line is displayed shortened.
Thank you in advance!
Hello!
I have a spinner containing long lines. Is it possible to display the selected line truncated? That is, I select a long line from the list, and in a closed spinner, the selected line is displayed shortened.
Thank you in advance!
Add the following lines to your spinner (a) markup:
android:ellipsize="end" android:maxLines="1" Description:
I hope you helped my decision!
Source: https://ru.stackoverflow.com/questions/394380/
All Articles
android:singleLine,android:maxLines,android:ellipsizeto help you. - Helisia