views:

38

answers:

1

I have a TextView I use to display email addresses to my users

                <TextView 
                    android:id="@+id/profile_email"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:padding="6dip"
                    android:textColor="#000000"
                    android:maxLines="1"
                    android:ellipsize="end" />

My issue is that many email addresses get cut off in the middle instead of having an ellipse at the end. Here is an example:

If my email address is

[email protected]

everything works fine. However, If my email address is

really.longfreakennameforanemailaddressandscreenisntwideenough@mydomain.com

the only thing that will display is

really.

Any ideas?

A: 

As a workaround you can use :

android:scrollHorizontally="true"
fedj
That will work just fine. Thanks.
Andrew