|
@@ -1,78 +1,72 @@
|
|
|
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
|
|
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:id="@+id/note_fragment"
|
|
android:id="@+id/note_fragment"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
android:layout_height="match_parent"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
tools:context="com.sduduzog.slimlauncher.ui.main.notes.NoteFragment">
|
|
tools:context="com.sduduzog.slimlauncher.ui.main.notes.NoteFragment">
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- <EditText
|
|
|
|
|
- android:id="@+id/titleEditText"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="8dp"
|
|
|
|
|
- android:layout_marginTop="8dp"
|
|
|
|
|
- android:layout_marginEnd="8dp"
|
|
|
|
|
- android:background="@android:color/transparent"
|
|
|
|
|
- android:ems="10"
|
|
|
|
|
- android:hint="@string/note_fragment_hint_title"
|
|
|
|
|
- android:inputType="textPersonName"
|
|
|
|
|
- android:padding="8dp"
|
|
|
|
|
- android:textSize="24sp"
|
|
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
- tools:ignore="Autofill,LabelFor" />
|
|
|
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
|
|
- <EditText
|
|
|
|
|
- android:id="@+id/bodyEditText"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginStart="8dp"
|
|
|
|
|
- android:layout_marginTop="8dp"
|
|
|
|
|
- android:layout_marginEnd="8dp"
|
|
|
|
|
- android:background="@android:color/transparent"
|
|
|
|
|
- android:ems="10"
|
|
|
|
|
- android:hint="@string/note_fragment_hint_body"
|
|
|
|
|
- android:inputType="textAutoCorrect|textAutoComplete|textMultiLine|textImeMultiLine"
|
|
|
|
|
- android:padding="8dp"
|
|
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/titleEditText"
|
|
|
|
|
- tools:ignore="Autofill,LabelFor" />
|
|
|
|
|
|
|
+ <EditText
|
|
|
|
|
+ android:id="@+id/titleEditText"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
|
|
+ android:background="@android:color/transparent"
|
|
|
|
|
+ android:ems="10"
|
|
|
|
|
+ android:hint="@string/note_fragment_hint_title"
|
|
|
|
|
+ android:inputType="textPersonName"
|
|
|
|
|
+ android:padding="8dp"
|
|
|
|
|
+ android:textSize="24sp"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
+ tools:ignore="Autofill,LabelFor" />
|
|
|
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/textBody"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginStart="8dp"
|
|
|
|
|
- android:layout_marginTop="8dp"
|
|
|
|
|
- android:layout_marginEnd="8dp"
|
|
|
|
|
- android:padding="8dp"
|
|
|
|
|
- android:text="@string/note_fragment_hint_body"
|
|
|
|
|
- android:textSize="18sp"
|
|
|
|
|
- android:visibility="invisible"
|
|
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
- app:layout_constraintHorizontal_bias="1.0"
|
|
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/titleEditText" />
|
|
|
|
|
|
|
+ <EditText
|
|
|
|
|
+ android:id="@+id/bodyEditText"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
|
|
+ android:background="@android:color/transparent"
|
|
|
|
|
+ android:ems="10"
|
|
|
|
|
+ android:gravity="top"
|
|
|
|
|
+ android:hint="@string/note_fragment_hint_body"
|
|
|
|
|
+ android:inputType="textCapSentences|textAutoCorrect|textAutoComplete|textMultiLine|textImeMultiLine"
|
|
|
|
|
+ android:minLines="2"
|
|
|
|
|
+ android:padding="8dp"
|
|
|
|
|
+ android:textSize="14sp"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/titleEditText"
|
|
|
|
|
+ tools:ignore="Autofill,LabelFor" />
|
|
|
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/txtDoubleTap"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginStart="8dp"
|
|
|
|
|
- android:layout_marginTop="8dp"
|
|
|
|
|
- android:layout_marginEnd="8dp"
|
|
|
|
|
- android:layout_marginBottom="32dp"
|
|
|
|
|
- android:alpha="0.1"
|
|
|
|
|
- android:gravity="center"
|
|
|
|
|
- android:text="@string/double_tap_anywhere_to_edit"
|
|
|
|
|
- android:textSize="30sp"
|
|
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/textBody" />
|
|
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/textBody"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
|
|
+ android:padding="8dp"
|
|
|
|
|
+ android:text="@string/note_fragment_hint_body"
|
|
|
|
|
+ android:textSize="14sp"
|
|
|
|
|
+ android:visibility="gone"
|
|
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
+ app:layout_constraintHorizontal_bias="1.0"
|
|
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/titleEditText" />
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+</ScrollView>
|
|
|
|
|
|
|
|
-</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|