Example usage for android.view.animation ScaleAnimation start

List of usage examples for android.view.animation ScaleAnimation start

Introduction

In this page you can find the example usage for android.view.animation ScaleAnimation start.

Prototype

public void start() 

Source Link

Document

Convenience method to start the animation the first time #getTransformation(long,Transformation) is invoked.

Usage

From source file:Main.java

public static void toBigAnim2(View view) {
    ScaleAnimation animation = new ScaleAnimation(0.0f, 1.0f, 0.0f, 1.0f, Animation.RELATIVE_TO_SELF, 0.5f,
            Animation.RELATIVE_TO_SELF, 0.0f);
    animation.setDuration(1000);/*from  w w  w  .  ja  va2s .  c  o  m*/
    animation.setFillAfter(false);
    view.setAnimation(animation);
    animation.start();
}

From source file:com.mindorks.framework.mvp.ui.main.MainActivity.java

@Override
public void reloadQuestionnaire(List<Question> questionList) {
    refreshQuestionnaire(questionList);/*w  w w.j  a va  2 s . co m*/
    ScaleAnimation animation = new ScaleAnimation(1.15f, 1, 1.15f, 1, Animation.RELATIVE_TO_SELF, 0.5f,
            Animation.RELATIVE_TO_SELF, 0.5f);

    mCardsContainerView.setAnimation(animation);
    animation.setDuration(100);
    animation.start();
}