[android-developers] Re: AnimationDrawable on ItemizedOverlay

2012-06-12 Thread Josh Lentz
Felix: Can you post the code of how you got this to work. I am trying to make a custom AnimationDrawable to replace the the default on that MyLocationOverlay uses. I have made a subclass of MyLocationOverlay but it will only show the first image in the animation-list. I have tried a Runnable

[android-developers] Re: AnimationDrawable on ItemizedOverlay

2011-06-22 Thread Felix Garcia Lainez
Ok i have done animating myself using a handler and it works. Thanks! On 21 jun, 20:55, TreKing treking...@gmail.com wrote: On Tue, Jun 21, 2011 at 1:38 PM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: Yes i did, and just tested doing before and after adding ItemizedOverlay to the

[android-developers] Re: AnimationDrawable on ItemizedOverlay

2011-06-21 Thread Felix Garcia Lainez
But how do i do this if i haven't any imageview to show the animation? I have seen this on documentation, but for an overlay is slightly different... !-- Animation frames are wheel0.png -- wheel5.png files inside the res/drawable/ folder -- animation-list android:id=selected

Re: [android-developers] Re: AnimationDrawable on ItemizedOverlay

2011-06-21 Thread TreKing
On Tue, Jun 21, 2011 at 12:04 PM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: But how do i do this if i haven't any imageview to show the animation? Honestly, don't know, but I would assume http://developer.android.com/reference/android/content/res/Resources.html#getDrawable(int)

[android-developers] Re: AnimationDrawable on ItemizedOverlay

2011-06-21 Thread Felix Garcia Lainez
Just tested and doesn't work... It is shown only the 1st image of the animation list.. On 21 jun, 19:44, TreKing treking...@gmail.com wrote: On Tue, Jun 21, 2011 at 12:04 PM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: But how do i do this if i haven't any imageview to show the

Re: [android-developers] Re: AnimationDrawable on ItemizedOverlay

2011-06-21 Thread TreKing
On Tue, Jun 21, 2011 at 12:49 PM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: Just tested and doesn't work... It is shown only the 1st image of the animation list.. Did you call start() on the AnimationDrawable? (More assumptions)

[android-developers] Re: AnimationDrawable on ItemizedOverlay

2011-06-21 Thread Felix Garcia Lainez
Yes i did, and just tested doing before and after adding ItemizedOverlay to the map overlays array. On 21 jun, 20:19, TreKing treking...@gmail.com wrote: On Tue, Jun 21, 2011 at 12:49 PM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: Just tested and doesn't work... It is shown only the

Re: [android-developers] Re: AnimationDrawable on ItemizedOverlay

2011-06-21 Thread TreKing
On Tue, Jun 21, 2011 at 1:38 PM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: Yes i did, and just tested doing before and after adding ItemizedOverlay to the map overlays array. Well, I'm out of ideas. If you don't get an answer to make this work the way it should, perhaps make you own