tags:

views:

20

answers:

1

Hi In canvas we have drawrect() method for drawing rectangle.but now i want to fill it with Image view.For this what can i do .Give me some suggestions.Thanks in advance.

+2  A: 

I guess its the fifth question related to the same topic from you today...

Drawable drawable = getResources().getDrawable(R.drawable.my_drawable);
drawable.setBounds(myRect);
drawable.draw(canvas);

Please! I gave you three times a link to a tutorial series where you can learn 2D drawing including collision detection from scratch, but you probably just read the first sentence... without reading you are not getting very far...

WarrenFaith