views:

45

answers:

2

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)?

A: 

If you are using a textview look at the ellipsize property with the marquee option.

Dianoga
Sorry but i am using spinner, not textview.
DixieFlatline
+2  A: 

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.

Christopher