Hello!
In my current app, if the string is too long and doesn't fit into screen it gets cut. How to display rolling text for long strings in a spinner(i have seen that in some apps)?
Hello!
In my current app, if the string is too long and doesn't fit into screen it gets cut. How to display rolling text for long strings in a spinner(i have seen that in some apps)?
If you are using a textview look at the ellipsize property with the marquee option.
A Spinner extends AdapterView (like ListView does) which is backed by an Adapter class.
So much like you can customise each row in a ListView, you should be able to do the same for your Spinner by overriding a method like Adapter.getView().
There you could return a simple TextView with the ellipsize property.