src/zq/whu/zhangshangwuda/ui/news/TouchImageViewActivity.java
@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		getSupportActionBar().setHomeButtonEnabled(true);
		getSupportActionBar().setDisplayHomeAsUpEnabled(true);
		Intent intent = getIntent();
		String url = intent.getStringExtra("url");
		final TouchImageView img = new TouchImageView(this);
		setContentView(img);
		img.setMaxZoom(6f);
		MyApplication.getInstance().mImageLoader.loadImage(url,
				new ImageLoadingListener() {

					@Override
					public void onLoadingStarted(String imageUri, View view) {
						// TODO Auto-generated method stub

					}

					@Override
					public void onLoadingFailed(String imageUri, View view,
							FailReason failReason) {
						// TODO Auto-generated method stub

					}

					@Override
					public void onLoadingComplete(String imageUri, View view,
							Bitmap loadedImage) {
						// TODO Auto-generated method stub
						img.setImageBitmap(loadedImage);
					}

					@Override
					public void onLoadingCancelled(String imageUri, View view) {
						// TODO Auto-generated method stub

					}
				});
	}
/** Called when the activity is first created. */
Called when the activity is first created.
Called when the activity is first created .
@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		getSupportActionBar().setHomeButtonEnabled(true);
		getSupportActionBar().setDisplayHomeAsUpEnabled(true);
		Intent intent = getIntent();
		String url = intent.getStringExtra("url");
		final TouchImageView img = new TouchImageView(this);
		setContentView(img);
		img.setMaxZoom(6f);
		MyApplication.getInstance().mImageLoader.loadImage(url,
				new ImageLoadingListener() {
					@Override
					public void onLoadingStarted(String imageUri, View view) {
					}
					@Override
					public void onLoadingFailed(String imageUri, View view,
							FailReason failReason) {
					}
					@Override
					public void onLoadingComplete(String imageUri, View view,
							Bitmap loadedImage) {
						img.setImageBitmap(loadedImage);
					}
					@Override
					public void onLoadingCancelled(String imageUri, View view) {
					}
				});
	}
@ Override public void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; getSupportActionBar ( ) . setHomeButtonEnabled ( true ) ; getSupportActionBar ( ) . setDisplayHomeAsUpEnabled ( true ) ; Intent intent = getIntent ( ) ; String url = intent . getStringExtra ( "url" ) ; final TouchImageView img = new TouchImageView ( this ) ; setContentView ( img ) ; img . setMaxZoom ( 6f ) ; MyApplication . getInstance ( ) . mImageLoader . loadImage ( url , new ImageLoadingListener ( ) { @ Override public void onLoadingStarted ( String imageUri , View view ) { } @ Override public void onLoadingFailed ( String imageUri , View view , FailReason failReason ) { } @ Override public void onLoadingComplete ( String imageUri , View view , Bitmap loadedImage ) { img . setImageBitmap ( loadedImage ) ; } @ Override public void onLoadingCancelled ( String imageUri , View view ) { } } ) ; }
Called when the activity is first created.
Called when the activity is first created .
// TODO Auto-generated method stub // TODO Auto-generated method stub // TODO Auto-generated method stub // TODO Auto-generated method stub