XML Attributes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
android:windowAllowEnterTransitionOverlap | setAllowEnterTransitionOverlap(boolean) | Flag indicating whether this Window's transition should overlap with the exiting transition of the calling Activity. | |||||||||
android:windowAllowReturnTransitionOverlap | setAllowReturnTransitionOverlap(boolean) | Flag indicating whether this Window's transition should overlap with the exiting transition of the called Activity when the called Activity finishes. | |||||||||
android:windowEnterTransition | setEnterTransition(Transition) | Reference to a Transition XML resource defining the desired Transition used to move Views into the initial Window's content Scene. | |||||||||
android:windowExitTransition | setExitTransition(Transition) | Reference to a Transition XML resource defining the desired Transition used to move Views out of the Window's content Scene when launching a new Activity. | |||||||||
android:windowReenterTransition | setReenterTransition(Transition) | Reference to a Transition XML resource defining the desired Transition used to move Views in to the scene when returning from a previously-started Activity. | |||||||||
android:windowReturnTransition | setReturnTransition(Transition) | Reference to a Transition XML resource defining the desired Transition used to move Views out of the scene when the Window is preparing to close. | |||||||||
android:windowSharedElementEnterTransition | setSharedElementEnterTransition(Transition) | Reference to a Transition XML resource defining the desired Transition used to move shared elements transferred into the Window's initial content Scene. | |||||||||
android:windowSharedElementExitTransition | setSharedElementExitTransition(Transition) | Reference to a Transition XML resource defining the desired Transition used when starting a new Activity to move shared elements prior to transferring to the called Activity. | |||||||||
android:windowSharedElementReenterTransition | setSharedElementReenterTransition(Transition) | Reference to a Transition XML resource defining the desired Transition used for shared elements transferred back to a calling Activity. | |||||||||
android:windowSharedElementReturnTransition | setSharedElementReturnTransition(Transition) | Reference to a Transition XML resource defining the desired Transition used to move shared elements transferred back to a calling Activity. | |||||||||
android:windowSharedElementsUseOverlay | setSharedElementsUseOverlay(boolean) | Indicates whether or not shared elements should use an overlay during transitions. | |||||||||
android:windowTransitionBackgroundFadeDuration | setTransitionBackgroundFadeDuration(long) | The duration, in milliseconds, of the window background fade duration when transitioning into or away from an Activity when called with an Activity Transition. |
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) . | |||||||||||
Returns how the transition set in setEnterTransition(android.transition.Transition) overlaps with the exit transition of the calling Activity. | |||||||||||
Returns how the transition set in setExitTransition(android.transition.Transition) overlaps with the exit transition of the called Activity when reentering after if finishes. | |||||||||||
Retrieve the current window attributes associated with this panel. | |||||||||||
Return the current Callback interface for this window. | |||||||||||
Return the container for this Window. | |||||||||||
Retrieve the Scene representing this window's current content. | |||||||||||
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. | |||||||||||
Returns the transition used to move Views into the initial scene. | |||||||||||
Returns the Transition that will be used to move Views out of the scene when starting a new Activity. | |||||||||||
Quick access to the LayoutInflater instance that this Window retrieved from its Context. | |||||||||||
Gets the MediaController that was previously set. | |||||||||||
Returns the Transition that will be used to move Views in to the scene when returning from a previously-started Activity. | |||||||||||
Returns he Transition that will be used to move Views out of the scene when the Window is preparing to close, for example after a call to finishAfterTransition() . | |||||||||||
Returns the Transition that will be used for shared elements transferred into the content Scene. | |||||||||||
Returns the Transition to use for shared elements in the launching Window prior to transferring to the launched Activity's Window. | |||||||||||
Returns the Transition that will be used for shared elements reentering from a started Activity after it has returned the shared element to it start location. | |||||||||||
Returns the Transition that will be used for shared elements transferred back to a calling Activity. | |||||||||||
Returns true when shared elements should use an Overlay during shared element transitions or false when they should animate as part of the normal View hierarchy. | |||||||||||
Returns the duration, in milliseconds, of the window background fade when transitioning into or away from an Activity when called with an Activity Transition. | |||||||||||
Retrieve the TransitionManager responsible for for default transitions in this window. | |||||||||||
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. | |||||||||||
Inject an event to window locally. | |||||||||||
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. | |||||||||||
Controls how the transition set in setEnterTransition(android.transition.Transition) overlaps with the exit transition of the calling Activity. | |||||||||||
Controls how the transition set in setExitTransition(android.transition.Transition) overlaps with the exit transition of the called Activity when reentering after if finishes. | |||||||||||
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) to set the screen content from a layout resource. | |||||||||||
Convenience for setContentView(View, android.view.ViewGroup.LayoutParams) set the screen content to an explicit view. | |||||||||||
Set the screen content to an explicit view. | |||||||||||
Set the amount of dim behind the window when using FLAG_DIM_BEHIND . | |||||||||||
Sets the Transition that will be used to move Views into the initial scene. | |||||||||||
Sets the Transition that will be used to move Views out of the scene when starting a new Activity. | |||||||||||
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 primary icon for this window. | |||||||||||
Set the width and height layout parameters of the window. | |||||||||||
Set focus locally. | |||||||||||
Set the logo for this window. | |||||||||||
Sets a MediaController to send media keys and volume changes to. | |||||||||||
Sets the color of the navigation bar to . | |||||||||||
Sets the Transition that will be used to move Views in to the scene when returning from a previously-started Activity. | |||||||||||
Sets the Transition that will be used to move Views out of the scene when the Window is preparing to close, for example after a call to finishAfterTransition() . | |||||||||||
Sets the Transition that will be used for shared elements transferred into the content Scene. | |||||||||||
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. | |||||||||||
Sets the Transition that will be used for shared elements reentering from a started Activity after it has returned the shared element to it start location. | |||||||||||
Sets the Transition that will be used for shared elements transferred back to a calling Activity. | |||||||||||
Sets whether or not shared elements should use an Overlay during shared element transitions. | |||||||||||
Specify an explicit soft input mode to use for the window, as per WindowManager.LayoutParams.softInputMode . | |||||||||||
Sets the color of the status bar to . | |||||||||||
Sets the duration, in milliseconds, of the window background fade when transitioning into or away from an Activity when called with an Activity Transition. | |||||||||||
Set the TransitionManager to use for default transitions in this window. | |||||||||||
Set the type of the window, as per the WindowManager.LayoutParams types. | |||||||||||
Set extra options that will influence the UI for this window. | |||||||||||
Set extra options that will influence the UI for this window. | |||||||||||
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 generic motion event further down the view hierarchy. | |||||||||||
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. | |||||||||||
联系客服