tags:

views:

37

answers:

1

Hi.

I'm just starting to play around with the android SDK, and was trying to build a simple bubble wrap app, so I could understand how custom components work. I have my onMeasure(), onSizeChanged(), onDraw() methods which create the unpopped bubble bitmaps. I have a onTouchEvent() so I know which bubble number is being touched. After this I wanted to replace the unpopped bubble with a popped bubble image, and was wondering how I could go about doing that. If I understand it right, onDraw() is only called once initially right?

Thanks in advance!

A: 

Try override onDraw() and write a log message with Log.D(tag,message). Change the unpopped to popped image and call postInvalidate()

softarn