private void loadImage() {
    StringBuilder sb = new StringBuilder();
    PhotoUploadDTO dto = photoCache.getPhotoUploadList().get(index);
    sb.append(Statics.IMAGE_URL).append(dto.getUri());
    // Picasso.with(ctx).load(sb.toString()).into(imageView);
    ImageLoader.getInstance()
        .displayImage(
            sb.toString(),
            imageView,
            new ImageLoadingListener() {
              @Override
              public void onLoadingStarted(String s, View view) {}

              @Override
              public void onLoadingFailed(String s, View view, FailReason failReason) {}

              @Override
              public void onLoadingComplete(String s, View view, Bitmap bitmap) {

                if (bitmap.getWidth() > bitmap.getHeight()) {
                  isLandscape = true;
                  // setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
                } else {
                  isLandscape = false;
                  // setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
                }
                Log.e(
                    LOG,
                    "------ onLoadingComplete - height: "
                        + bitmap.getHeight()
                        + " width: "
                        + bitmap.getWidth()
                        + " isLandscape: "
                        + isLandscape);
              }

              @Override
              public void onLoadingCancelled(String s, View view) {}
            });
    txtNumber.setText("" + (index + 1));
    txtDate.setText(sdf.format(dto.getDateTaken()));
    animate();
    Util.animateRotationY(txtNext, 500);
  }
 private void animate() {
   Util.animateSlideRight(imageView, 500);
   Util.animateRotationY(txtNumber, 500);
 }