Android: Drawing a canvas to an ImageView?

If you have a xml with layout with all your elements arranged in vertical orienttion You can achieve what you want by making a class in your package which extends Class View and override its onDraw method. Draw circle in it as you want then instead of adding imageView in the layout add this your own view in the xml layout. Like the following LinearLayout TextView> MyView LinearLayout Check the following link for 2D graphics.

Its a great tutorial to read organicandroid.blogspot.com/2010/08/star... Hope this help : ).

If you have a xml with layout with all your elements arranged in vertical orienttion. You can achieve what you want by making a class in your package which extends Class View and override its onDraw method. Draw circle in it as you want .

Then instead of adding imageView in the layout add this your own view in the xml layout. Like the following Check the following link for 2D graphics. Its a great tutorial to read.

organicandroid.blogspot.com/2010/08/star... Hope this help : ).

There are a couple of ways to do what you want, but using an ImageView the way you describe isn't one of them. One possibility is to have the ImageView display an animated Drawable. You can then focus on having your Drawable implementation draw the circles.

Another is to create a new Bitmap every time you want the image to change and set the ImageView to display the new Bitmap. The usual way of doing this, though, is to create a custom View subclass. The API Demos sample project has an example of a custom view, and you can find lots tutorials with Google.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions