草庐IT

getGlobalVisibleRect

全部标签

java - getGlobalVisibleRect() 究竟是什么?

您好,我一直在查看用于缩放View的开发人员代码,但我似乎无法弄清楚这段代码应该做什么:finalImageViewexpandedImageView=(ImageView)findViewById(R.id.expanded_image);expandedImageView.setImageResource(imageResId);//Calculatethestartingandendingboundsforthezoomed-inimage.//Thisstepinvolveslotsofmath.Yay,math.finalRectstartBounds=newRect();f