diff options
author | fredrossperry <fredrossperry@gmail.com> | 2016-06-23 13:32:36 -0700 |
---|---|---|
committer | fredrossperry <fredrossperry@gmail.com> | 2016-07-06 11:14:49 -0700 |
commit | 01d5f0bc4185c001179ca6fd36530516acc16eeb (patch) | |
tree | 53622c9ef5aea76a6e781fb18380138d9f70d9bb /platform/android/example/app/src/main/res/layout/activity_doc_view.xml | |
parent | cb894e713b2f60fef0a7e83ccb3a3d29589193bc (diff) | |
download | mupdf-01d5f0bc4185c001179ca6fd36530516acc16eeb.tar.xz |
Android example: modify to use new JNI, N-up page display
- uses AndroidDrawDevice for rendering
- very simple sample app
- mupdf-specific functionality in a module called "mupdf"
- N-up page display
- page rendering in a background task
Signed-off-by: fredrossperry <fredrossperry@gmail.com>
Diffstat (limited to 'platform/android/example/app/src/main/res/layout/activity_doc_view.xml')
-rw-r--r-- | platform/android/example/app/src/main/res/layout/activity_doc_view.xml | 60 |
1 files changed, 3 insertions, 57 deletions
diff --git a/platform/android/example/app/src/main/res/layout/activity_doc_view.xml b/platform/android/example/app/src/main/res/layout/activity_doc_view.xml index 05cee21a..7f5ece24 100644 --- a/platform/android/example/app/src/main/res/layout/activity_doc_view.xml +++ b/platform/android/example/app/src/main/res/layout/activity_doc_view.xml @@ -4,64 +4,10 @@ android:layout_height="match_parent" android:orientation="vertical"> - <LinearLayout - android:orientation="horizontal" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <Button - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="|<-" - android:id="@+id/first_page_button" - android:onClick="onFirstPageButton" - android:minWidth="60dp" /> - - <Button - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="<" - android:id="@+id/previous_page_button" - android:onClick="onPreviousPageButton" - android:minWidth="60dp" /> - - <Button - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text=">" - android:id="@+id/next_page_button" - android:onClick="onNextPageButton" - android:minWidth="60dp" /> - - <Button - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="->|" - android:id="@+id/last_page_button" - android:onClick="onLastPageButton" - android:minWidth="60dp" /> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:textAppearance="?android:attr/textAppearanceMedium" - android:text="Medium Text" - android:textColor="@color/white" - android:id="@+id/page_text" /> - - </LinearLayout> - - <LinearLayout - android:orientation="vertical" + <com.artifex.mupdf.android.DocView + android:id="@+id/doc_view" android:layout_width="match_parent" android:layout_height="match_parent"> - - <ImageView - android:id="@+id/image_view" - android:layout_width="match_parent" - android:layout_height="match_parent"> - </ImageView> - - </LinearLayout> + </com.artifex.mupdf.android.DocView> </LinearLayout> |