Example usage for Java android.view Window fields, constructors, methods, implement or subclass
The text is from its open source code.
int | FEATURE_OPTIONS_PANEL Flag for the "options panel" feature. |
int | FEATURE_NO_TITLE Flag for the "no title" feature, turning off the title at the top of the screen. |
int | FEATURE_PROGRESS Flag for the progress indicator feature. |
int | FEATURE_LEFT_ICON Flag for having an icon on the left side of the title bar |
int | FEATURE_RIGHT_ICON Flag for having an icon on the right side of the title bar |
int | FEATURE_INDETERMINATE_PROGRESS Flag for indeterminate progress. |
int | FEATURE_CONTEXT_MENU Flag for the context menu. |
int | FEATURE_CUSTOM_TITLE Flag for custom title. |
int | FEATURE_ACTION_BAR Flag for enabling the Action Bar. |
int | FEATURE_ACTION_BAR_OVERLAY Flag for requesting an Action Bar that overlays window content. |
int | FEATURE_ACTION_MODE_OVERLAY Flag for specifying the behavior of action modes when an Action Bar is not present. |
int | FEATURE_CONTENT_TRANSITIONS Flag for requesting that window content changes should be animated using a TransitionManager. |
int | FEATURE_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) . |
int | PROGRESS_VISIBILITY_ON Flag for setting the progress bar's visibility to VISIBLE. |
int | PROGRESS_VISIBILITY_OFF Flag for setting the progress bar's visibility to GONE. |
int | PROGRESS_INDETERMINATE_ON Flag for setting the progress bar's indeterminate mode on. |
int | PROGRESS_INDETERMINATE_OFF Flag for setting the progress bar's indeterminate mode off. |
int | PROGRESS_START Starting value for the (primary) progress. |
int | PROGRESS_END Ending value for the (primary) progress. |
int | PROGRESS_SECONDARY_START Lowest possible value for the secondary progress. |
int | PROGRESS_SECONDARY_END Highest possible value for the secondary progress. |
String | STATUS_BAR_BACKGROUND_TRANSITION_NAME The transitionName for the status bar background View when a custom background is used. |
String | NAVIGATION_BAR_BACKGROUND_TRANSITION_NAME The transitionName for the navigation bar background View when a custom background is used. |
int | ID_ANDROID_CONTENT The ID that the main layout in the XML layout file should have. |
void | addFlags(int flags) Convenience function to set the flag bits as specified in flags, as per #setFlags . |
void | clearFlags(int flags) Convenience function to clear the flag bits as specified in flags, as per #setFlags . |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
T | findViewById(@IdRes int id) Finds a view that was identified by the android:id XML attribute that was processed in android.app.Activity#onCreate . |
WindowManager.LayoutParams | getAttributes() Retrieve the current window attributes associated with this panel. |
Callback | getCallback() Return the current Callback interface for this window. |
Class> | getClass() Returns the runtime class of this Object . |
Context | getContext() Return the Context this window policy is running in, for retrieving resources and other information. |
View | getCurrentFocus() Return the view in this Window that currently has focus, or null if there are none. |
View | getDecorView() 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. |
Transition | getEnterTransition() Returns the transition used to move Views into the initial scene. |
int | getNavigationBarColor() |
int | getStatusBarColor() |
WindowManager | getWindowManager() Return the window manager allowing this Window to display its own windows. |
boolean | hasFeature(int feature) Query for the availability of a certain feature. |
void | makeActive() |
View | peekDecorView() Retrieve the current decor view, but only if it has already been created; otherwise returns null. |
boolean | requestFeature(int featureId) Enable extended screen features. |
void | setAllowReturnTransitionOverlap(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. |
void | setAttributes(WindowManager.LayoutParams a) Specify custom window attributes. |
void | setBackgroundDrawable(Drawable drawable) Change the background of this window to a custom Drawable. |
void | setBackgroundDrawableResource(@DrawableRes int resId) Change the background of this window to a Drawable resource. |
void | setCallback(Callback callback) Set the Callback interface for this window, used to intercept key events and other dynamic operations in the window. |
void | setContentView(@LayoutRes int layoutResID) Convenience for #setContentView(View,android.view.ViewGroup.LayoutParams) to set the screen content from a layout resource. |
void | setContentView(View view) Convenience for #setContentView(View,android.view.ViewGroup.LayoutParams) set the screen content to an explicit view. |
void | setEnterTransition(Transition transition) Sets the Transition that will be used to move Views into the initial scene. |
void | setExitTransition(Transition transition) Sets the Transition that will be used to move Views out of the scene when starting a new Activity. |
void | setFeatureInt(int featureId, int value) Set the integer value for a feature. |
void | setFlags(int flags, int mask) Set the flags of the window, as per the WindowManager.LayoutParams WindowManager.LayoutParams flags. |
void | setFormat(int format) Set the format of window, as per the PixelFormat types. |
void | setGravity(int gravity) Set the gravity of the window, as per the Gravity constants. |
void | setLayout(int width, int height) Set the width and height layout parameters of the window. |
void | setNavigationBarColor(@ColorInt int color) Sets the color of the navigation bar to color . |
void | setReenterTransition(Transition transition) Sets the Transition that will be used to move Views in to the scene when returning from a previously-started Activity. |
void | setSharedElementEnterTransition(Transition transition) Sets the Transition that will be used for shared elements transferred into the content Scene. |
void | setSharedElementExitTransition(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. |
void | setSharedElementReturnTransition(Transition transition) Sets the Transition that will be used for shared elements transferred back to a calling Activity. |
void | setSoftInputMode(int mode) Specify an explicit soft input mode to use for the window, as per WindowManager.LayoutParams#softInputMode WindowManager.LayoutParams.softInputMode . |
void | setStatusBarColor(@ColorInt int color) Sets the color of the status bar to color . |
void | setTitle(CharSequence title) |
void | setTitleColor(@ColorInt int textColor) |
void | setType(int type) Set the type of the window, as per the WindowManager.LayoutParams types. |
void | setUiOptions(int uiOptions) Set extra options that will influence the UI for this window. |
void | setWindowAnimations(@StyleRes int resId) Specify custom animations to use for the window, as per WindowManager.LayoutParams#windowAnimations WindowManager.LayoutParams.windowAnimations . |
boolean | superDispatchKeyEvent(KeyEvent event) Used by custom windows, such as Dialog, to pass the key press event further down the view hierarchy. |