Window

Class of android.view · Window.java · Android's reference

public class Window

An activity's window: a decor view with the content in it, and the window's attributes. Android's PhoneWindow: no title or action bar, no system bars. The window manager shows the decor as one host window.

Nested types

Page 1 2 3

Fields

public static final int FEATURE_OPTIONS_PANEL = 0 source
public static final int FEATURE_NO_TITLE = 1 source
public static final int FEATURE_PROGRESS = 2 source
public static final int FEATURE_LEFT_ICON = 3 source
public static final int FEATURE_RIGHT_ICON = 4 source
public static final int FEATURE_INDETERMINATE_PROGRESS = 5 source
public static final int FEATURE_CONTEXT_MENU = 6 source
public static final int FEATURE_CUSTOM_TITLE = 7 source
public static final int FEATURE_ACTION_BAR = 8 source
public static final int FEATURE_ACTION_BAR_OVERLAY = 9 source
public static final int FEATURE_ACTION_MODE_OVERLAY = 10 source
public static final int FEATURE_SWIPE_TO_DISMISS = 11 source
public static final int FEATURE_CONTENT_TRANSITIONS = 12 source
public static final int FEATURE_ACTIVITY_TRANSITIONS = 13 source
public static final int ID_ANDROID_CONTENT = 0x01020002 source
public static final int DECOR_CAPTION_SHADE_AUTO = 0 source

Constructors

public Window(Context context) source

Methods

public boolean isWideColorGamut() source
public final Context getContext() source
public void setCallback(Callback callback) source
public final Callback getCallback() source
public View getDecorView() source
public View peekDecorView() source
public <T extends View> T findViewById(int id) source
public final <T extends View> T requireViewById(int id) source
public void setContentView(int layoutResID) source
public void setContentView(View view) source
public void setContentView(View view, ViewGroup.LayoutParams params) source
public void addContentView(View view, ViewGroup.LayoutParams params) source
public View getCurrentFocus() source
public LayoutInflater getLayoutInflater() source
public boolean superDispatchTouchEvent(MotionEvent event) source
public boolean superDispatchKeyEvent(KeyEvent event) source
public boolean superDispatchKeyShortcutEvent(KeyEvent event) source
public boolean superDispatchGenericMotionEvent(MotionEvent event) source
public boolean superDispatchTrackballEvent(MotionEvent event) source
public void injectInputEvent(InputEvent event) empty body source
public void setWindowManager(WindowManager wm, android.os.IBinder appToken, String appName) source
public void setWindowManager(WindowManager wm, android.os.IBinder appToken, String appName, boolean hardwareAccelerated) source
public WindowManager getWindowManager() source

Page 1 2 3


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.