// Path: app/src/main/java/com/rance/chatui/enity/FullImageInfo.java
// public class FullImageInfo {
//     private int locationX;
//     private int locationY;
//     private int width;
//     private int height;
//     private String imageUrl;
// 
//     public int getLocationX() {
//         return locationX;
//     }
// 
//     public void setLocationX(int locationX) {
//         this.locationX = locationX;
//     }
// 
//     public int getLocationY() {
//         return locationY;
//     }
// 
//     public void setLocationY(int locationY) {
//         this.locationY = locationY;
//     }
// 
//     public int getWidth() {
//         return width;
//     }
// 
//     public void setWidth(int width) {
//         this.width = width;
//     }
// 
//     public int getHeight() {
//         return height;
//     }
// 
//     public void setHeight(int height) {
//         this.height = height;
//     }
// 
//     public String getImageUrl() {
//         return imageUrl;
//     }
// 
//     public void setImageUrl(String imageUrl) {
//         this.imageUrl = imageUrl;
//     }
// }


import android.animation.ObjectAnimator;
import android.annotation.TargetApi;
import android.app.Activity;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.ViewTreeObserver;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.DecelerateInterpolator;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.bumptech.glide.Glide;
import com.rance.chatui.R;
import com.rance.chatui.enity.FullImageInfo;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
package com.rance.chatui.ui.activity;





/**
 * 作者：Rance on 2016/12/15 15:56
 * 邮箱：rance935@163.com
 */
public class FullImageActivity extends Activity {

    ImageView fullImage;
    LinearLayout fullLay;
    private int mLeft;
    private int mTop;
    private float mScaleX;
    private float mScaleY;
    private Drawable mBackground;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_full_image);
        fullImage = (ImageView) findViewById(R.id.full_image);
        fullLay = (LinearLayout) findViewById(R.id.full_lay);

        fullImage.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onImageClick();
            }
        });

        EventBus.getDefault().register(this);
    }

    @TargetApi(Build.VERSION_CODES.JELLY_BEAN)
    @Subscribe(threadMode = ThreadMode.MAIN, sticky = true) //在ui线程执行
// Path: app/src/main/java/com/rance/chatui/enity/FullImageInfo.java
// public class FullImageInfo {
//     private int locationX;
//     private int locationY;
//     private int width;
//     private int height;
//     private String imageUrl;
// 
//     public int getLocationX() {
//         return locationX;
//     }
// 
//     public void setLocationX(int locationX) {
//         this.locationX = locationX;
//     }
// 
//     public int getLocationY() {
//         return locationY;
//     }
// 
//     public void setLocationY(int locationY) {
//         this.locationY = locationY;
//     }
// 
//     public int getWidth() {
//         return width;
//     }
// 
//     public void setWidth(int width) {
//         this.width = width;
//     }
// 
//     public int getHeight() {
//         return height;
//     }
// 
//     public void setHeight(int height) {
//         this.height = height;
//     }
// 
//     public String getImageUrl() {
//         return imageUrl;
//     }
// 
//     public void setImageUrl(String imageUrl) {
//         this.imageUrl = imageUrl;
//     }
// }


// Path: app/src/main/java/com/rance/chatui/ui/activity/FullImageActivity.java
import android.animation.ObjectAnimator;
import android.annotation.TargetApi;
import android.app.Activity;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.ViewTreeObserver;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.DecelerateInterpolator;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.bumptech.glide.Glide;
import com.rance.chatui.R;
import com.rance.chatui.enity.FullImageInfo;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;

package com.rance.chatui.ui.activity;





/**
 * 作者：Rance on 2016/12/15 15:56
 * 邮箱：rance935@163.com
 */
public class FullImageActivity extends Activity {

    ImageView fullImage;
    LinearLayout fullLay;
    private int mLeft;
    private int mTop;
    private float mScaleX;
    private float mScaleY;
    private Drawable mBackground;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_full_image);
        fullImage = (ImageView) findViewById(R.id.full_image);
        fullLay = (LinearLayout) findViewById(R.id.full_lay);

        fullImage.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onImageClick();
            }
        });

        EventBus.getDefault().register(this);
    }

    @TargetApi(Build.VERSION_CODES.JELLY_BEAN)
    @Subscribe(threadMode = ThreadMode.MAIN, sticky = true) //在ui线程执行
    public void onDataSynEvent(final FullImageInfo fullImageInfo) {