I have a representation of an image that is contained in a relative layout. I am trying to get the screen y coordinates of the top of the image and the coordinates of the screen y at the bottom of the image. I tried this:
float yMin = (float)levelH.getTop(); float yMax = (float)levelH.getBottom();
float yMin seems almost correct. I translate another image (IM2) up and down this image (IM1). So I am trying to set a limit on how far (IM2) can be moved up and down. So I was thinking about getting y top and bottom (IM1), I can set them as max and min.
Does anyone know how to do this?
ps Im using Android accelerator to move (IM2)
source share