开发者

Animation on top of MapField in Blackberry

开发者 https://www.devze.com 2023-03-25 20:58 出处:网络
I am using blackberry maps to write my Application and want to show current location of the user on the map using a Blue dot image. I am able to do it by overriding the paint() method of the MapField

I am using blackberry maps to write my Application and want to show current location of the user on the map using a Blue dot image. I am able to do it by overriding the paint() method of the MapField and place the image at the right place.

However now I want to pulsate开发者_开发百科(breathing bubble) the image, for that I am using a gif image with 3 different frames. Here i am not sure how to display all the 3 frames at certain frame rate so that I don't have to rely upon mapfield.paint() to draw my images. Initially I thought of using AnimatedGifField's thread for this, but not sure how to using it coz i can't add a field(AnimatedGifField) to a field(MapField). I am using JDE 6.0

Does anyone has any idea about it..?


I would probably just keep using the paint() method, but when you need to redraw the bubble, invalidate a region instead of invalidating the entire screen. This will allow you to continue using the paint method without needing to have the entire thing redraw itself.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号