|
@@ -0,0 +1,211 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:padding="16dp"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/font_div"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:paddingRight="4dp"
|
|
|
+ app:layout_constraintBottom_toTopOf="@id/opacity_slider"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/font_size_div"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:id="@+id/font_menu"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:hint="XOffset"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/font_picker"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:inputType="none"
|
|
|
+ android:maxLines="1"
|
|
|
+ app:simpleItems="@array/font_family_items" />
|
|
|
+
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/font_size_div"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:paddingLeft="4dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/font_div"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/font_div"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/font_div">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:id="@+id/font_size_menu"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:hint="YOffset"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/font_size_picker"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:inputType="none"
|
|
|
+ app:simpleItems="@array/font_size_items" />
|
|
|
+
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+ </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="8dp"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/opacity_slider"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/opacity_slider"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/opacity_slider"/>
|
|
|
+
|
|
|
+ <com.google.android.material.slider.Slider
|
|
|
+ android:id="@+id/opacity_slider"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:contentDescription="@string/opacity"
|
|
|
+ android:value="50.0"
|
|
|
+ android:valueFrom="0.0"
|
|
|
+ android:valueTo="100.0"
|
|
|
+ app:layout_constraintBottom_toTopOf="@id/size_slider"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/opacity_text"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/opacity_icon"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/font_div" />
|
|
|
+
|
|
|
+ <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="8dp"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/size_slider"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/size_slider"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/size_slider"/>
|
|
|
+
|
|
|
+ <com.google.android.material.slider.Slider
|
|
|
+ android:id="@+id/size_slider"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:contentDescription="@string/size"
|
|
|
+ android:value="100.0"
|
|
|
+ android:valueFrom="50.0"
|
|
|
+ android:valueTo="150.0"
|
|
|
+ app:layout_constraintBottom_toTopOf="@id/rotation_slider"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/size_text"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/size_icon"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/opacity_slider" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/size_text"
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/default_scale"
|
|
|
+ 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" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/rotation_icon"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:contentDescription="@string/opacity_icon"
|
|
|
+ android:src="@drawable/ic_baseline_rotate_right_20"
|
|
|
+ android:padding="8dp"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="spread_inside"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/rotation_slider"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/rotation_slider"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/rotation_slider"/>
|
|
|
+
|
|
|
+ <com.google.android.material.slider.Slider
|
|
|
+ android:id="@+id/rotation_slider"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:contentDescription="@string/size"
|
|
|
+ android:value="0.0"
|
|
|
+ android:valueFrom="-180.0"
|
|
|
+ android:valueTo="180.0"
|
|
|
+ app:layout_constraintBottom_toTopOf="@id/page_range_text"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/rotation_text"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/rotation_icon"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/size_slider" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/rotation_text"
|
|
|
+ android:layout_width="40dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="0°"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/rotation_icon"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/rotation_icon"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/rotation_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/rotation_slider"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/page_range_msg"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/all_pages"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/page_range_text"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/page_range_text"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/page_range_button" />
|
|
|
+
|
|
|
+ <ImageButton
|
|
|
+ android:padding="8dp"
|
|
|
+ android:id="@+id/page_range_button"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="#00000000"
|
|
|
+ android:src="@drawable/ic_baseline_expand_more_24"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/page_range_text"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/page_range_text"/>
|
|
|
+
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|