06-16-2010 06:50 AM
Device simulator: BB Storm 9550
I have Grid1 (G1) with 4 custom btns, Grid2 (G2) with 3 custom btns in 2 different classes. (requirement)
Grid1 (placed above) -> btn1, btn2, btn3, btn4
Grid2 (placed below) -> btn1, btn2, btn3
Whenever I press any one of the custom btns in Grid1. I need to repaint the background of Grid2 with any one of its 4 corresponding PNG img files.
How to repaint Background of G2 if I press a btn in G1.
I have a listener of those custom btns implementing
Solved! Go to Solution.
06-18-2010 08:56 AM
You can call invalidate on Grid1 when one of your buttons is clicked on. This will cause Grid1 to trigger its paint method. The paint method should not be called directly.