Code example for AnimationDrawable

Methods: stop

0
			holder.dotLocation.setVisibility(View.GONE); 
			if (animationDrawable.isRunning()) { 
				holder.dotLocation.post(new Runnable() { 
					@Override 
					public void run() { 
						animationDrawable.stop(); 
					} 
				}); 
			} 
		} 
	} 
 
	public void bindViewHolder(final View view) {
		final ViewHolder holder;
		holder = new ViewHolder();
		holder.itemMetroPoint = (ImageView) view.findViewById(R.id.itemMetroPoint);
		holder.itemIcon = (ImageView) view.findViewById(R.id.itemIcon);
		holder.itemTitle = (TextView) view.findViewById(R.id.itemTitle);
		holder.itemDistance = (TextView) view.findViewById(R.id.itemDistance);
		holder.dotLocation = (ImageView) view.findViewById(R.id.dotLocation);