码迷,mamicode.com
首页 > 其他好文 > 详细

View的getLeft, getRight, getTop, getBottom

时间:2014-05-25 18:51:01      阅读:244      评论:0      收藏:0      [点我收藏+]

标签:c   http   a   width   get   .net   

View的getLeft, getRight, getTop, getBottom方法得到的分别是相对于其父组件不同方向的距离

网上找了张图说明:

bubuko.com,布布扣

其中right和left的计算方法如下:

    right = left + width;

    bottom = top + height;

View的getLeft, getRight, getTop, getBottom,布布扣,bubuko.com

View的getLeft, getRight, getTop, getBottom

标签:c   http   a   width   get   .net   

原文地址:http://www.cnblogs.com/krislight1105/p/3750602.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!