mynameisanthpny
mynameisanthpny

Reputation: 689

drawing on an android activity

I am trying to put a background image and draw on top of that screen. I assumed activity will have a on draw method, but it does not have. it seems i need to use surfaceview. Can I put a surfaceview on top of the image view and make it transparent ? any example/tutorial i can refer to ?

Upvotes: 1

Views: 2395

Answers (1)

Primal Pappachan
Primal Pappachan

Reputation: 26525

In order to draw, you need a canvas which holds the draw calls.

Check chapter 4 from Hallo Android by Ed Burnette for a tutorial on the same.

You could optionally draw your graphics or animations into a View object from your layout.

Read this for more details.

Upvotes: 1

Related Questions