views:

104

answers:

1

if i add string in a TextView for example,

this is my string

and TextView max length is 4

It should look like in activity this... or t... that means string continue sign at the end of assigned string if string size is bigger than Max length.

Can any one guide me what should i do or i will have to manually add "..." at the end of string through programming.

Any help would be appreciated.

+5  A: 

Use the following for your TextViews:

android:ellipsize="end" 
android:singleLine="true"
Pentium10
as Default itself, android:SingleLine="true" right.?
Praveen Chandrasekaran
For TextViews singleLine is not true by default.
Pentium10
yes it works. thanks a lot. i was wrong.
Praveen Chandrasekaran