Hi all,
i posted already in other forums but no answer I received, I hope that
here i will get an answer :)
Now I zoom the image into an ImageView with this class:
public class ExtImageView extends View {
private Drawable image;
public int zoomControler=125;
public Cl_ImageView(Context context, Drawable img) {
super(context);
image=img;
setFocusable(true);
}
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
image.setBounds((getWidth()/2)-zoomControler, (getHeight()/2)-
zoomControler,(getWidth()/2)+zoomControler, (getHeight()/
2)+zoomControler);
image.draw(canvas);
}
}
and through a SeekBar I can change the zoom level (editing
zoomControler var via an other function). But now I've got a problem:
how can i have the ImageView pannable( to add pan function to
ImageView)?
I tried to use some java code to enable pinch to zoom function but I
don't need pinch to zoom (zoom is already managed by my seekbar) but
only pan function.
Any advise?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en