transitionx / in.arunkumarsampath.transitionx.transition.set / DefaultTransitionSetBuilder

DefaultTransitionSetBuilder

class DefaultTransitionSetBuilder : TransitionSetBuilder<TransitionSet>

Base builder for building a TransitionSet

Constructors

<init>

DefaultTransitionSetBuilder()

Base builder for building a TransitionSet

Inherited Functions

auto

fun auto(autoBuilder: AutoTransitionBuilder.() -> Unit = {}): Unit

Adds an AutoTransition to this transition

changeClipBounds

fun changeClipBounds(changeClipBoundsBuilder: ChangeClipBoundsBuilder.() -> Unit = {}): Unit

Adds a ChangeClipBounds transition to this transition that animates changes to ChangeClipBounds

changeColor

fun changeColor(changeColorBuilder: ChangeColorBuilder.() -> Unit = {}): Unit

Adds ChangeColor transition to this transition.

changeImage

fun changeImage(changeImageBuilder: ChangeImageBuilder.() -> Unit = {}): Unit

Adds a ChangeImageTransform transition to this transtion that animates changes to ImageView's image matrix and ImageView.ScaleType

changeScroll

fun changeScroll(changeScrollBuilder: ChangeScrollBuilder.() -> Unit = {}): Unit

Adds ChangeScroll transition to this transition that animates changes to View's scroll properties

changeText

fun changeText(changeTextBuilder: ChangeTextBuilder.() -> Unit = {}): Unit

Adds ChangeText transition to this transition.

customTransition

fun <T : Transition> customTransition(transitionBuilder: TransitionBuilder<T>.() -> Unit = {}): Unit

Instantiates Transition of type T and adds to this transition. The T type must have a public no arg constructor for the instantiation to work.

fun <T : Transition> customTransition(transition: T, transitionBuilder: TransitionBuilder<T>.() -> Unit = {}): Unit

Alternative to customTransition that takes an already instantiated transition instance and allows additional configuration via the transitionBuilder block.

explode

fun explode(explodeBuilder: ExplodeBuilder.() -> Unit = {}): Unit

Adds an Explode transition to this transition that does explode transition when View's visibility changes as described by Visibility

fade

fun fade(fadeMode: Int = Fade.IN or Fade.OUT, fadeBuilder: FadeBuilder.() -> Unit = {}): Unit

Adds a Fade transition to this transition. Fade triggers on visibility changes.

fadeIn

fun fadeIn(fadeBuilder: FadeBuilder.() -> Unit = {}): Unit

Adds a Fade transition that triggers only when the views appear as per condition described by Visibility.isVisible

fadeOut

fun fadeOut(fadeBuilder: FadeBuilder.() -> Unit = {}): Unit

Adds a Fade transition that triggers only when the views disappear as per condition described by Visibility.isVisible

get

operator fun get(index: Int): Transition

Returns the Transition at index

moveResize

fun moveResize(changeBoundsBuilder: ChangeBoundsBuilder.() -> Unit = {}): Unit

Adds a ChangeBounds transition to this transition that animates when Views move or change their bounds.

scaleRotate

fun scaleRotate(scaleRotateBuilder: ScaleRotateBuilder.() -> Unit = {}): Unit

Adds a ChangeTransform to this transition. This transition animates View's scale or rotate properties change.

sequentially

fun sequentially(): Unit

Runs all Transitions contained in this TransitionSet sequentially

slide

fun slide(slideBuilder: SlideBuilder.() -> Unit = {}): Unit

Adds a Slide transition to this transition. Slide triggers on visibility changes.

together

fun together(): Unit

Runs all Transitions contained in this TransitionSet together

transitionSet

fun transitionSet(setBuilder: DefaultTransitionSetBuilder.() -> Unit = {}): Unit

Create another TransitionSet and add it to this transition set. The block setBuilder can contain code to configure the created TransitionSet

unaryMinus

operator fun Transition.unaryMinus(): Unit

Remove a transition from this transition set.

unaryPlus

operator fun Transition.unaryPlus(): Unit

Add a transition to this transition set.