android开发

专注于android开发

导航

2009年11月29日 #

如何取得一个 View 在屏幕中上的 Rect

摘要: /** * Get the boundary of a view in screen coordinates. * 类似 Windows SDK 中的 GetWindowRect + ClientToScreen * @param v * @param r The result. */private void getRectInScreen(View v, Rect r) { final int w = v.getWidth(); final int h = v.getHeight(); r.left = v.getLeft(); r.top = v.getTop(); r.right = . 阅读全文

posted @ 2009-11-29 11:36 android开发 阅读(1256) 评论(0) 推荐(0)

大连网站建设、大连做网站、大连网站建设、大连网站设计、大连做网站电话、大连做网站。