which in my opinion is a really dirt hack and I'd love to find a
better (real?) solution. I'm pretty sure I'm just drawing twice
between flushing the buffer, but I'm not sure how to debug it or
prevent it. Anyone run into something like this?
I have a text view that contains a custom view which in turn
contains an imageview and draws an image and a drop shadow. During
selection the bits of the view which are not fully opaque (the
shadow and the image) sometimes draw twice, producing a darker
shadow than I want. This seems to alternate with normal looking
drawing, so when I select text the shadow flickers between regular
and darker along with the other non-opaque bits in the image. My
method for drawing the shadow looks like this: