summaryrefslogtreecommitdiff
path: root/android/src/com/artifex/mupdfdemo/MuPDFActivity.java
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2013-02-04 12:48:44 +0000
committerPaul Gardiner <paulg.artifex@glidos.net>2013-02-04 12:48:44 +0000
commit05f86ac0cfd2dca99e27120a5e35db6cba703eec (patch)
treeffa6eaf83f5c5bf180884792cdd9e7438c620581 /android/src/com/artifex/mupdfdemo/MuPDFActivity.java
parente7aa801e31b29bae1d22554becb2bde96578d313 (diff)
downloadmupdf-05f86ac0cfd2dca99e27120a5e35db6cba703eec.tar.xz
Android: add button for reflow
Diffstat (limited to 'android/src/com/artifex/mupdfdemo/MuPDFActivity.java')
-rw-r--r--android/src/com/artifex/mupdfdemo/MuPDFActivity.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/android/src/com/artifex/mupdfdemo/MuPDFActivity.java b/android/src/com/artifex/mupdfdemo/MuPDFActivity.java
index 61b24170..f627cc0f 100644
--- a/android/src/com/artifex/mupdfdemo/MuPDFActivity.java
+++ b/android/src/com/artifex/mupdfdemo/MuPDFActivity.java
@@ -17,6 +17,7 @@ import android.content.SharedPreferences;
import android.content.res.Resources;
import android.database.Cursor;
import android.graphics.Color;
+import android.graphics.PorterDuff;
import android.graphics.RectF;
import android.net.Uri;
import android.os.Bundle;
@@ -103,6 +104,7 @@ public class MuPDFActivity extends Activity
private TextView mPageNumberView;
private TextView mInfoView;
private ImageButton mSearchButton;
+ private ImageButton mReflowButton;
private ImageButton mSelectButton;
private ImageButton mCancelSelectButton;
private ImageButton mCopySelectButton;
@@ -590,7 +592,13 @@ public class MuPDFActivity extends Activity
// Activate the search-preparing button
mSearchButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
- //searchModeOn();
+ searchModeOn();
+ }
+ });
+
+ // Activate the reflow button
+ mReflowButton.setOnClickListener(new View.OnClickListener() {
+ public void onClick(View v) {
toggleReflow();
}
});
@@ -963,6 +971,7 @@ public class MuPDFActivity extends Activity
mPageNumberView = (TextView)mButtonsView.findViewById(R.id.pageNumber);
mInfoView = (TextView)mButtonsView.findViewById(R.id.info);
mSearchButton = (ImageButton)mButtonsView.findViewById(R.id.searchButton);
+ mReflowButton = (ImageButton)mButtonsView.findViewById(R.id.reflowButton);
mSelectButton = (ImageButton)mButtonsView.findViewById(R.id.selectButton);
mCancelSelectButton = (ImageButton)mButtonsView.findViewById(R.id.cancelSelectButton);
mCopySelectButton = (ImageButton)mButtonsView.findViewById(R.id.copySelectButton);