◆ SingleViewFakeWindowViewGroup()
io.flutter.plugin.platform.SingleViewFakeWindowViewGroup.SingleViewFakeWindowViewGroup |
( |
Context |
context | ) |
|
|
inline |
◆ onLayout()
void io.flutter.plugin.platform.SingleViewFakeWindowViewGroup.onLayout |
( |
boolean |
changed, |
|
|
int |
l, |
|
|
int |
t, |
|
|
int |
r, |
|
|
int |
b |
|
) |
| |
|
inlineprotected |
Definition at line 36 of file SingleViewFakeWindowViewGroup.java.
36 {
37 for (
int i = 0;
i < getChildCount();
i++) {
38 View child = getChildAt(
i);
39 WindowManager.LayoutParams
params = (WindowManager.LayoutParams) child.getLayoutParams();
40 viewBounds.set(l, t, r,
b);
41 Gravity.apply(
43 child.getMeasuredWidth(),
44 child.getMeasuredHeight(),
45 viewBounds,
48 childRect);
49 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom);
50 }
51 }
const EmbeddedViewParams * params
◆ onMeasure()
void io.flutter.plugin.platform.SingleViewFakeWindowViewGroup.onMeasure |
( |
int |
widthMeasureSpec, |
|
|
int |
heightMeasureSpec |
|
) |
| |
|
inlineprotected |
Definition at line 54 of file SingleViewFakeWindowViewGroup.java.
54 {
55 for (
int i = 0;
i < getChildCount();
i++) {
56 View child = getChildAt(
i);
57 child.measure(atMost(widthMeasureSpec), atMost(heightMeasureSpec));
58 }
59 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
60 }
The documentation for this class was generated from the following file: