|
@@ -0,0 +1,335 @@
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:padding="10dp"
|
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
+ tools:context=".fragments.WatermarkConsoleFragment">
|
|
|
|
+
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
+ android:id="@+id/picker"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/opacity_icon"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent" >
|
|
|
|
+
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
+ android:id="@+id/color_picker"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:padding="8dp"
|
|
|
|
+ android:visibility="visible"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent" >
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/color_selected"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:contentDescription="@string/opacity_icon"
|
|
|
|
+ android:src="@drawable/circle"
|
|
|
|
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/color_1"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/color_1"
|
|
|
|
+ android:layout_width="35dp"
|
|
|
|
+ android:layout_height="35dp"
|
|
|
|
+ android:contentDescription="@string/opacity_icon"
|
|
|
|
+ android:src="@drawable/ic_baseline_circle1_24"
|
|
|
|
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/color_2"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@id/color_selected" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/color_2"
|
|
|
|
+ android:layout_width="35dp"
|
|
|
|
+ android:layout_height="35dp"
|
|
|
|
+ android:contentDescription="@string/opacity_icon"
|
|
|
|
+ android:src="@drawable/ic_baseline_circle2_24"
|
|
|
|
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/color_3"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@id/color_1" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/color_3"
|
|
|
|
+ android:layout_width="35dp"
|
|
|
|
+ android:layout_height="35dp"
|
|
|
|
+ android:contentDescription="@string/opacity_icon"
|
|
|
|
+ android:src="@drawable/ic_baseline_circle3_24"
|
|
|
|
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/color_4"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@id/color_2" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/color_4"
|
|
|
|
+ android:layout_width="35dp"
|
|
|
|
+ android:layout_height="35dp"
|
|
|
|
+ android:contentDescription="@string/opacity_icon"
|
|
|
|
+ android:src="@drawable/ic_baseline_circle4_24"
|
|
|
|
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/color_5"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@id/color_3" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/color_5"
|
|
|
|
+ android:layout_width="35dp"
|
|
|
|
+ android:layout_height="35dp"
|
|
|
|
+ android:contentDescription="@string/opacity_icon"
|
|
|
|
+ android:src="@drawable/ic_baseline_circle5_24"
|
|
|
|
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/color_6"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@id/color_4" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/color_6"
|
|
|
|
+ android:layout_width="35dp"
|
|
|
|
+ android:layout_height="35dp"
|
|
|
|
+ android:contentDescription="@string/opacity_icon"
|
|
|
|
+ android:src="@drawable/ic_baseline_circle6_24"
|
|
|
|
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/color_7"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@id/color_5" />
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/color_7"
|
|
|
|
+ android:layout_width="35dp"
|
|
|
|
+ android:layout_height="35dp"
|
|
|
|
+ android:contentDescription="@string/opacity_icon"
|
|
|
|
+ android:src="@drawable/ic_baseline_circle7_24"
|
|
|
|
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@id/color_6" />
|
|
|
|
+
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
+
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
+ android:id="@+id/image_picker"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:padding="5dp"
|
|
|
|
+ android:visibility="invisible"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent" >
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/image_select_text"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="@string/image"
|
|
|
|
+ android:textSize="20sp"
|
|
|
|
+ android:textColor="#3C4045"
|
|
|
|
+ android:padding="7dp"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/image_select_path"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:padding="3dp"
|
|
|
|
+ android:text="/storage/emulated/0/tutu.png"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/image_select_text"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/image_select_text"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@id/image_select_text"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/image_select_btn" />
|
|
|
|
+
|
|
|
|
+ <Button
|
|
|
|
+ android:id="@+id/image_select_btn"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="Select"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:backgroundTint="@color/purple_500"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/image_select_text"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/image_select_text"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
|
|
|
|
+
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/opacity_icon"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:contentDescription="@string/opacity_icon"
|
|
|
|
+ android:src="@drawable/ic_baseline_opacity_20"
|
|
|
|
+ android:padding="10dp"
|
|
|
|
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/opacity_slider"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/picker"
|
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/size_icon"/>
|
|
|
|
+
|
|
|
|
+ <androidx.appcompat.widget.AppCompatSeekBar
|
|
|
|
+ android:id="@+id/opacity_slider"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:progress="50"
|
|
|
|
+ android:theme="@style/SeekBarColor"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/opacity_icon"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/opacity_icon"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/opacity_icon"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/opacity_text"/>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/opacity_text"
|
|
|
|
+ android:layout_width="40dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="@string/default_opacity"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/opacity_icon"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/opacity_icon"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/opacity_slider" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/size_icon"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:contentDescription="@string/opacity_icon"
|
|
|
|
+ android:src="@drawable/ic_baseline_format_size_20"
|
|
|
|
+ android:padding="10dp"
|
|
|
|
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/size_slider"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/opacity_icon"
|
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/page_range_text"/>
|
|
|
|
+
|
|
|
|
+ <androidx.appcompat.widget.AppCompatSeekBar
|
|
|
|
+ android:id="@+id/size_slider"
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:progress="50"
|
|
|
|
+ android:theme="@style/SeekBarColor"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/size_icon"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/size_icon"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/size_icon"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/size_text"/>
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/size_text"
|
|
|
|
+ android:layout_width="40dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="@string/default_opacity"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/size_icon"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/size_icon"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/size_slider" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/page_range_text"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="@string/page_range"
|
|
|
|
+ android:textSize="20sp"
|
|
|
|
+ android:textColor="#3C4045"
|
|
|
|
+ android:padding="12dp"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/size_icon"
|
|
|
|
+ app:layout_constraintBottom_toTopOf="@id/full_screen_checkbox"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
+
|
|
|
|
+ <Spinner
|
|
|
|
+ android:id="@+id/page_range_spinner"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/page_range_text"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/page_range_text"
|
|
|
|
+ tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <CheckBox
|
|
|
|
+ android:id="@+id/full_screen_checkbox"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:padding="10dp"
|
|
|
|
+ android:text="@string/full_screen"
|
|
|
|
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/page_range_text"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/full_screen_space"
|
|
|
|
+ tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
+
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
+ android:id="@+id/full_screen_space"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/full_screen_checkbox"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/full_screen_checkbox"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@id/full_screen_checkbox"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent">
|
|
|
|
+
|
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
|
+ android:id="@+id/horizontal_space"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:hint="@string/default_space"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/horizontal_space_mm"
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
+ tools:ignore="TouchTargetSizeCheck,DuplicateSpeakableTextCheck" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/horizontal_space_mm"
|
|
|
|
+ android:layout_width="40dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="@string/mm"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/horizontal_space"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/horizontal_space"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/horizontal_space"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/vertical_space"/>
|
|
|
|
+
|
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
|
+ android:id="@+id/vertical_space"
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:hint="@string/default_space"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/horizontal_space"
|
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/vertical_space_mm"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@id/horizontal_space_mm"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/horizontal_space"
|
|
|
|
+ tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/vertical_space_mm"
|
|
|
|
+ android:layout_width="40dp"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:text="@string/mm"
|
|
|
|
+ app:layout_constraintTop_toTopOf="@id/horizontal_space"
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/horizontal_space"
|
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/vertical_space"
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
+
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
+
|
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|