diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2013-03-25 12:59:54 +0000 |
---|---|---|
committer | Paul Gardiner <paulg.artifex@glidos.net> | 2013-03-25 12:59:54 +0000 |
commit | 199abe0069381d79fc34c86268e408083ad18397 (patch) | |
tree | 0dbefb3a08a5d44dae2d5e98635241a7224b231d /android/res | |
parent | 41f10c71dbae05fb538f51a495ef7aaa1861fd5d (diff) | |
download | mupdf-199abe0069381d79fc34c86268e408083ad18397.tar.xz |
Android: add support for Ink annotation creation
Diffstat (limited to 'android/res')
-rw-r--r-- | android/res/drawable-ldpi/ic_annot.png | bin | 0 -> 311 bytes | |||
-rw-r--r-- | android/res/drawable-ldpi/ic_pen.png | bin | 0 -> 257 bytes | |||
-rw-r--r-- | android/res/drawable-mdpi/ic_annot.png | bin | 0 -> 418 bytes | |||
-rw-r--r-- | android/res/drawable-mdpi/ic_pen.png | bin | 0 -> 282 bytes | |||
-rw-r--r-- | android/res/layout/buttons.xml | 82 | ||||
-rw-r--r-- | android/res/values/strings.xml | 3 |
6 files changed, 80 insertions, 5 deletions
diff --git a/android/res/drawable-ldpi/ic_annot.png b/android/res/drawable-ldpi/ic_annot.png Binary files differnew file mode 100644 index 00000000..c4f1df07 --- /dev/null +++ b/android/res/drawable-ldpi/ic_annot.png diff --git a/android/res/drawable-ldpi/ic_pen.png b/android/res/drawable-ldpi/ic_pen.png Binary files differnew file mode 100644 index 00000000..7b7de296 --- /dev/null +++ b/android/res/drawable-ldpi/ic_pen.png diff --git a/android/res/drawable-mdpi/ic_annot.png b/android/res/drawable-mdpi/ic_annot.png Binary files differnew file mode 100644 index 00000000..0b4bfd92 --- /dev/null +++ b/android/res/drawable-mdpi/ic_annot.png diff --git a/android/res/drawable-mdpi/ic_pen.png b/android/res/drawable-mdpi/ic_pen.png Binary files differnew file mode 100644 index 00000000..db805373 --- /dev/null +++ b/android/res/drawable-mdpi/ic_pen.png diff --git a/android/res/layout/buttons.xml b/android/res/layout/buttons.xml index 879abf46..e714b022 100644 --- a/android/res/layout/buttons.xml +++ b/android/res/layout/buttons.xml @@ -35,20 +35,20 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" - android:layout_toLeftOf="@+id/selectButton" + android:layout_toLeftOf="@+id/annotButton" android:contentDescription="@string/link_control" android:background="@drawable/button" android:src="@drawable/ic_link" /> <ImageButton - android:id="@+id/selectButton" + android:id="@+id/annotButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_toLeftOf="@+id/outlineButton" - android:contentDescription="@string/select" + android:contentDescription="@string/edit_annotations" android:background="@drawable/button" - android:src="@drawable/ic_select" /> + android:src="@drawable/ic_annot" /> <ImageButton android:id="@+id/outlineButton" @@ -197,6 +197,16 @@ android:background="@color/toolbar" > <ImageButton + android:id="@+id/cancelDeleteButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_alignParentLeft="true" + android:contentDescription="@string/cancel" + android:background="@drawable/button" + android:src="@drawable/ic_cancel" /> + + <ImageButton android:id="@+id/deleteButton" android:layout_width="wrap_content" android:layout_height="wrap_content" @@ -207,7 +217,69 @@ android:src="@drawable/ic_trash" /> </RelativeLayout> - </ViewAnimator> + + <RelativeLayout + android:id="@+id/topBar5" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@color/toolbar" > + + <ImageButton + android:id="@+id/cancelAnnotButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_alignParentLeft="true" + android:contentDescription="@string/cancel" + android:background="@drawable/button" + android:src="@drawable/ic_cancel" /> + + <ImageButton + android:id="@+id/selectButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_toLeftOf="@+id/inkButton" + android:contentDescription="@string/select" + android:background="@drawable/button" + android:src="@drawable/ic_select" /> + + <ImageButton + android:id="@+id/inkButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_alignParentRight="true" + android:contentDescription="@string/ink" + android:background="@drawable/button" + android:src="@drawable/ic_pen" /> + </RelativeLayout> + + <RelativeLayout + android:id="@+id/topBar6" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@color/toolbar" > + + <ImageButton + android:id="@+id/cancelInkButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_alignParentLeft="true" + android:contentDescription="@string/cancel" + android:background="@drawable/button" + android:src="@drawable/ic_cancel" /> + + <Button + android:id="@+id/saveInkButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_alignParentRight="true" + android:text="@string/save" /> + </RelativeLayout> + </ViewAnimator> <RelativeLayout android:id="@+id/lowerButtons" diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml index 9509c9db..c8008591 100644 --- a/android/res/values/strings.xml +++ b/android/res/values/strings.xml @@ -24,4 +24,7 @@ <string name="delete">Delete</string> <string name="highlight">Highlight</string> <string name="underline">Underline</string> + <string name="edit_annotations">Edit annotations</string> + <string name="ink">Ink</string> + <string name="save">Save</string> </resources> |