View的getLeft, getRight, getTop, getBottom

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

网上找了张图说明:

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

    right = left + width;

    bottom = top + height;

posted @ 2014-05-24 23:24  Leo的银弹  阅读(286)  评论(0编辑  收藏  举报