开发者

Android: What part of Image is visible in ImageView

Ok, I know there must be a simple solution to this, but maybe I am just overtired because I'm just not finding it.

I have an imageview with am image that is larger than its physical size, I have implimented that the user can scroll around the image just fine, but I am having a devil of a time finding out what part of the image is actually being displayed.

IE what is the X,Y coordinate in the image that is currently at 0,0 in the visible space.

I know this has to be mind numbingly s开发者_高级运维imple, but I am just not finding the right method or variable to reference for this.

Thanks in advance.


In your ScrollViews, you can get the scrollX and scrollY. You should be able to use that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜