I really need help.
How can I draw such animation like the one shown in the image?
The ring should be transformed into a solid circle.
I see you comment, you don't need to know the color of background, just draw a ring with canvas.drawArc rather than drawCircle
Related
I am trying to draw something like this http://www.laviny.sk/themes/hzs/images/pocasie/r/r2.png using android XML shape. It is one big triangle (45° on bottom) and one smaller triangle on top of it. I am planing on using it on image like this http://www.laviny.sk/themes/hzs/images/pocasie/r/r0.png. I know that I could use simple png image of this but I want to set its color programatically so thats why I am trying to use android shape.
Is this too complex to be drawn by shape? If not can you please try to guide me a bit because I really dont know how should I approach this problem.
Thanks in forward
Layer-list should be able to do that. The other way is to extend ImageView and draw what you like on a canvas within the onDraw method.
I Have extended View class and override draw method. In draw method I draw rectangle using canvas. but this rectangle is simple I need to show as blow. how can I draw rectangle like shown in below image?
create a Path for the top side using 4 points (moveTo and lineTo) and then draw it with Canvas.drawPath. Do the same for the right side
Here is the link for the HoloGraphLibrary. Just check it.
It has no 3d effect as you want but it has Same ui as you want. You will have to play little to have effect like 3d rectangle.
Try a look and let me know if it do not help you.
Enjoy Coding and All The Best. :)
I drew some colorful balls using OvalShape and RadialGradient. Here are the result:
All balls are good, except that the black ones look like flat. How to draw a shining black ball in Android? Thanks in advance.
The other ones look really good.
For the black balls, use dark grey instead of black. With the gradient in place it will look correct.
I drawing a lines from point to point with gradient. To everything looks nice I using rounded caps between them. Problem is that caps are only in one colour. There is possibility to paint them separately or force drawing to do it right?
Or maybe just draw a dot between them?
I found solution.
Like I write before I just gonna draw my own Points between the lines and put there whatever colour I need.
You should use the GradientDrawable with the LINE shape,
Documentation: http://developer.android.com/reference/android/graphics/drawable/GradientDrawable.html
How can i draw circle in which circle will fill with different color slowly & one bell ring when circle is completely fill.
Try to use methods provided by timer class. Use timer.schedule() and there are many more. Explore and use them.