在自定义View时,经常会被各种top,bottom,x,rawX等绕晕,故将此记录下来,以备查看
相同的颜色表示一组
其中
Rect frame = new Rect();
((Activity)mContext).getWindow().getDecorView().getWindowVisibleDisplayFrame(frame);
int statusBarHeight = frame.top;
int contentTop = ((Activity)mContext).getWindow().findViewById(Window.ID_ANDROID_CONTENT).getTop();