dodanie wyglądu layoutu tworzenia notatki

This commit is contained in:
Naiki00 2021-02-11 00:50:40 +01:00
parent 780389e5a1
commit 0c48660648
2 changed files with 98 additions and 3 deletions

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
</selector>

View File

@ -1,6 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.coordinatorlayout.widget.CoordinatorLayout 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="@color/colorPrimary">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/_40sdp"
android:paddingBottom="@dimen/_10sdp">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/back"
android:layout_width="@dimen/_30sdp"
android:layout_height="@dimen/_30sdp"
android:layout_marginStart="@dimen/_6sdp"
android:layout_marginTop="@dimen/_20sdp"
android:layout_marginEnd="@dimen/_12sdp"
android:contentDescription="@string/app_name"
android:src="@drawable/ic_baseline_arrow_back_ios_24"
app:tint="@color/colorIcon"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
<ImageView
android:id="@+id/save"
android:layout_width="@dimen/_20sdp"
android:layout_height="@dimen/_20sdp"
android:layout_marginEnd="@dimen/_12sdp"
android:contentDescription="@string/app_name"
android:src="@drawable/ic_baseline_done_24"
android:background="@drawable/done_button_background"
app:tint="@color/colorIcon"
app:layout_constraintBottom_toBottomOf="@+id/back"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/back" />
<EditText
android:id="@+id/noteTitle"
android:layout_width="match_parent"
android:layout_height="@dimen/_35sdp"
android:layout_marginStart="@dimen/_12sdp"
android:layout_marginTop="@dimen/_15sdp"
android:layout_marginEnd="@dimen/_12sdp"
android:textSize="@dimen/_16ssp"
android:inputType="text"
android:hint="@string/note_title"
app:layout_constraintTop_toBottomOf="@id/back" />
<EditText
android:id="@+id/noteSubtitle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/_12sdp"
android:layout_marginTop="16dp"
android:layout_marginEnd="@dimen/_12sdp"
android:hint="@string/note_subtitle"
android:inputType="textMultiLine"
android:textColor="@color/colorSubtitle"
android:textColorHint="@color/colorHint"
android:textSize="@dimen/_13ssp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@id/viewSubtitle"
app:layout_constraintTop_toBottomOf="@+id/noteTitle"/>
<View
android:id="@+id/viewSubtitle"
android:layout_width="@dimen/_5sdp"
android:layout_height="0dp"
android:background="@drawable/subtitle_sign_background"
app:layout_constraintBottom_toBottomOf="@+id/noteSubtitle"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/noteSubtitle" />
<EditText
android:id="@+id/inputNote"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/note_content"
android:inputType="textMultiLine"
android:textColor="@color/white"
android:textColorHint="@color/colorHint"
app:layout_constraintTop_toTopOf="@id/noteSubtitle" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>