Hi,
I'm having the same problem and I don't think I'm gonna be the last
one. I'll be trying to solve that problem later (not immediately).
So if someone could find a solution (including me :D ) please share it
with us and we will be very thankful.

Best Regards,

On 19 fév, 04:58, NoraBora <[email protected]> wrote:
> To use vertical progressbar, you have to make your own widget
> extending View, not ProgressBar.
>
> the source of ProgressBar widget may help.
>
> On Feb 16, 6:24 am, Jonathan <[email protected]> wrote:
>
>
>
> > HI, I am extending the normal android.widget.ProgressBar. I want to
> > make it vertical. This is my current onDraw Method
>
> >         @Override
> >         protected synchronized void onDraw(Canvas canvas) {
>
> >                 canvas.save();
> >                  canvas.rotate(90);
> >                 canvas.translate(0,-50);
> >                 super.onDraw(canvas);
> >                 canvas.restore();
> >         }
>
> > This rotates it fine, however I am having alot of sizing issues. It
> > seems as though I have to set the width and the height of the control
> > to be the same thing or else I run into alot of clipping issues.
> > Basically, I want to have a progress bar that, once rotated, is 50dip
> > wide and fills the screen vertically. Can anyone think of a way to do
> > this?
>
> > Also, it doesn't seem to be actually drawing the progress properly,
> > but I will revisit that once I get the clipping sorted out.
>
> > Thanks
>
> > Jon

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to