I have an ImageView, and I have a ScaleAnimation.
ScaleAnimation scaleAnimation =
new ScaleAnimation(1.0f, 5f, 1.0f, 5f,
ScaleAnimation.RELATIVE_TO_SELF, 0.5f,
ScaleAnimation.RELATIVE_TO_SELF, 0.30f);
scaleAnimation.setDuration(9000);
ImageView lol = (ImageView) findViewById(R.id.imageView1);
lol.setImageResource(R.drawable.img1);
lol.setAnimation(scaleAnimation);
Works great and everything, but I would really like the user to be able to decide what part of the image gets zoomed in on. Is there any way to convert touch coordinates to a pivot value?
Thanks!