summaryrefslogtreecommitdiff
path: root/platform/android/res
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-07-14 16:35:12 +0100
committerRobin Watts <robin.watts@artifex.com>2015-07-20 17:19:04 +0100
commit28432abe9a2fcdb47750c0e49cb484c615f5a883 (patch)
treefdc545552883f44558d0aea3bc2fbbfb346e455f /platform/android/res
parent269fdfce2527cbba02e68d658af3f4b92ef40be0 (diff)
downloadmupdf-28432abe9a2fcdb47750c0e49cb484c615f5a883.tar.xz
Add Proofing button to Android UI.
Hit the proofing button, and we create a new temporary .gproof file. We invoke a new version of MuPDF on that. When that finishes control returns to us, and we delete the .gproof file. Currently the new version of MuPDF loads the .gproof file, but fails to generate any pages from it, as we have no version of ghostscript on the system. Generating this new ghostscript is the next job.
Diffstat (limited to 'platform/android/res')
-rw-r--r--platform/android/res/drawable-ldpi/ic_proof.pngbin0 -> 1229 bytes
-rw-r--r--platform/android/res/drawable-mdpi/ic_proof.pngbin0 -> 1244 bytes
-rw-r--r--platform/android/res/layout/buttons.xml11
-rw-r--r--platform/android/res/values/strings.xml1
4 files changed, 12 insertions, 0 deletions
diff --git a/platform/android/res/drawable-ldpi/ic_proof.png b/platform/android/res/drawable-ldpi/ic_proof.png
new file mode 100644
index 00000000..fee26a7b
--- /dev/null
+++ b/platform/android/res/drawable-ldpi/ic_proof.png
Binary files differ
diff --git a/platform/android/res/drawable-mdpi/ic_proof.png b/platform/android/res/drawable-mdpi/ic_proof.png
new file mode 100644
index 00000000..61d94587
--- /dev/null
+++ b/platform/android/res/drawable-mdpi/ic_proof.png
Binary files differ
diff --git a/platform/android/res/layout/buttons.xml b/platform/android/res/layout/buttons.xml
index 98eddc22..12de40c6 100644
--- a/platform/android/res/layout/buttons.xml
+++ b/platform/android/res/layout/buttons.xml
@@ -259,6 +259,17 @@
android:src="@drawable/ic_cancel" />
<ImageButton
+ android:id="@+id/proofButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_toLeftOf="@+id/printButton"
+ android:contentDescription="@string/proof"
+ android:background="@drawable/button"
+ android:onClick="OnProofButtonClick"
+ android:src="@drawable/ic_proof" />
+
+ <ImageButton
android:id="@+id/printButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
diff --git a/platform/android/res/values/strings.xml b/platform/android/res/values/strings.xml
index f20316e2..dcff35f4 100644
--- a/platform/android/res/values/strings.xml
+++ b/platform/android/res/values/strings.xml
@@ -25,6 +25,7 @@
<string name="edit_annotations">Edit annotations</string>
<string name="ink">Ink</string>
<string name="save">Save</string>
+ <string name="proof">Proof</string>
<string name="print">Print</string>
<string name="dismiss">Dismiss</string>
<string name="parent_directory">[Up one level]</string>