Call OnDraw in another method, then "refresh" that call in ANOTHER method.

Posted by Aidan on Stack Overflow See other posts from Stack Overflow or by Aidan
Published on 2010-06-06T14:01:36Z Indexed on 2010/06/06 14:02 UTC
Read the original article Hit count: 193

Filed under:
|

Hey guys,

Hopefully this will actually make sense and sorry if its a stupid / obvious question. Basically I'm calling the onDraw method like so...

    requestWindowFeature(Window.FEATURE_NO_TITLE); 
    Preview mPreview = new Preview(this); 
    DrawOnTop mDraw = new DrawOnTop(this);  setContentView(mPreview); 
    addContentView(mDraw, new LayoutParams 
    (LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));

You see I'm drawing it on top of a Camera view and the information being drawn is subject to change. I have a listener setup which will update the variables being drawn at the appropriate time but I now want to "refresh" this draw in that listener. How would I do such a thing?

© Stack Overflow or respective owner

Related posts about java

Related posts about android