// Path: app/src/main/java/com/github/cchao/touchnews/util/ImageUtil.java
// public class ImageUtil {
// 
//     public static void displayImage(Context context, String url, ImageView imageView) {
//         Glide.with(context).load(url).into(imageView);
//     }
// 
//     public static void displayImage(Context context, File file, ImageView imageView) {
//         Glide.with(context).load(file).into(imageView);
//     }
// 
//     public static void displayCircularImage(final Context context, String url, final ImageView imageView) {
//         Glide.with(context).load(url).asBitmap().centerCrop().into(new BitmapImageViewTarget(imageView) {
//             @Override
//             protected void setResource(Bitmap resource) {
//                 RoundedBitmapDrawable circularBitmapDrawable =
//                     RoundedBitmapDrawableFactory.create(context.getResources(), resource);
//                 circularBitmapDrawable.setCircular(true);
//                 imageView.setImageDrawable(circularBitmapDrawable);
// 
//             }
//         });
//     }
// 
//         /*public static void displayBlurImage ( Context context, String url, ImageView imageView ) {
//                 Glide.with ( context ).load ( url )
//                         .bitmapTransform ( new BlurTransformation ( context ) )
//                         .into ( imageView );
//         }
//         public static void displayBlurImage ( Context context, String url, final View view ) {
//                 Glide.with ( context ).load ( url )
//                         .bitmapTransform ( new BlurTransformation ( context ) ).into ( new SimpleTarget< GlideDrawable > ( ) {
//                         @Override
//                         public void onResourceReady ( GlideDrawable resource, GlideAnimation< ? super GlideDrawable > glideAnimation ) {
//                                 view.setBackground ( resource );
//                         }
//                 } );
//         }*/
// 
// }


import android.view.MenuItem;
import android.widget.ImageView;
import com.github.cchao.touchnews.R;
import com.github.cchao.touchnews.util.ImageUtil;
package com.github.cchao.touchnews.ui.activity;



/**
 * Created by cchao on 2016/5/4.
 * E-mail:   cchao1024@163.com
 * Description: 图片浏览Aty
 */
public class ImageBrowseActivity extends BaseActivity {
    @Override
    protected int getLayoutID() {
        return R.layout.activity_image_browse;
    }

    @Override
    protected void initialize() {
        super.initialize();
        String url = getIntent().getStringExtra("url");
// Path: app/src/main/java/com/github/cchao/touchnews/util/ImageUtil.java
// public class ImageUtil {
// 
//     public static void displayImage(Context context, String url, ImageView imageView) {
//         Glide.with(context).load(url).into(imageView);
//     }
// 
//     public static void displayImage(Context context, File file, ImageView imageView) {
//         Glide.with(context).load(file).into(imageView);
//     }
// 
//     public static void displayCircularImage(final Context context, String url, final ImageView imageView) {
//         Glide.with(context).load(url).asBitmap().centerCrop().into(new BitmapImageViewTarget(imageView) {
//             @Override
//             protected void setResource(Bitmap resource) {
//                 RoundedBitmapDrawable circularBitmapDrawable =
//                     RoundedBitmapDrawableFactory.create(context.getResources(), resource);
//                 circularBitmapDrawable.setCircular(true);
//                 imageView.setImageDrawable(circularBitmapDrawable);
// 
//             }
//         });
//     }
// 
//         /*public static void displayBlurImage ( Context context, String url, ImageView imageView ) {
//                 Glide.with ( context ).load ( url )
//                         .bitmapTransform ( new BlurTransformation ( context ) )
//                         .into ( imageView );
//         }
//         public static void displayBlurImage ( Context context, String url, final View view ) {
//                 Glide.with ( context ).load ( url )
//                         .bitmapTransform ( new BlurTransformation ( context ) ).into ( new SimpleTarget< GlideDrawable > ( ) {
//                         @Override
//                         public void onResourceReady ( GlideDrawable resource, GlideAnimation< ? super GlideDrawable > glideAnimation ) {
//                                 view.setBackground ( resource );
//                         }
//                 } );
//         }*/
// 
// }


// Path: app/src/main/java/com/github/cchao/touchnews/ui/activity/ImageBrowseActivity.java
import android.view.MenuItem;
import android.widget.ImageView;
import com.github.cchao.touchnews.R;
import com.github.cchao.touchnews.util.ImageUtil;

package com.github.cchao.touchnews.ui.activity;



/**
 * Created by cchao on 2016/5/4.
 * E-mail:   cchao1024@163.com
 * Description: 图片浏览Aty
 */
public class ImageBrowseActivity extends BaseActivity {
    @Override
    protected int getLayoutID() {
        return R.layout.activity_image_browse;
    }

    @Override
    protected void initialize() {
        super.initialize();
        String url = getIntent().getStringExtra("url");
        ImageUtil.displayImage(this, url, (ImageView) findViewById(R.id.iv_browse));