Re: [android-developers] Re: Progress circle (NOT indeterminate!)

2011-12-27 Thread James Black
Here is the image: http://developer.android.com/resources/samples/ApiDemos/res/drawable-mdpi/progress_circular_background.html You can look in the demos directory to see how it was referenced/used. On Tue, Dec 27, 2011 at 9:35 PM, richie rich wrote: > none, i assumed given Romain's reply that

Re: [android-developers] Re: Progress circle (NOT indeterminate!)

2011-12-27 Thread richie rich
none, i assumed given Romain's reply that @android means it's provided by the SDK. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, se

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-12-27 Thread richie rich
Does anyone have a simple example of this that works? I wrote my own using onDraw, and trying to leverage some of these techniques, but all I ever get is an indeterminate progress bar, unless I use the horiztonal style. thanks, rich -- You received this message because you are subscribed to t

Re: [android-developers] Re: Progress circle (NOT indeterminate!)

2011-12-27 Thread James Black
What filename do you have in res/drawable that is similar to this? progress_circular_background On Tue, Dec 27, 2011 at 9:18 PM, richie rich wrote: > any chance for specifics in this android soup. > > i tried this and get the following errors: > > 1)No resource found that matches given name at:

Re: [android-developers] Re: Progress circle (NOT indeterminate!)

2011-12-27 Thread richie rich
any chance for specifics in this android soup. i tried this and get the following errors: 1)No resource found that matches given name at: @android:drawable/progress_circular_background 2) "rotate" element is not allow here I find specific details, especially when the Android SDK has a million

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-17 Thread Serdel
Ok I have decided to go with the arc drawing approach, so I have extended the Progress bar class with my own. So if anyone thinks about doing the same, here is my onDraw() method protected synchronized void onDraw(Canvas canvas) { int progress = this.getProgress();

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-15 Thread Serdel
Thanks guys, I have tested all this and almost achieved what I want. I have change the code form Romain Guy a little bit so now I have: And this is almost what I want. I would like to change the eliminate the gradient factor so the circle that is 'unfolding'

Re: [android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-14 Thread Dianne Hackborn
Just set this as the drawable in a ProgressBar widget and control it with that. On Sat, May 14, 2011 at 5:43 AM, Serdel wrote: > That in deed is a nice approach. I wasn't aware that android has such > a drawable. To abd this is more a 'ring' shape than a filled circle, > but I guess a ring is als

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-14 Thread Serdel
That in deed is a nice approach. I wasn't aware that android has such a drawable. To abd this is more a 'ring' shape than a filled circle, but I guess a ring is also acceptable. But can you give me a hint how to control the 'progress' in the java code? So that I can i.e. increase it fluently in a t

Re: [android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Brill Pappin
Ahh, thats a nice clean solution :) I'd go for Romain's solution as it'll be easier to maintain than a series of 9patch files. - Brill -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developer

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Brill Pappin
Do you really need so much accuracy that you need to draw every point on your "progress circle"? Likely you don't unless you have something very specific for it to do. If thats the case, simply use a series 9patch png files and create a level drawable. You can use as many levels as you need. -

Re: [android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Romain Guy
You don't need to do all this. All you need is a drawable that supports levels. Android even provides a circle drawable that gets filled when you change the progress. Here's an example: http://schemas.android.com/apk/res/android";>

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Nicholas Johnson
Here's what you can do: Extend the AbsSeekBar class, and implement the onDraw method to your liking. You can capture the height and width of your custom view by capturing those values in the onSizeChanged method. By drawing

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Serdel
I want a progress circle 'bar' , because this is how it must be displayed in the graphic layout. I think I can do this with implementing the onDraw method and drawing the circle. Another problem which I see here is that the circle is quite strictly fit to the graphics around it (fitting correctly o

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Nicholas Johnson
Are you set on a progress "circle". If not, you should really consider using a ProgressBar. It not only does everything you're wanting to do, but it gives users a consistent experience from your app to every other app out there. Nick -- You received this message because you are subscribed to

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Serdel
Hmm actually I didn't though about using canvas and arcs - seems like a good idea. I was thinking about using image animations but was worried about the performance - for a fluent flow I would need 4 steps per second and I assume 15s so the animation would need 60 images. And I remember I had memor

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Nicholas Johnson
But, if you're looking to make a wheel progress bar instead of a horizontal progress bar, then you'll have to make a custom view. It's actually not too hard, and can be easily done by extending the progress bar class, and handling the onDraw methods. My suggestion would be to first draw a circle

[android-developers] Re: Progress circle (NOT indeterminate!)

2011-05-13 Thread Nicholas Johnson
Use a determinate progress bar as documented here . Or, if you're looking for a progress dialog (which has a progress bar in it), then use a progress dialog, as documented here