You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On above Android 9.0 there is magnifier to help user to see zoomed image to crop.
38
+
New version of this library provides you the gear instead of ready to go car. So you need to build your own implementation with it, before you upgrade your project make sure that you know it's gonna be a braking change in your project.
62
39
63
-
#### Customizing ImageCropActivity
40
+
* Add DocumentScannerView to your layout
64
41
65
-
You can customize something in layout via ScannerConstants.
66
-
67
-
[source,java]
42
+
[source,xml]
68
43
----
69
-
// ScannerConstants.java
70
-
public static String cropText="CROP",
71
-
backText="CLOSE",
72
-
imageError="Can't picked image,
73
-
please try again.",
74
-
cropError="You have not selected a valid field. Please make corrections until the lines are blue.";
75
-
public static String cropColor="#6666ff",backColor="#ff0000",progressColor="#331199"; // Default Colors
76
-
public static boolean saveStorage=false; // Make it true if you need image in your storage.
44
+
...
45
+
<com.labters.documentscanner.DocumentScannerView
46
+
android:id="@+id/document_scanner"
47
+
android:layout_width="match_parent"
48
+
android:layout_height="match_parent" />
49
+
...
77
50
----
78
51
79
-
### Custom Scanner Activity
52
+
* Set loading listener
80
53
81
-
With 1.5 version you have a feature to create your own Document Scanner Activity.
82
-
You still can use old customization via ScannerConstants or you can create a new scanner activity for your layout.
0 commit comments