ViewGroup文档 http://developer.android.com/training/index.html 继承自ViewGroup需要重写onLayout方法用来为子View设定位置信息 必须重写当前控件的onLayout方法 abstract void onLayout(boolean changed, int l, int t, int r, int b) 问题:onLayout传入的l,t,r,b是什么?答:当前view需要在它的父view上呈现的坐标. ex:child.…