I could probably figure this out on my own eventually, but there are
so many classes involved, I am just going to ask first:

What I want to do is have an EditText (or TextView) where I want to do
a text replacement for display purposes only.

For example, let's say that the actual text is:

"Text1 $ Text2"

But I would like to display it as:

"Text1 DollarSign Text2"

In effect, replacing a portion of the original text with another, but
maintaining the original text internally.

I know about the TransformationMethod interface, but it only allows a
1 char-to-1 char replacement.

My hunch is to use Spans somehow, but I am not exactly sure.

Any ideas?

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

Reply via email to