Most visited

Recently visited

Added in API level 19

AutoTransition

public class AutoTransition
extends TransitionSet

java.lang.Object
   ↳ android.transition.Transition
     ↳ android.transition.TransitionSet
       ↳ android.transition.AutoTransition


用于创建默认过渡的实用工具类,可在场景更改期间自动淡入淡出,移动视图并调整视图大小。

可以使用标签 autoTransition以及其他标准属性 Transition在资源文件中描述 Transition

Summary

Inherited XML attributes

From class android.transition.Transition

Inherited constants

From class android.transition.TransitionSet
From class android.transition.Transition

Public constructors

AutoTransition()

构造一个AutoTransition对象,它是一个TransitionSet,它首先淡出消失的目标,然后移动并调整现有目标的大小,最后淡入目标。

AutoTransition(Context context, AttributeSet attrs)

Inherited methods

From class android.transition.TransitionSet
From class android.transition.Transition
From class java.lang.Object

Public constructors

AutoTransition

Added in API level 19
AutoTransition ()

构造一个AutoTransition对象,它是一个TransitionSet,它首先淡出消失的目标,然后移动并调整现有目标的大小,最后淡入目标。

AutoTransition

Added in API level 21
AutoTransition (Context context, 
                AttributeSet attrs)

Parameters
context Context
attrs AttributeSet

Hooray!