Break the needle off of that image and put it in it's own image.

Then use this function in *Canvas*:

final void *rotate*(float degrees, float px, float py)

Also, you will call *drawBitmap* in the Canvas class.

Of course, you will want to *save()* and *restore()* the matrices before 
and after the rotation.

Thanks.


On Wednesday, April 17, 2013 5:04:37 AM UTC-5, psyco wrote:
>
> hi all,
>
>
>
> <https://lh4.googleusercontent.com/-4D0DiiIo5fQ/UW5zlODBo5I/AAAAAAAAADU/wXMM1ppiHz4/s1600/thermometer_icon.png>am
>  
> trying to build a custom view witch displays a gauge, what i did is :
> 1-designed the gauge with photoshop
> 2-created the cutom View and it's .XML file 
> 3-set the bakcground gauge
> So, i need to know how to display a needle and how rotating it 
> some help will be very grateful
>
>

-- 
-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to