1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

Animated sprite style ImageView


Last Updated:

  1. gostaf`

    gostaf` Member This Topic's Starter

    Joined:
    Jul 10, 2009
    Messages:
    5
    Likes Received:
    0
    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
     

    Advertisement

Share This Page

Loading...