1. Check out our companion app, Forums for Android! Download from Google Play

How to scroll an image in an app??

Discussion in 'Application Development' started by taylormah, Sep 13, 2010.

  1. taylormah

    taylormah Well-Known Member
    Thread Starter
    43

    Jul 21, 2010
    201
    29
    43
    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
    163

    Jul 13, 2010
    1,934
    459
    163
    Male
    put the image view inside of a scrollView?
     
  3. lexchandra

    lexchandra Member
    5

    Sep 6, 2010
    9
    0
    5
    I think RelativeLayout is needed too...
     

Share This Page

Loading...