5package org.qtproject.qt.android;
7import android.app.Activity;
8import android.content.Context;
9import android.content.res.Configuration;
15class QtRootLayout
extends QtLayout
23 protected void onSizeChanged(
int w,
int h,
int oldw,
int oldh)
25 Activity
activity = (Activity) getContext();
26 if (activity ==
null || (
w == oldw &&
h == oldh))
29 QtDisplayManager.handleLayoutSizeChanged(
w,
h);
33 public void onConfigurationChanged(Configuration configuration)
35 Activity
activity = (Activity) getContext();
41 QtNative.runAction(() -> {
42 QtDisplayManager.handleOrientationChange(activity);
static const QString context()
Q_CORE_EXPORT QtJniTypes::Activity activity()
GLfloat GLfloat GLfloat w
[0]
GLfloat GLfloat GLfloat GLfloat h