How to scroll an image in an app??


Last Updated:

  1. taylormah

    taylormah Well-Known Member This Topic's Starter

    Joined:
    Jul 21, 2010
    Messages:
    201
    Likes Received:
    29
    First of all, I am totally noob in android development. I want to show an image in the middle of the screen in the activity, but not the full image, only a part of it. Then I want to have some buttons which can scroll the image in all directions. This is very very basic app, nothing fancy about it. Can you please tell if ImageView would be right choice for this scrolling image app??

    How do I show only part of the image at a time? Is there a way I could specify x and y coordinates of pixels on the image, and length and width of the rectangle of scrolling image box to accomplish my goal??
     

    Advertisement
  2. jonbonazza

    jonbonazza Well-Known Member

    Joined:
    Jul 13, 2010
    Messages:
    1,934
    Likes Received:
    458
    put the image view inside of a scrollView?
     
  3. lexchandra

    lexchandra Member

    Joined:
    Sep 6, 2010
    Messages:
    9
    Likes Received:
    0
    I think RelativeLayout is needed too...
     

Share This Page

Loading...