(五十八)android坐标系统

一、首先明确一下 android 中的坐标系统 :

     屏幕的左上角是坐标系统原点(0,0)
     原点向右延伸是X轴正方向,原点向下延伸是Y轴正方向
    
二、View基础知识  view的参数信息
     
    width = right - left
    height = botton - top
    x = left + translationX
    y =  top+ transtationY
 
 
posted @ 2015-04-16 11:00  小菜美妞成长中  阅读(124)  评论(0编辑  收藏  举报