Animated sprite style ImageView

Discussion in 'Android Apps & Games' started by gostaf`, Aug 5, 2009.

  1. gostaf`

    gostaf` Member
    5

    Jul 10, 2009
    5
    0
    5
    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...