public static interface LayoutTransition.TransitionListener
android.animation.LayoutTransition.TransitionListener |
该接口用于监听转场的开始和结束事件。
Public methods |
|
---|---|
abstract void |
endTransition(LayoutTransition transition, ViewGroup container, View view, int transitionType) 当任何类型的过渡动画结束时,此事件将发送给侦听器。 |
abstract void |
startTransition(LayoutTransition transition, ViewGroup container, View view, int transitionType) 当任何类型的过渡动画开始时,此事件将发送给侦听器。 |
void endTransition (LayoutTransition transition, ViewGroup container, View view, int transitionType)
当任何类型的过渡动画结束时,此事件将发送给侦听器。
Parameters | |
---|---|
transition |
LayoutTransition : The LayoutTransition sending out the event. |
container |
ViewGroup : The ViewGroup on which the transition is playing. |
view |
View : The View object being affected by the transition animation. |
transitionType |
int : The type of transition that is ending, APPEARING , DISAPPEARING , CHANGE_APPEARING , or CHANGE_DISAPPEARING . |
void startTransition (LayoutTransition transition, ViewGroup container, View view, int transitionType)
当任何类型的过渡动画开始时,此事件将发送给侦听器。
Parameters | |
---|---|
transition |
LayoutTransition : The LayoutTransition sending out the event. |
container |
ViewGroup : The ViewGroup on which the transition is playing. |
view |
View : The View object being affected by the transition animation. |
transitionType |
int : The type of transition that is beginning, APPEARING , DISAPPEARING , CHANGE_APPEARING , or CHANGE_DISAPPEARING . |