This is essentially a stupid question but in case anyone was wondering to achieve this you would need two different TextViews with a horizontal orientation so they are aligned (TextView1 TextView2). Then set the textColor to the colors you want and split the string adding split[0] to TextView1 and split[1] to TextView2. I used this with email addresses in a ListView using black and android:color/ darker_gray and it looks really good.
On Dec 3, 7:30 pm, droid_does <[email protected]> wrote: > I have noticed that in some android applications the email is > displayed in two colors. The username is black and the domain is gray > ([email protected]). Is there a way within android to use this > display style or if not what is the simplest way to achieve this > effect? > > Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

