2014-08-03 00:10:09 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-05-13 17:31:41 +02:00
|
|
|
<!--
|
|
|
|
|
~ Copyright © 2014-2020 The Android Password Store Authors. All Rights Reserved.
|
|
|
|
|
~ SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
|
-->
|
|
|
|
|
|
2014-08-15 13:36:14 +02:00
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-05-10 15:51:39 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2014-08-03 00:10:09 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2019-10-01 18:44:28 +02:00
|
|
|
android:background="?android:attr/windowBackground"
|
2014-08-03 00:10:09 +02:00
|
|
|
android:orientation="vertical"
|
2018-09-25 19:45:54 +02:00
|
|
|
tools:context="com.zeapo.pwdstore.crypto.PgpActivity">
|
2014-08-03 00:10:09 +02:00
|
|
|
|
2019-10-01 18:44:28 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2014-08-03 00:10:09 +02:00
|
|
|
android:layout_width="fill_parent"
|
2014-08-17 01:13:46 +02:00
|
|
|
android:layout_height="wrap_content"
|
2018-09-25 19:45:54 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:padding="16dp">
|
2014-08-03 00:10:09 +02:00
|
|
|
|
2019-10-01 18:44:28 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/crypto_password_category_decrypt"
|
|
|
|
|
android:layout_width="wrap_content"
|
2014-08-06 21:35:03 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-10-01 18:44:28 +02:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
|
android:textColor="?android:attr/textColor"
|
|
|
|
|
android:textIsSelectable="false"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
tools:text="CATEGORY HERE" />
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/crypto_password_file"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="@dimen/activity_horizontal_margin"
|
|
|
|
|
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Medium"
|
|
|
|
|
android:textColor="?attr/colorSecondary"
|
|
|
|
|
android:textSize="24sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/crypto_password_category_decrypt"
|
|
|
|
|
tools:text="PASSWORD FILE NAME HERE" />
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/crypto_password_last_changed"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
|
android:textColor="?android:attr/textColor"
|
|
|
|
|
android:textIsSelectable="false"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/crypto_password_file"
|
|
|
|
|
tools:text="LAST CHANGED HERE" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
|
android:id="@+id/divider"
|
2016-06-10 05:43:56 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2018-09-25 19:45:54 +02:00
|
|
|
android:layout_marginTop="16dp"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:layout_marginBottom="16dp"
|
2018-09-25 19:45:54 +02:00
|
|
|
android:src="@drawable/divider"
|
2019-10-01 18:44:28 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/crypto_password_last_changed"
|
2017-08-02 11:15:31 +02:00
|
|
|
tools:ignore="ContentDescription" />
|
2016-06-10 05:43:56 +02:00
|
|
|
|
2019-10-01 18:44:28 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2017-07-27 01:40:16 +02:00
|
|
|
android:id="@+id/crypto_container_decrypt"
|
2019-10-01 18:44:28 +02:00
|
|
|
android:layout_width="match_parent"
|
2014-08-06 21:35:03 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="@dimen/activity_vertical_margin"
|
2019-10-01 18:44:28 +02:00
|
|
|
android:visibility="invisible"
|
2020-05-10 15:51:39 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/divider"
|
|
|
|
|
tools:visibility="visible">
|
2014-08-03 00:10:09 +02:00
|
|
|
|
2019-10-01 18:44:28 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/crypto_password_show_label"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/password"
|
|
|
|
|
android:textColor="?android:attr/textColor"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:textStyle="bold"
|
2019-10-01 18:44:28 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-05-10 15:51:39 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-10-01 18:44:28 +02:00
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/crypto_password_show"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="fill"
|
|
|
|
|
android:gravity="bottom"
|
|
|
|
|
android:textColor="?android:attr/textColor"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:typeface="monospace"
|
2019-10-01 18:44:28 +02:00
|
|
|
app:layout_constraintBaseline_toBaselineOf="@id/crypto_password_show_label"
|
2020-05-10 15:51:39 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@id/crypto_password_show_label" />
|
2019-10-01 18:44:28 +02:00
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/crypto_password_toggle_show"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="8dp"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:text="@string/show_password"
|
2020-05-10 10:55:59 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/crypto_password_show_label" />
|
2019-10-01 18:44:28 +02:00
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/crypto_extra_show_layout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:visibility="invisible"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/crypto_container_decrypt"
|
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
|
android:id="@+id/crypto_copy_username"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentTop="true"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:layout_alignParentEnd="true"
|
2019-10-01 18:44:28 +02:00
|
|
|
android:background="?android:attr/windowBackground"
|
|
|
|
|
android:contentDescription="@string/copy_username"
|
|
|
|
|
android:src="@drawable/ic_content_copy"
|
|
|
|
|
android:visibility="invisible"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-05-10 15:51:39 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
tools:visibility="visible" />
|
2019-10-01 18:44:28 +02:00
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/crypto_username_show_label"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
|
android:layout_toStartOf="@id/crypto_copy_username"
|
|
|
|
|
android:text="@string/username"
|
|
|
|
|
android:textColor="?android:attr/textColor"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:visibility="invisible"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-05-10 15:51:39 +02:00
|
|
|
tools:visibility="visible" />
|
2019-10-01 18:44:28 +02:00
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/crypto_username_show"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_below="@id/crypto_username_show_label"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:layout_alignParentStart="true"
|
2019-10-01 18:44:28 +02:00
|
|
|
android:layout_toStartOf="@id/crypto_copy_username"
|
|
|
|
|
android:textColor="?android:attr/textColor"
|
|
|
|
|
android:textIsSelectable="true"
|
|
|
|
|
android:typeface="monospace"
|
|
|
|
|
android:visibility="invisible"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-05-10 15:51:39 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/crypto_username_show_label"
|
|
|
|
|
tools:visibility="visible" />
|
2019-10-01 18:44:28 +02:00
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
|
android:id="@+id/crypto_copy_otp"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_below="@id/crypto_username_show"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:layout_alignParentEnd="true"
|
2019-10-01 18:44:28 +02:00
|
|
|
android:background="?android:attr/windowBackground"
|
|
|
|
|
android:contentDescription="@string/copy_otp"
|
|
|
|
|
android:src="@drawable/ic_content_copy"
|
|
|
|
|
android:visibility="invisible"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-05-10 15:51:39 +02:00
|
|
|
app:layout_constraintTop_toTopOf="@id/crypto_otp_show_label"
|
|
|
|
|
tools:visibility="visible" />
|
2019-10-01 18:44:28 +02:00
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/crypto_otp_show_label"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_below="@id/crypto_username_show"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:layout_alignParentStart="true"
|
2019-10-01 18:44:28 +02:00
|
|
|
android:layout_toStartOf="@id/crypto_copy_otp"
|
|
|
|
|
android:text="@string/otp"
|
|
|
|
|
android:textColor="?android:attr/textColor"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:textStyle="bold"
|
2019-10-01 18:44:28 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-05-10 15:51:39 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/crypto_username_show" />
|
2019-10-01 18:44:28 +02:00
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/crypto_otp_show"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_below="@id/crypto_otp_show_label"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:layout_alignParentStart="true"
|
2019-10-01 18:44:28 +02:00
|
|
|
android:layout_toStartOf="@id/crypto_copy_otp"
|
|
|
|
|
android:textColor="?android:attr/textColor"
|
|
|
|
|
android:textIsSelectable="true"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:typeface="monospace"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/crypto_otp_show_label" />
|
2019-10-01 18:44:28 +02:00
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/crypto_extra_show_label"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_below="@id/crypto_otp_show"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:layout_alignParentStart="true"
|
2019-10-01 18:44:28 +02:00
|
|
|
android:text="@string/extra_content"
|
|
|
|
|
android:textColor="?android:attr/textColor"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:textStyle="bold"
|
2019-10-01 18:44:28 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-05-10 15:51:39 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/crypto_otp_show" />
|
2019-10-01 18:44:28 +02:00
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
|
android:id="@+id/crypto_extra_show"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_below="@id/crypto_extra_show_label"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:layout_alignParentStart="true"
|
2019-10-01 18:44:28 +02:00
|
|
|
android:textColor="?android:attr/textColor"
|
|
|
|
|
android:textIsSelectable="true"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:typeface="monospace"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/crypto_extra_show_label" />
|
2019-10-01 18:44:28 +02:00
|
|
|
|
|
|
|
|
<ToggleButton
|
|
|
|
|
android:id="@+id/crypto_extra_toggle_show"
|
|
|
|
|
style="@style/Widget.MaterialComponents.Button"
|
2014-08-06 21:35:03 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2019-10-01 18:44:28 +02:00
|
|
|
android:layout_below="@id/crypto_extra_show"
|
|
|
|
|
android:layout_alignParentStart="true"
|
2020-05-10 15:51:39 +02:00
|
|
|
android:backgroundTint="?attr/colorSecondary"
|
2019-10-01 18:44:28 +02:00
|
|
|
android:checked="false"
|
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
|
android:textColor="?android:attr/windowBackground"
|
|
|
|
|
android:textOff="@string/show_extra"
|
|
|
|
|
android:textOn="@string/hide_extra"
|
2020-05-10 15:51:39 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/crypto_extra_show" />
|
2019-10-01 18:44:28 +02:00
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2014-08-03 00:10:09 +02:00
|
|
|
|
2018-09-25 19:45:54 +02:00
|
|
|
</ScrollView>
|