diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2013-02-04 14:44:47 +0000 |
---|---|---|
committer | Paul Gardiner <paulg.artifex@glidos.net> | 2013-02-04 14:44:47 +0000 |
commit | 21f987ab2584486d68e97029f2c932e88a35a1a6 (patch) | |
tree | 27d6287c313236eee159d35d4baaf1f2997b7475 /android/src/com/artifex/mupdfdemo/MuPDFActivity.java | |
parent | 05f86ac0cfd2dca99e27120a5e35db6cba703eec (diff) | |
download | mupdf-21f987ab2584486d68e97029f2c932e88a35a1a6.tar.xz |
Android: add hooks for zooming in reflow mode
Diffstat (limited to 'android/src/com/artifex/mupdfdemo/MuPDFActivity.java')
-rw-r--r-- | android/src/com/artifex/mupdfdemo/MuPDFActivity.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/src/com/artifex/mupdfdemo/MuPDFActivity.java b/android/src/com/artifex/mupdfdemo/MuPDFActivity.java index f627cc0f..3617f9f2 100644 --- a/android/src/com/artifex/mupdfdemo/MuPDFActivity.java +++ b/android/src/com/artifex/mupdfdemo/MuPDFActivity.java @@ -561,6 +561,11 @@ public class MuPDFActivity extends Activity protected void onNotInUse(View v) { ((MuPDFView)v).releaseResources(); } + + @Override + protected void onScaleChild(View v, Float scale) { + ((MuPDFView)v).setScale(scale); + } }; mDocView.setAdapter(new MuPDFPageAdapter(this, core)); |