Does anyone know how i can draw programmatically in android something like this (without using opengl)?
Asked
Active
Viewed 646 times
0
-
Try this, It may help you http://stackoverflow.com/questions/22566091/android-draw-circle-pixel-by-pixel?rq=1 – harika Sep 29 '14 at 12:33
1 Answers
0
You can use shape drawables (circles and lines) to define elements and then combine them in one drawable with Layer List. All this can be defined in XML.

Peter Knego
- 79,991
- 11
- 123
- 154
-
There is no way to use xml, because i compute the radius of the circle inside java. What i have done so far is using a BitmapShader to repeat my lines. The problem is now, that the inner circle as this texture, too. So how can i make the inner circle transparent, so that my background image (google maps view) is visible again. – Robert Kornmesser Sep 12 '11 at 09:16