Code example for DecelerateInterpolator

Methods: setInterpolator

0
    } 
 
    public void notifyOrientationChanged(int orientation) {
        mCurrentOrientation = orientation;
        mReviewedImage.animate().rotation(mReviewedImageOrientation + orientation)
                .setDuration(200).setInterpolator(new DecelerateInterpolator())
                .start();
    } 
 
    private void openInGallery(int imageId) {
        if (imageId > 0) {
            Uri uri = null;
            if (CameraActivity.getCameraMode() == CameraActivity.CAMERA_MODE_VIDEO) { 
                uri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI.buildUpon().appendPath(Integer.toString(imageId)).build();
            } else { 
                uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI.buildUpon().appendPath(Integer.toString(imageId)).build();
            } 
            Intent intent = new Intent(Intent.ACTION_VIEW, uri);
            try { 
                getContext().startActivity(intent);
Stop searching for code, let great code find you!  Add Codota to your java IDE