delete image animation
This commit is contained in:
@@ -12,6 +12,7 @@ import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
@@ -84,6 +85,7 @@ import com.mogo.service.datamanager.IMogoDataChangedListener;
|
||||
import com.mogo.service.fragmentmanager.IMogoFragmentManager;
|
||||
import com.mogo.service.imageloader.IMogoImageLoaderListener;
|
||||
import com.mogo.service.imageloader.IMogoImageloader;
|
||||
import com.mogo.service.imageloader.MogoImageView;
|
||||
import com.mogo.service.intent.IMogoIntentListener;
|
||||
import com.mogo.service.intent.IMogoIntentManager;
|
||||
import com.mogo.service.map.IMogoMapService;
|
||||
@@ -126,7 +128,8 @@ import static com.mogo.module.tanlu.video.VideoInitKt.initVideo;
|
||||
|
||||
private static final String TAG = "TanluCardViewFragment";
|
||||
SimpleCoverVideoPlayer simpleCoverVideoPlayer;
|
||||
AutoZoomInImageView autoZoomInImageView;
|
||||
// AutoZoomInImageView autoZoomInImageView;
|
||||
ImageView autoZoomInImageView;
|
||||
//map
|
||||
private IMogoMarkerManager mMarkerManager;
|
||||
private IMogoMapService mMogoMapService;
|
||||
@@ -603,16 +606,16 @@ import static com.mogo.module.tanlu.video.VideoInitKt.initVideo;
|
||||
/**
|
||||
* 执行图片动画
|
||||
*/
|
||||
private void handleImageAnimation() {
|
||||
autoZoomInImageView.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
//放大增量是0.3,放大时间是1000毫秒,放大开始时间是500毫秒以后
|
||||
autoZoomInImageView.init()
|
||||
.startZoomInByScaleDeltaAndDuration(0.2f, 1000, 300);
|
||||
}
|
||||
});
|
||||
}
|
||||
// private void handleImageAnimation() {
|
||||
// autoZoomInImageView.post(new Runnable() {
|
||||
// @Override
|
||||
// public void run() {
|
||||
// //放大增量是0.3,放大时间是1000毫秒,放大开始时间是500毫秒以后
|
||||
// autoZoomInImageView.init()
|
||||
// .startZoomInByScaleDeltaAndDuration(0.2f, 1000, 300);
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
/**
|
||||
* marker点击事件
|
||||
@@ -706,6 +709,8 @@ import static com.mogo.module.tanlu.video.VideoInitKt.initVideo;
|
||||
Logger.d(TAG, "refreshPhoto thumbnailUrl ------>" + thumbnailUrl);
|
||||
simpleCoverVideoPlayer.setVisibility(View.GONE);
|
||||
autoZoomInImageView.setVisibility(View.VISIBLE);
|
||||
// mogoImageloader.displayImage(thumbnailUrl, autoZoomInImageView);
|
||||
|
||||
mogoImageloader.downloadImage(getActivity(), thumbnailUrl, new IMogoImageLoaderListener() {
|
||||
@Override
|
||||
public void onStart() {
|
||||
@@ -717,7 +722,7 @@ import static com.mogo.module.tanlu.video.VideoInitKt.initVideo;
|
||||
Log.d(TAG, "onCompleted ------>bitmap = " + bitmap);
|
||||
autoZoomInImageView.setImageBitmap(bitmap);
|
||||
//动画
|
||||
handleImageAnimation();
|
||||
// handleImageAnimation();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -842,13 +847,13 @@ import static com.mogo.module.tanlu.video.VideoInitKt.initVideo;
|
||||
e.printStackTrace();
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
if ( autoZoomInImageView.getVisibility() == View.VISIBLE ) {
|
||||
autoZoomInImageView.stopCurrentAnimator();
|
||||
}
|
||||
} catch ( Exception e ) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// try {
|
||||
// if ( autoZoomInImageView.getVisibility() == View.VISIBLE ) {
|
||||
// autoZoomInImageView.stopCurrentAnimator();
|
||||
// }
|
||||
// } catch ( Exception e ) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user