|
@@ -1,127 +1,125 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:background="#fff" >
|
|
|
-
|
|
|
- <androidx.constraintlayout.widget.Guideline
|
|
|
- android:id="@+id/guidelineV10"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical"
|
|
|
- app:layout_constraintGuide_percent="0.1" />
|
|
|
-
|
|
|
- <androidx.constraintlayout.widget.Guideline
|
|
|
- android:id="@+id/guidelineV40"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical"
|
|
|
- app:layout_constraintGuide_percent="0.4" />
|
|
|
-
|
|
|
- <androidx.constraintlayout.widget.Guideline
|
|
|
- android:id="@+id/guidelineV90"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical"
|
|
|
- app:layout_constraintGuide_percent="0.9" />
|
|
|
+ android:background="#fff">
|
|
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
|
android:id="@+id/guidelineH20"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="horizontal"
|
|
|
- app:layout_constraintGuide_percent="0.2" />
|
|
|
+ app:layout_constraintGuide_percent="0.16" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_dialogPassword_back"
|
|
|
+ android:layout_width="48dp"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ android:layout_marginLeft="12dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:padding="12dp"
|
|
|
+ android:src="@drawable/ic_back"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ tools:ignore="ContentDescription,RtlHardcoded,RtlSymmetry" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_dialogPassword_title"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="24dp"
|
|
|
+ android:layout_marginRight="24dp"
|
|
|
android:gravity="center_vertical"
|
|
|
- android:text="@string/reader_dialog_password_title"
|
|
|
android:textColor="@color/dialog_title"
|
|
|
- android:textSize="@dimen/material_title"
|
|
|
- app:layout_constraintWidth_max="480dp"
|
|
|
- app:layout_constraintVertical_chainStyle="packed"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tv_dialogPassword_message"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="@+id/guidelineH20"
|
|
|
+ app:layout_constraintVertical_chainStyle="packed"
|
|
|
+ app:layout_constraintWidth_max="480dp"
|
|
|
+ tools:text="File Name.pdf" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_dialogPassword_message"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:text="@string/reader_dialog_password_message"
|
|
|
+ android:textColor="@color/dialog_second_text"
|
|
|
+ android:textSize="16sp"
|
|
|
app:layout_constraintBottom_toTopOf="@+id/layout_dialogPassword_name"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/guidelineV10"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/guidelineV90" />
|
|
|
+ app:layout_constraintLeft_toLeftOf="@id/tv_dialogPassword_title"
|
|
|
+ app:layout_constraintRight_toRightOf="@id/tv_dialogPassword_title"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/tv_dialogPassword_title"
|
|
|
+ app:layout_constraintVertical_chainStyle="packed"
|
|
|
+ app:layout_constraintWidth_max="480dp"
|
|
|
+ tools:text="This file is password protected. Please enter the password." />
|
|
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
|
android:id="@+id/layout_dialogPassword_name"
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginTop="@dimen/material_dialog_title_body"
|
|
|
android:textColorHint="@color/bright_blue"
|
|
|
- app:colorPrimary="@color/bright_blue"
|
|
|
- app:colorPrimaryDark="@color/bright_blue"
|
|
|
+ app:backgroundTint="@color/bright_blue"
|
|
|
+ app:boxStrokeColor="@color/bright_blue"
|
|
|
app:colorAccent="@color/bright_blue"
|
|
|
- app:colorControlNormal="@color/bright_blue"
|
|
|
app:colorControlActivated="@color/bright_blue"
|
|
|
- app:passwordToggleEnabled="true"
|
|
|
- app:backgroundTint="@color/bright_blue"
|
|
|
+ app:colorControlNormal="@color/bright_blue"
|
|
|
+ app:colorPrimary="@color/bright_blue"
|
|
|
+ app:colorPrimaryDark="@color/bright_blue"
|
|
|
app:hintTextAppearance="@style/ReaderPasswordTextInputLayoutHint"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/tv_dialogPassword_title"
|
|
|
- app:layout_constraintBottom_toTopOf="@+id/tv_dialogPassword_cancel"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/btn_dialogPassword_ok"
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_dialogPassword_title"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/tv_dialogPassword_title" >
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/tv_dialogPassword_title"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_dialogPassword_message"
|
|
|
+ app:passwordToggleDrawable="@drawable/selector_pdf_password_toggle"
|
|
|
+ app:passwordToggleEnabled="true">
|
|
|
|
|
|
- <androidx.appcompat.widget.AppCompatEditText
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
android:id="@+id/et_dialogPassword_name"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:textColorHint="@color/bright_blue"
|
|
|
- android:hint="@string/reader_dialog_password_tip"
|
|
|
+ android:hint="@string/reader_dialog_password_hint"
|
|
|
android:inputType="textPassword"
|
|
|
android:singleLine="true"
|
|
|
- android:textCursorDrawable="@drawable/shape_password_cursor_normal"
|
|
|
android:textColor="@color/bright_blue"
|
|
|
- android:textSize="@dimen/material_body"
|
|
|
- app:hintTextAppearance="@style/ReaderPasswordTextInputLayoutHint"
|
|
|
- app:colorPrimary="@color/bright_blue"
|
|
|
- app:colorPrimaryDark="@color/bright_blue"
|
|
|
+ android:textColorHint="@color/bright_blue"
|
|
|
+ android:textCursorDrawable="@drawable/shape_password_cursor_normal"
|
|
|
+ android:textSize="16sp"
|
|
|
+ app:backgroundTint="@color/bright_blue"
|
|
|
app:colorAccent="@color/bright_blue"
|
|
|
- app:colorControlNormal="@color/bright_blue"
|
|
|
app:colorControlActivated="@color/bright_blue"
|
|
|
- app:backgroundTint="@color/bright_blue" >
|
|
|
+ app:colorControlNormal="@color/bright_blue"
|
|
|
+ app:colorPrimary="@color/bright_blue"
|
|
|
+ app:colorPrimaryDark="@color/bright_blue"
|
|
|
+ app:hintTextAppearance="@style/ReaderPasswordTextInputLayoutHint"
|
|
|
+ app:passwordToggleEnabled="true">
|
|
|
|
|
|
- <requestFocus/>
|
|
|
- </androidx.appcompat.widget.AppCompatEditText>
|
|
|
+ <requestFocus />
|
|
|
+ </com.google.android.material.textfield.TextInputEditText>
|
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_dialogPassword_cancel"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:padding="8dp"
|
|
|
- android:layout_weight="1"
|
|
|
- android:background="@drawable/selector_0000_9933b5e5"
|
|
|
- android:gravity="center"
|
|
|
- android:text="@string/reader_dialog_password_cancel"
|
|
|
- android:textAllCaps="true"
|
|
|
- android:textColor="@color/bright_blue"
|
|
|
- android:textSize="@dimen/material_button"
|
|
|
- android:layout_marginLeft="24dp"
|
|
|
- android:layout_marginRight="24dp"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/tv_dialogPassword_ok"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/tv_dialogPassword_ok"
|
|
|
- app:layout_constraintRight_toLeftOf="@+id/tv_dialogPassword_ok" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_dialogPassword_ok"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:padding="8dp"
|
|
|
- android:layout_weight="1"
|
|
|
- android:background="@drawable/selector_0000_9933b5e5"
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_dialogPassword_ok"
|
|
|
+ android:layout_width="112dp"
|
|
|
+ android:layout_height="32dp"
|
|
|
+ android:layout_marginTop="24dp"
|
|
|
+ android:background="@drawable/selector_pdf_password_button"
|
|
|
+ android:fontFamily="sans-serif"
|
|
|
android:gravity="center"
|
|
|
- android:textAllCaps="true"
|
|
|
- android:text="@string/reader_dialog_password_confirm"
|
|
|
- android:textColor="@color/bright_blue"
|
|
|
+ android:text="@string/reader_dialog_password_ok"
|
|
|
+ android:textColor="@drawable/selector_pdf_password_button_text"
|
|
|
android:textSize="@dimen/material_button"
|
|
|
- android:layout_marginTop="24dp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/tv_dialogPassword_title"
|
|
|
app:layout_constraintTop_toBottomOf="@+id/layout_dialogPassword_name"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/tv_dialogPassword_title" />
|
|
|
+ tools:ignore="UnusedAttribute" />
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|