Code example for ImageView.ScaleType

Methods: name

0
	private void startLoadImageAniThread(final ImageView imageView) {  
		Thread thread = new Thread(new Runnable() {
 
			public void run() { 
				try { 
					Log.i("Scale Type", imageView.getScaleType().name());
					//					imageView.setScaleType(ScaleType.CENTER); 
					//					imageView.setBackgroundResource(R.drawable.load_animation); 
					AnimationDrawable animation = (AnimationDrawable)imageView.getBackground();
					animation.start();
 
					//aniHandler.sendEmptyMessageDelayed(0, 50); 
				} catch (Exception e) {
					Log.w("loading_img", e);
				} 
			} 
		}); 
		thread.start();
	} 
	/** 
	 * Returns true if the current download has been canceled or if there was no download in