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

Apps How to scroll an image in an app??

taylormah

Well-Known Member
Jul 21, 2010
201
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??
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones