• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Animated sprite style ImageView

gostaf`

Lurker
Hi

I have an image which is a horizontal strip of animation frames.
This strip represents icons for different game states (each time a state change I would like to show the next frame).

To implement this, I thought I can use an ImageView object. This way I can use the scroll x value to switch the frames. However, this will not work because the ImageView controller shrinks the strip so it would fit into the view completely.

Is there a way to tell the view not to mess with the image scale and keep a fixed horizontal width (which will be set to the frame width)?

Thanks

Doron
 
Back
Top Bottom