diff options
author | Emmanuel Corrales <emmanuelcorrales22@gmail.com> | 2019-05-26 17:24:16 +0800 |
---|---|---|
committer | Harsh Shandilya <msfjarvis@gmail.com> | 2019-05-26 14:54:16 +0530 |
commit | c46f50f86febc6d42b4da6c0160fc8fe3d494edf (patch) | |
tree | 2a475b202f46d8b24ce035e4922652534d23e5ed /app/src/main/res | |
parent | b06420eb830612898ace3ddab9c73d71d9c76cb8 (diff) |
Added a "SHOW EXTRA CONTENT" button under the "SHOW PASSWORD" button. (#510)
* Add 'SHOW EXTRA CONTENT' button.
* Show the extra content after clicking the 'SHOW EXTRA CONTENT' button.
* Change the regular button to a toggle button and add text for hiding extra contents.
* Change the implementaton of showing/hiding extra contents to accomodate using a toggle button.
* Add padding to the top of the button.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/decrypt_layout.xml | 13 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/app/src/main/res/layout/decrypt_layout.xml b/app/src/main/res/layout/decrypt_layout.xml index 6f0d9d18..de3d0f03 100644 --- a/app/src/main/res/layout/decrypt_layout.xml +++ b/app/src/main/res/layout/decrypt_layout.xml @@ -228,6 +228,19 @@ android:textIsSelectable="true" android:typeface="monospace" /> + <ToggleButton + android:id="@+id/crypto_extra_toggle_show" + style="@style/Widget.AppCompat.Button" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/crypto_extra_show" + android:layout_alignParentStart="true" + android:layout_alignParentLeft="true" + android:checked="false" + android:paddingTop="8dp" + android:textOff="@string/show_extra" + android:textOn="@string/hide_extra" /> + </RelativeLayout> </LinearLayout> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 52f631c1..bdb77193 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -215,6 +215,8 @@ <string name="no_repo_selected">No external repository selected</string> <string name="send_plaintext_password_to">Send password as plaintext using…</string> <string name="show_password">Show password</string> + <string name="show_extra">Show extra content</string> + <string name="hide_extra">Hide extra content</string> <string name="repository_uri">Repository URI</string> <string name="app_icon_hint">App icon</string> <string name="folder_icon_hint">Folder icon</string> |