summaryrefslogtreecommitdiff
path: root/platform/android/example/app/src/main/java/com
diff options
context:
space:
mode:
authorfred ross-perry <fredross-perry@Fred-Ross-Perrys-Computer.local>2016-07-14 17:03:45 -0700
committerfred ross-perry <fred.ross-perry@artifex.com>2016-07-15 10:09:03 -0700
commitc845fe961a6846b46116a38bb0dd8a9e5bdba609 (patch)
tree41e9be58ade7736b338b4085dbc64a8136438349 /platform/android/example/app/src/main/java/com
parentbc7dd5e109c4f001982be9dcb7b5e80d35bd5b28 (diff)
downloadmupdf-c845fe961a6846b46116a38bb0dd8a9e5bdba609.tar.xz
android example - add a button to toggle annotations
Diffstat (limited to 'platform/android/example/app/src/main/java/com')
-rwxr-xr-x[-rw-r--r--]platform/android/example/app/src/main/java/com/artifex/mupdf/example/DocViewActivity.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/android/example/app/src/main/java/com/artifex/mupdf/example/DocViewActivity.java b/platform/android/example/app/src/main/java/com/artifex/mupdf/example/DocViewActivity.java
index c503a85a..f17bcb83 100644..100755
--- a/platform/android/example/app/src/main/java/com/artifex/mupdf/example/DocViewActivity.java
+++ b/platform/android/example/app/src/main/java/com/artifex/mupdf/example/DocViewActivity.java
@@ -3,6 +3,7 @@ package com.artifex.mupdf.example;
import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
+import android.view.View;
import com.artifex.mupdf.android.DocView;
@@ -26,4 +27,9 @@ public class DocViewActivity extends Activity
// start the view
mDocView.start(path);
}
+
+ public void onToggleAnnotations(View v)
+ {
+ mDocView.toggleAnnotations();
+ }
}