ViewGroup class abstract
ViewGroup
- Implemented types
- Implementers
Constructors
- ViewGroup({dynamic paint, dynamic zIndex})
Properties
Methods
-
addView(
dynamic view, {int index = -1}) → void - ========================管理子View相关方法=======================
-
attach(
Context context, ViewParent parent) → void -
changeChildToFront(
dynamic child) → void -
override
-
clearChildFocus(
dynamic child) → void -
override
-
clearChildren(
) → void -
detach(
) → void -
dispatchDraw(
Canvas canvas) → void -
drawChild(
dynamic child, Canvas canvas) → bool -
负责绘制单独的一个ChildView,同时负责Canvas的坐标的正确转换
如果在方法中调用了
invalidate
则返回true -
getChildAt(
int index) → dynamic -
getGlobalAreaBounds(
) → Rect -
override
-
hasChildView(
dynamic view) → bool -
measure(
double parentWidth, double parentHeight) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onLayout(
double left, double top, double right, double bottom) → void -
parentInvalidate(
) → void -
override
-
removeView(
dynamic view) → void -
requestLayout(
) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited