Skip to content

Commit

Permalink
improvements after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Nov 24, 2018
1 parent a6e38aa commit 7e7cade
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ android {
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.0.1'
implementation project(':touchview')
}
2 changes: 1 addition & 1 deletion touchview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ android {
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.0.1'
api 'androidx.appcompat:appcompat:1.0.2'
}
21 changes: 11 additions & 10 deletions touchview/src/main/java/com/ortiz/touchview/TouchImageView.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@
import androidx.appcompat.widget.AppCompatImageView;

public class TouchImageView extends AppCompatImageView {
private static final String DEBUG = "DEBUG";
//
// SuperMin and SuperMax multipliers. Determine how much the image can be
// zoomed below or above the zoom boundaries, before animating back to the
// min/max zoom boundary.
//
private static final float SUPER_MIN_MULTIPLIER = .75f;
private static final float SUPER_MAX_MULTIPLIER = 1.25f;

private static final String DEBUG = "DEBUG";

//
// SuperMin and SuperMax multipliers. Determine how much the image can be
// zoomed below or above the zoom boundaries, before animating back to the
// min/max zoom boundary.
//
private static final float SUPER_MIN_MULTIPLIER = .75f;
private static final float SUPER_MAX_MULTIPLIER = 1.25f;

//
// Scale of image ranges from minScale to maxScale, where minScale == 1
Expand All @@ -66,6 +66,7 @@ public class TouchImageView extends AppCompatImageView {
private Matrix matrix, prevMatrix;

public enum FixedPixel {CENTER, TOP_LEFT, BOTTOM_RIGHT}

private FixedPixel orientationChangeFixedPixel = FixedPixel.CENTER;
private FixedPixel viewSizeChangeFixedPixel = FixedPixel.CENTER;
private boolean orientationJustChanged = false;
Expand Down

0 comments on commit 7e7cade

Please sign in to comment.