Abstract base class for a top-level window look and behavior policy. An instance of this class should be used as the top-level view added to the window manager. It provides standard UI policies such as a background, title area, default key processing, etc.
The only existing implementation of this abstract class is android.policy.PhoneWindow, which you should instantiate when needing a Window. Eventually that class will be refactored and a factory method added for creating Window instances without knowing about a particular implementation.
Summary
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Window.Callback | API from a Window back to its caller. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DEFAULT_FEATURES | The default features enabled | |||||||||
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_CONTEXT_MENU | Flag for the context menu. | |||||||||
int | FEATURE_CUSTOM_TITLE | Flag for custom title. | |||||||||
int | FEATURE_INDETERMINATE_PROGRESS | Flag for indeterminate progress | |||||||||
int | FEATURE_LEFT_ICON | Flag for having an icon on the left side of the title bar | |||||||||
int | FEATURE_NO_TITLE | Flag for the "no title" feature, turning off the title at the top of the screen. | |||||||||
int | FEATURE_OPTIONS_PANEL | Flag for the "options panel" feature. | |||||||||
int | FEATURE_PROGRESS | Flag for the progress indicator feature | |||||||||
int | FEATURE_RIGHT_ICON | Flag for having an icon on the right side of the title bar | |||||||||
int | ID_ANDROID_CONTENT | The ID that the main layout in the XML layout file should have. | |||||||||
int | PROGRESS_END | Ending value for the (primary) progress | |||||||||
int | PROGRESS_INDETERMINATE_OFF | Flag for setting the progress bar's indeterminate mode off | |||||||||
int | PROGRESS_INDETERMINATE_ON | Flag for setting the progress bar's indeterminate mode on | |||||||||
int | PROGRESS_SECONDARY_END | Highest possible value for the secondary progress | |||||||||
int | PROGRESS_SECONDARY_START | Lowest possible value for the secondary progress | |||||||||
int | PROGRESS_START | Starting value for the (primary) progress | |||||||||
int | PROGRESS_VISIBILITY_OFF | Flag for setting the progress bar's visibility to GONE | |||||||||
int | PROGRESS_VISIBILITY_ON | Flag for setting the progress bar's visibility to VISIBLE |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Variation on setContentView(View, android.view.ViewGroup.LayoutParams) to add an additional content view to the screen. | |||||||||||
Convenience function to set the flag bits as specified in flags, as per setFlags(int, int) . | |||||||||||
Convenience function to clear the flag bits as specified in flags, as per setFlags(int, int) . | |||||||||||
Finds a view that was identified by the id attribute from the XML that was processed in onCreate(Bundle) . | |||||||||||
Retrieve the current window attributes associated with this panel. | |||||||||||
Return the current Callback interface for this window. | |||||||||||
Return the container for this Window. | |||||||||||
Return the Context this window policy is running in, for retrieving resources and other information. | |||||||||||
Return the view in this Window that currently has focus, or null if there are none. | |||||||||||
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. | |||||||||||
Quick access to the LayoutInflater instance that this Window retrieved from its Context. | |||||||||||
Return the window manager allowing this Window to display its own windows. | |||||||||||
Return the Window attributes from this window's theme. | |||||||||||
Query for the availability of a certain feature. | |||||||||||
Return whether this window is being displayed with a floating style (based on the windowIsFloating attribute in the style/theme). | |||||||||||
Is a keypress one of the defined shortcut keys for this window. | |||||||||||
Should be called when the configuration is changed. | |||||||||||
Retrieve the current decor view, but only if it has already been created; otherwise returns null. | |||||||||||
Enable extended screen features. | |||||||||||
Specify custom window attributes. | |||||||||||
Change the background of this window to a custom Drawable. | |||||||||||
Change the background of this window to a Drawable resource. | |||||||||||
Set the Callback interface for this window, used to intercept key events and other dynamic operations in the window. | |||||||||||
Set the container for this window. | |||||||||||
Convenience for setContentView(View, android.view.ViewGroup.LayoutParams) set the screen content to an explicit view. | |||||||||||
Convenience for setContentView(View, android.view.ViewGroup.LayoutParams) to set the screen content from a layout resource. | |||||||||||
Set the screen content to an explicit view. | |||||||||||
Set an explicit Drawable value for feature of this window. | |||||||||||
Set a custom alpha value for the given drawale feature, controlling how much the background is visible through it. | |||||||||||
Set the value for a drawable feature of this window, from a resource identifier. | |||||||||||
Set the value for a drawable feature of this window, from a URI. | |||||||||||
Set the integer value for a feature. | |||||||||||
Set the flags of the window, as per the WindowManager.LayoutParams flags. | |||||||||||
Set the format of window, as per the PixelFormat types. | |||||||||||
Set the gravity of the window, as per the Gravity constants. | |||||||||||
Set the width and height layout parameters of the window. | |||||||||||
Specify an explicit soft input mode to use for the window, as per WindowManager.LayoutParams.softInputMode . | |||||||||||
Set the type of the window, as per the WindowManager.LayoutParams types. | |||||||||||
Specify custom animations to use for the window, as per WindowManager.LayoutParams.windowAnimations . | |||||||||||
Set the window manager for use by this Window to, for example, display panels. | |||||||||||
Set the window manager for use by this Window to, for example, display panels. | |||||||||||
Used by custom windows, such as Dialog, to pass the key press event further down the view hierarchy. | |||||||||||
Used by custom windows, such as Dialog, to pass the key shortcut press event further down the view hierarchy. | |||||||||||
Used by custom windows, such as Dialog, to pass the touch screen event further down the view hierarchy. | |||||||||||
Used by custom windows, such as Dialog, to pass the trackball event further down the view hierarchy. | |||||||||||
Take ownership of this window's InputQueue. | |||||||||||
Request that key events come to this activity. | |||||||||||
Take ownership of this window's surface. | |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the feature bits that are enabled. | |||||||||||
Return the window flags that have been explicitly set by the client, so will not be modified by getDecorView() . | |||||||||||
Return the feature bits that are being implemented by this Window. | |||||||||||
Has the app specified their own soft input mode? | |||||||||||
Set the default format of window, as per the PixelFormat types. |
[Expand] Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
No comments:
Post a Comment