diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-03-30 17:50:36 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-03-31 13:00:41 +0200 |
commit | f8b35b0fe546c9f34626155f19dafe16a8f82829 (patch) | |
tree | ceb16a90ea3dcdb5a3adad6da58c11fb8e54f522 /platform/android/example/app/src/main/res/layout | |
parent | d68576c3785572c1f5d41f83015b8fe6bbcbe9e8 (diff) | |
download | mupdf-f8b35b0fe546c9f34626155f19dafe16a8f82829.tar.xz |
android: Add new example viewer.
Thanks to Fred Ross-Perry.
Diffstat (limited to 'platform/android/example/app/src/main/res/layout')
4 files changed, 130 insertions, 0 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 new file mode 100644 index 00000000..05cee21a --- /dev/null +++ b/platform/android/example/app/src/main/res/layout/activity_doc_view.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + 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" + 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> + +</LinearLayout> diff --git a/platform/android/example/app/src/main/res/layout/activity_main.xml b/platform/android/example/app/src/main/res/layout/activity_main.xml new file mode 100644 index 00000000..24f3d6ba --- /dev/null +++ b/platform/android/example/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</RelativeLayout>
\ No newline at end of file diff --git a/platform/android/example/app/src/main/res/layout/choose_doc.xml b/platform/android/example/app/src/main/res/layout/choose_doc.xml new file mode 100644 index 00000000..48e63b8c --- /dev/null +++ b/platform/android/example/app/src/main/res/layout/choose_doc.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center_horizontal" + android:id="@+id/device_files_wrapper"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center_horizontal" + android:id="@+id/file_list_wrpper"> + + <ListView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/fileListView" + android:layout_gravity="center_horizontal" + android:choiceMode="singleChoice" + android:background="#ffffff"/> + + </LinearLayout> + + </LinearLayout> + +</LinearLayout> diff --git a/platform/android/example/app/src/main/res/layout/picker_entry.xml b/platform/android/example/app/src/main/res/layout/picker_entry.xml new file mode 100644 index 00000000..98ede7d6 --- /dev/null +++ b/platform/android/example/app/src/main/res/layout/picker_entry.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingLeft="4dp" > + + <ImageView + android:id="@+id/icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_alignParentLeft="true" /> + + <TextView + android:id="@+id/name" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_toRightOf="@+id/icon" + android:paddingBottom="4dp" + android:paddingLeft="10dp" + android:paddingRight="4dp" + android:paddingTop="4dp" + android:textAppearance="?android:attr/textAppearanceMedium" /> + +</RelativeLayout> |