Force a View to redraw itself
<p>I have created a custom View (let's call it <code>MyView</code>) which basically just draws some text on itself using the canvas. The text to be drawn is set using a global variable.</p>

<p>At some point during the program's execution, I want to change the global variable, and have the <code>MyView</code> redraw itself to update the text. I tried <code>findViewById()</code> and then <code>invalidate()</code>, but this does nothing. I suspect that since nothing within the <code>MyView</code> has changed, it thinks it has no reason to call <code>onDraw()</code>. Is there any way to force a View to redraw itself even if it thinks it doesn't need to?</p>
