Example usage for android.widget ImageView getAnimation

List of usage examples for android.widget ImageView getAnimation

Introduction

In this page you can find the example usage for android.widget ImageView getAnimation.

Prototype

public Animation getAnimation() 

Source Link

Document

Get the animation currently associated with this view.

Usage

From source file:free.yhc.netmbuddy.YTSearchFragment.java

protected void stopLoadingLookAndFeel() {
    View loadingv = mRootv.findViewById(R.id.loading);
    if (View.VISIBLE != loadingv.getVisibility())
        return;/*from w w w  .  j a  v  a2  s .  co m*/

    ImageView iv = (ImageView) loadingv.findViewById(R.id.loading_img);
    if (null != iv.getAnimation()) {
        iv.getAnimation().cancel();
        iv.setAnimation(null);
    }
    mRootv.findViewById(R.id.error_text).setVisibility(View.GONE);
    loadingv.setVisibility(View.GONE);
    mListv.setVisibility(View.VISIBLE);
}