diff options
author | Ximeng Zu <uznomis@yahoo.com> | 2017-07-26 11:15:26 -0500 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2017-08-27 20:12:52 +0200 |
commit | 43f5161991cffedabb280a6e4e388c5bcbac4f96 (patch) | |
tree | 2dda51149a9174dc1e7de414f89b1cba96ef5a36 /android/source/res | |
parent | Fix typos (diff) | |
download | core-43f5161991cffedabb280a6e4e388c5bcbac4f96.tar.gz core-43f5161991cffedabb280a6e4e388c5bcbac4f96.zip |
[Android Viewer] Password support
Added password support for documents.
Change-Id: Ifd9cf86894ddaf2fd5ad97510d2ac1b5850611ad
Reviewed-on: https://gerrit.libreoffice.org/40458
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'android/source/res')
-rw-r--r-- | android/source/res/layout/password_dialog.xml | 17 | ||||
-rw-r--r-- | android/source/res/values/strings.xml | 5 |
2 files changed, 22 insertions, 0 deletions
diff --git a/android/source/res/layout/password_dialog.xml b/android/source/res/layout/password_dialog.xml new file mode 100644 index 000000000000..adc4f4249daf --- /dev/null +++ b/android/source/res/layout/password_dialog.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" android:layout_width="wrap_content" + android:layout_height="wrap_content"> + + <EditText + android:id="@+id/password" + android:inputType="textPassword" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="4dp" + android:layout_marginLeft="4dp" + android:layout_marginRight="4dp" + android:layout_marginBottom="16dp" + android:hint="@string/password"/> + +</LinearLayout>
\ No newline at end of file diff --git a/android/source/res/values/strings.xml b/android/source/res/values/strings.xml index 04f1be3cc029..c8c84f9702ba 100644 --- a/android/source/res/values/strings.xml +++ b/android/source/res/values/strings.xml @@ -152,4 +152,9 @@ <string name="calc_optimal_length_default_text">Enter Extra Length in 100th/mm</string> <string name="calc_alert_double_click_optimal_length">Hint: Double tap on a header sets optimal width/height.</string> + <!-- Password dialog strings --> + <string name="action_pwd_dialog_OK">OK</string> + <string name="action_pwd_dialog_cancel">Cancel</string> + <string name="action_pwd_dialog_title">Please enter password</string> + </resources> |