IT. Expert System.

Android Reference

ActivityOptions


android.app

Class ActivityOptions

    • Constructor Detail

      • ActivityOptions

        public ActivityOptions(Bundle opts)
    • Method Detail

      • makeCustomAnimation

        public static ActivityOptions makeCustomAnimation(Context context,
                                          int enterResId,
                                          int exitResId)
        Create an ActivityOptions specifying a custom animation to run when the activity is displayed.
        Parameters:
        context - Who is defining this. This is the application that the animation resources will be loaded from.
        enterResId - A resource ID of the animation resource to use for the incoming activity. Use 0 for no animation.
        exitResId - A resource ID of the animation resource to use for the outgoing activity. Use 0 for no animation.
        Returns:
        Returns a new ActivityOptions object that you can use to supply these options as the options Bundle when starting an activity.
      • makeCustomAnimation

        public static ActivityOptions makeCustomAnimation(Context context,
                                          int enterResId,
                                          int exitResId,
                                          Handler handler,
                                          ActivityOptions.OnAnimationStartedListener listener)
        Create an ActivityOptions specifying a custom animation to run when the activity is displayed.
        Parameters:
        context - Who is defining this. This is the application that the animation resources will be loaded from.
        enterResId - A resource ID of the animation resource to use for the incoming activity. Use 0 for no animation.
        exitResId - A resource ID of the animation resource to use for the outgoing activity. Use 0 for no animation.
        handler - If listener is non-null this must be a valid Handler on which to dispatch the callback; otherwise it should be null.
        listener - Optional OnAnimationStartedListener to find out when the requested animation has started running. If for some reason the animation is not executed, the callback will happen immediately.
        Returns:
        Returns a new ActivityOptions object that you can use to supply these options as the options Bundle when starting an activity.
      • makeScaleUpAnimation

        public static ActivityOptions makeScaleUpAnimation(View source,
                                           int startX,
                                           int startY,
                                           int startWidth,
                                           int startHeight)
        Create an ActivityOptions specifying an animation where the new activity is scaled from a small originating area of the screen to its final full representation.

        If the Intent this is being used with has not set its Intent.setSourceBounds, those bounds will be filled in for you based on the initial bounds passed in here.

        Parameters:
        source - The View that the new activity is animating from. This defines the coordinate space for startX and startY.
        startX - The x starting location of the new activity, relative to source.
        startY - The y starting location of the activity, relative to source.
        startWidth - The initial width of the new activity.
        startHeight - The initial height of the new activity.
        Returns:
        Returns a new ActivityOptions object that you can use to supply these options as the options Bundle when starting an activity.
      • makeThumbnailScaleUpAnimation

        public static ActivityOptions makeThumbnailScaleUpAnimation(View source,
                                                    Bitmap thumbnail,
                                                    int startX,
                                                    int startY)
        Create an ActivityOptions specifying an animation where a thumbnail is scaled from a given position to the new activity window that is being started.

        If the Intent this is being used with has not set its Intent.setSourceBounds, those bounds will be filled in for you based on the initial thumbnail location and size provided here.

        Parameters:
        source - The View that this thumbnail is animating from. This defines the coordinate space for startX and startY.
        thumbnail - The bitmap that will be shown as the initial thumbnail of the animation.
        startX - The x starting location of the bitmap, relative to source.
        startY - The y starting location of the bitmap, relative to source.
        Returns:
        Returns a new ActivityOptions object that you can use to supply these options as the options Bundle when starting an activity.
      • makeThumbnailScaleUpAnimation

        public static ActivityOptions makeThumbnailScaleUpAnimation(View source,
                                                    Bitmap thumbnail,
                                                    int startX,
                                                    int startY,
                                                    ActivityOptions.OnAnimationStartedListener listener)
        Create an ActivityOptions specifying an animation where a thumbnail is scaled from a given position to the new activity window that is being started.
        Parameters:
        source - The View that this thumbnail is animating from. This defines the coordinate space for startX and startY.
        thumbnail - The bitmap that will be shown as the initial thumbnail of the animation.
        startX - The x starting location of the bitmap, relative to source.
        startY - The y starting location of the bitmap, relative to source.
        listener - Optional OnAnimationStartedListener to find out when the requested animation has started running. If for some reason the animation is not executed, the callback will happen immediately.
        Returns:
        Returns a new ActivityOptions object that you can use to supply these options as the options Bundle when starting an activity.
      • makeThumbnailScaleDownAnimation

        public static ActivityOptions makeThumbnailScaleDownAnimation(View source,
                                                      Bitmap thumbnail,
                                                      int startX,
                                                      int startY,
                                                      ActivityOptions.OnAnimationStartedListener listener)
        Create an ActivityOptions specifying an animation where an activity window is scaled from a given position to a thumbnail at a specified location.
        Parameters:
        source - The View that this thumbnail is animating to. This defines the coordinate space for startX and startY.
        thumbnail - The bitmap that will be shown as the final thumbnail of the animation.
        startX - The x end location of the bitmap, relative to source.
        startY - The y end location of the bitmap, relative to source.
        listener - Optional OnAnimationStartedListener to find out when the requested animation has started running. If for some reason the animation is not executed, the callback will happen immediately.
        Returns:
        Returns a new ActivityOptions object that you can use to supply these options as the options Bundle when starting an activity.
      • getPackageName

        public String getPackageName()
      • getAnimationType

        public int getAnimationType()
      • getCustomEnterResId

        public int getCustomEnterResId()
      • getCustomExitResId

        public int getCustomExitResId()
      • getThumbnail

        public Bitmap getThumbnail()
      • getStartX

        public int getStartX()
      • getStartY

        public int getStartY()
      • getStartWidth

        public int getStartWidth()
      • getStartHeight

        public int getStartHeight()
      • getOnAnimationStartListener

        public IRemoteCallback getOnAnimationStartListener()
      • abort

        public void abort()
      • abort

        public static void abort(Bundle options)
      • update

        public void update(ActivityOptions otherOptions)
        Update the current values in this ActivityOptions from those supplied in otherOptions. Any values defined in otherOptions replace those in the base options.
      • toBundle

        public Bundle toBundle()
        Returns the created options as a Bundle, which can be passed to Context.startActivity(Intent, Bundle) and related methods. Note that the returned Bundle is still owned by the ActivityOptions object; you must not modify it, but can supply it to the startActivity methods that take an options Bundle.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 524 / . Delta: 0.00847 с