2015年8月19日
摘要: onWindowFocusChanged重要作用 Activity生命周期中,onStart, onResume, onCreate都不是真正visible的时间点,真正的visible时间点是onWindowFocusChanged()函数被执行时。译注:从onWindowFocusChange... 阅读全文
posted @ 2015-08-19 09:51 豆芽的成长 阅读(241) 评论(0) 推荐(0) 编辑
摘要: int[] location = new int[2] ;view.getLocationInWindow(location); //获取在当前窗口内的绝对坐标view.getLocationOnScreen(location);//获取在整个屏幕内的绝对坐标location [0]--->x坐标,... 阅读全文
posted @ 2015-08-19 09:44 豆芽的成长 阅读(503) 评论(0) 推荐(0) 编辑