Re: [android-developers] Re: Strikethru Differennt Color Than Text

2011-11-21 Thread Raymond C. Rodgers
It's probably a font, not code. Most fonts have a strikethru character set and the operating system simply chooses it when indicated. I don't have an answer for this particular request other than the possibility of using a custom font, and then I'm not sure if it's possible to use it within

Re: [android-developers] Re: Strikethru Differennt Color Than Text

2011-11-20 Thread Kostya Vasilyev
You should be able to do it by subclassing ReplacementSpan: http://developer.android.com/reference/android/text/style/ReplacementSpan.html ... which lets you do the drawing yourself, rather than modifying a TextPaint. -- Kostya 20.11.2011 8:24, Jay пишет: I have actually already considered

Re: [android-developers] Re: Strikethru Differennt Color Than Text

2011-11-20 Thread Kristopher Micinski
And be sure to put the code somewhere public when you finish, it seems like you should be able to do this :-) kris On Sun, Nov 20, 2011 at 4:09 AM, Kostya Vasilyev kmans...@gmail.com wrote: You should be able to do it by subclassing ReplacementSpan:

[android-developers] Re: Strikethru Differennt Color Than Text

2011-11-19 Thread Zsolt Vasvari
Get the source code for the class that implements strikethru and modiify it to your liking. On Nov 20, 4:43 am, Jay johnabloodwor...@gmail.com wrote: Is it possible to to create a span of text in a textview in which the strikethru line is a different color than the text. I cannot find much

[android-developers] Re: Strikethru Differennt Color Than Text

2011-11-19 Thread Jay
I have actually already considered that. The StrikethruSpan class just sets the strikethru bit on the Paint that is passed through it; there does not seem to be a separate field for strikethru color. Unfortunately, I cannot find any documentation of the entry points that custom Spans have