List of usage examples for android.widget ImageView getAnimation
public Animation getAnimation()
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); }