I have an ImageView with a bunch of Buttons underneath the image. I want to be able to zoom on a particular part of that ImageView depending on which of the buttons I press! I'm new to Android Development so any help on this will be very much appreciated.
Cheers!
ImageView
is a complete view, either you operate on it completely or do nothing on it. In my opinion what you can do is slice the images into 'n^2' parts and display them as a grid of nXn and when the user presses a button to increase the grid size then slice it into (n+1)^2 and then a grid of (n+1)*(n+1) and so on.
EDIT:
Lets have a root RelativeLayout and then we will have multiple imageviews in that something like below
<RelativeLayout
.....
.....>
<ImageView android:id="@+id/kitchen"
.....
.....
/>
<ImageView android:id="@+id/bedroom"
android:layout_toRightOf="@id/kitchen"
.....
.....
/>
.....
.....
</RelativeLayout>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.