forked from ArthurHub/Android-Image-Cropper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sample improvements - use navigation drawer WIP
- Loading branch information
Arthur
committed
Mar 25, 2016
1 parent
59b2da5
commit 32b0e3b
Showing
12 changed files
with
389 additions
and
571 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
sample/src/main/java/com/theartofdev/edmodo/cropper/sample/CropImageViewOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// "Therefore those skilled at the unorthodox | ||
// are infinite as heaven and earth, | ||
// inexhaustible as the great rivers. | ||
// When they come to an end, | ||
// they begin again, | ||
// like the days and months; | ||
// they die and are reborn, | ||
// like the four seasons." | ||
// | ||
// - Sun Tsu, | ||
// "The Art of War" | ||
|
||
package com.theartofdev.edmodo.cropper.sample; | ||
|
||
import android.util.Pair; | ||
import android.widget.ImageView; | ||
|
||
import com.theartofdev.edmodo.cropper.CropImageView; | ||
|
||
/** | ||
* The crop image view options that can be changed live. | ||
*/ | ||
final class CropImageViewOptions { | ||
|
||
public ImageView.ScaleType scaleType = ImageView.ScaleType.CENTER_INSIDE; | ||
|
||
public CropImageView.CropShape cropShape = CropImageView.CropShape.RECTANGLE; | ||
|
||
public CropImageView.Guidelines guidelines = CropImageView.Guidelines.ON_TOUCH; | ||
|
||
public Pair<Integer, Integer> aspectRatio = new Pair<>(1, 1); | ||
|
||
public boolean fixAspectRatio; | ||
|
||
public boolean showCropOverlay; | ||
|
||
public boolean showProgressBar; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.