Java android.view Window fields, constructors, methods, implement or subclass

Example usage for Java android.view Window fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view Window.

The text is from its open source code.

Subclass

android.view.Window has subclasses.
Click this link to see all its subclasses.

Field

intFEATURE_OPTIONS_PANEL
Flag for the "options panel" feature.
intFEATURE_NO_TITLE
Flag for the "no title" feature, turning off the title at the top of the screen.
intFEATURE_PROGRESS
Flag for the progress indicator feature.
intFEATURE_LEFT_ICON
Flag for having an icon on the left side of the title bar
intFEATURE_RIGHT_ICON
Flag for having an icon on the right side of the title bar
intFEATURE_INDETERMINATE_PROGRESS
Flag for indeterminate progress.
intFEATURE_CONTEXT_MENU
Flag for the context menu.
intFEATURE_CUSTOM_TITLE
Flag for custom title.
intFEATURE_ACTION_BAR
Flag for enabling the Action Bar.
intFEATURE_ACTION_BAR_OVERLAY
Flag for requesting an Action Bar that overlays window content.
intFEATURE_ACTION_MODE_OVERLAY
Flag for specifying the behavior of action modes when an Action Bar is not present.
intFEATURE_CONTENT_TRANSITIONS
Flag for requesting that window content changes should be animated using a TransitionManager.
intFEATURE_ACTIVITY_TRANSITIONS
Enables Activities to run Activity Transitions either through sending or receiving ActivityOptions bundle created with android.app.ActivityOptions#makeSceneTransitionAnimation(android.app.Activity,android.util.Pair[]) or android.app.ActivityOptions#makeSceneTransitionAnimation(android.app.Activity,View,String) .
intPROGRESS_VISIBILITY_ON
Flag for setting the progress bar's visibility to VISIBLE.
intPROGRESS_VISIBILITY_OFF
Flag for setting the progress bar's visibility to GONE.
intPROGRESS_INDETERMINATE_ON
Flag for setting the progress bar's indeterminate mode on.
intPROGRESS_INDETERMINATE_OFF
Flag for setting the progress bar's indeterminate mode off.
intPROGRESS_START
Starting value for the (primary) progress.
intPROGRESS_END
Ending value for the (primary) progress.
intPROGRESS_SECONDARY_START
Lowest possible value for the secondary progress.
intPROGRESS_SECONDARY_END
Highest possible value for the secondary progress.
StringSTATUS_BAR_BACKGROUND_TRANSITION_NAME
The transitionName for the status bar background View when a custom background is used.
StringNAVIGATION_BAR_BACKGROUND_TRANSITION_NAME
The transitionName for the navigation bar background View when a custom background is used.
intID_ANDROID_CONTENT
The ID that the main layout in the XML layout file should have.

Method

voidaddFlags(int flags)
Convenience function to set the flag bits as specified in flags, as per #setFlags .
voidclearFlags(int flags)
Convenience function to clear the flag bits as specified in flags, as per #setFlags .
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
TfindViewById(@IdRes int id)
Finds a view that was identified by the android:id XML attribute that was processed in android.app.Activity#onCreate .
WindowManager.LayoutParamsgetAttributes()
Retrieve the current window attributes associated with this panel.
CallbackgetCallback()
Return the current Callback interface for this window.
ClassgetClass()
Returns the runtime class of this Object .
ContextgetContext()
Return the Context this window policy is running in, for retrieving resources and other information.
ViewgetCurrentFocus()
Return the view in this Window that currently has focus, or null if there are none.
ViewgetDecorView()
Retrieve the top-level window decor view (containing the standard window frame/decorations and the client's content inside of that), which can be added as a window to the window manager.
TransitiongetEnterTransition()
Returns the transition used to move Views into the initial scene.
intgetNavigationBarColor()
intgetStatusBarColor()
WindowManagergetWindowManager()
Return the window manager allowing this Window to display its own windows.
booleanhasFeature(int feature)
Query for the availability of a certain feature.
voidmakeActive()
ViewpeekDecorView()
Retrieve the current decor view, but only if it has already been created; otherwise returns null.
booleanrequestFeature(int featureId)
Enable extended screen features.
voidsetAllowReturnTransitionOverlap(boolean allow)
Controls how the transition set in #setExitTransition(android.transition.Transition) overlaps with the exit transition of the called Activity when reentering after if finishes.
voidsetAttributes(WindowManager.LayoutParams a)
Specify custom window attributes.
voidsetBackgroundDrawable(Drawable drawable)
Change the background of this window to a custom Drawable.
voidsetBackgroundDrawableResource(@DrawableRes int resId)
Change the background of this window to a Drawable resource.
voidsetCallback(Callback callback)
Set the Callback interface for this window, used to intercept key events and other dynamic operations in the window.
voidsetContentView(@LayoutRes int layoutResID)
Convenience for #setContentView(View,android.view.ViewGroup.LayoutParams) to set the screen content from a layout resource.
voidsetContentView(View view)
Convenience for #setContentView(View,android.view.ViewGroup.LayoutParams) set the screen content to an explicit view.
voidsetEnterTransition(Transition transition)
Sets the Transition that will be used to move Views into the initial scene.
voidsetExitTransition(Transition transition)
Sets the Transition that will be used to move Views out of the scene when starting a new Activity.
voidsetFeatureInt(int featureId, int value)
Set the integer value for a feature.
voidsetFlags(int flags, int mask)
Set the flags of the window, as per the WindowManager.LayoutParams WindowManager.LayoutParams flags.
voidsetFormat(int format)
Set the format of window, as per the PixelFormat types.
voidsetGravity(int gravity)
Set the gravity of the window, as per the Gravity constants.
voidsetLayout(int width, int height)
Set the width and height layout parameters of the window.
voidsetNavigationBarColor(@ColorInt int color)
Sets the color of the navigation bar to color .
voidsetReenterTransition(Transition transition)
Sets the Transition that will be used to move Views in to the scene when returning from a previously-started Activity.
voidsetSharedElementEnterTransition(Transition transition)
Sets the Transition that will be used for shared elements transferred into the content Scene.
voidsetSharedElementExitTransition(Transition transition)
Sets the Transition that will be used for shared elements after starting a new Activity before the shared elements are transferred to the called Activity.
voidsetSharedElementReturnTransition(Transition transition)
Sets the Transition that will be used for shared elements transferred back to a calling Activity.
voidsetSoftInputMode(int mode)
Specify an explicit soft input mode to use for the window, as per WindowManager.LayoutParams#softInputMode WindowManager.LayoutParams.softInputMode .
voidsetStatusBarColor(@ColorInt int color)
Sets the color of the status bar to color .
voidsetTitle(CharSequence title)
voidsetTitleColor(@ColorInt int textColor)
voidsetType(int type)
Set the type of the window, as per the WindowManager.LayoutParams types.
voidsetUiOptions(int uiOptions)
Set extra options that will influence the UI for this window.
voidsetWindowAnimations(@StyleRes int resId)
Specify custom animations to use for the window, as per WindowManager.LayoutParams#windowAnimations WindowManager.LayoutParams.windowAnimations .
booleansuperDispatchKeyEvent(KeyEvent event)
Used by custom windows, such as Dialog, to pass the key press event further down the view hierarchy.