dodano układ dolnego paska i komunikatu usunięcia notatki
This commit is contained in:
parent
89659f873d
commit
dc8e5c2b93
4
app/src/main/res/drawable/background_bottom_toolbar.xml
Normal file
4
app/src/main/res/drawable/background_bottom_toolbar.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
</selector>
|
4
app/src/main/res/drawable/dialog_window.xml
Normal file
4
app/src/main/res/drawable/dialog_window.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
</selector>
|
5
app/src/main/res/drawable/ic_baseline_delete_24.xml
Normal file
5
app/src/main/res/drawable/ic_baseline_delete_24.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<vector android:height="24dp" android:tint="#FFFFFF"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@android:color/white" android:pathData="M6,19c0,1.1 0.9,2 2,2h8c1.1,0 2,-0.9 2,-2V7H6v12zM19,4h-3.5l-1,-1h-5l-1,1H5v2h14V4z"/>
|
||||
</vector>
|
48
app/src/main/res/layout/bottom_toolbar.xml
Normal file
48
app/src/main/res/layout/bottom_toolbar.xml
Normal file
@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout 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:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/bottomToolbar"
|
||||
android:background="@drawable/background_bottom_toolbar"
|
||||
app:layout_behavior="@string/bottom_sheet_behavior">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textBottomToolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/_40sdp"
|
||||
android:text="Opcje"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_12ssp"
|
||||
android:gravity="center"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/deleteNote"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/_12sdp"
|
||||
android:layout_marginEnd="@dimen/_12sdp"
|
||||
android:layout_marginBottom="@dimen/_12sdp"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
tools:ignore="UseCompoundDrawables">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/_25sdp"
|
||||
android:layout_height="@dimen/_25sdp"
|
||||
android:src="@drawable/ic_baseline_delete_24"
|
||||
app:tint="@color/white" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/_12sdp"
|
||||
android:text="Usuń notatkę"
|
||||
android:textStyle="bold"
|
||||
android:textSize="@dimen/_12ssp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
78
app/src/main/res/layout/delete_note.xml
Normal file
78
app/src/main/res/layout/delete_note.xml
Normal file
@ -0,0 +1,78 @@
|
||||
<?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"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_gravity="center"
|
||||
android:layout_margin="@dimen/_16sdp"
|
||||
android:id="@+id/dialogDelete"
|
||||
android:background="@drawable/dialog_window">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imgDelete"
|
||||
android:layout_width="@dimen/_30sdp"
|
||||
android:layout_height="@dimen/_20sdp"
|
||||
android:layout_marginStart="@dimen/_10sdp"
|
||||
android:layout_marginTop="@dimen/_12sdp"
|
||||
android:src="@drawable/ic_baseline_delete_24"
|
||||
app:tint="@color/white"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/_10sdp"
|
||||
android:layout_marginEnd="@dimen/_12sdp"
|
||||
android:text="Usuń notatkę"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13ssp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/imgDelete"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/imgDelete"
|
||||
app:layout_constraintTop_toTopOf="@id/imgDelete" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/deleteMessage"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/_12sdp"
|
||||
android:layout_marginTop="@dimen/_12sdp"
|
||||
android:layout_marginEnd="@dimen/_12sdp"
|
||||
android:paddingStart="@dimen/_10sdp"
|
||||
android:paddingEnd="@dimen/_10sdp"
|
||||
android:textColor="@color/black"
|
||||
android:text="Czy na pewno chcesz usunąć notatkę?"
|
||||
android:textSize="@dimen/_12ssp"
|
||||
app:layout_constraintTop_toBottomOf="@id/imgDelete"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textDelete"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/_10sdp"
|
||||
android:layout_marginEnd="@dimen/_30sdp"
|
||||
android:layout_marginBottom="@dimen/_10sdp"
|
||||
android:text="Usuń"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13ssp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/deleteMessage"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textCancel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/_10sdp"
|
||||
android:layout_marginEnd="@dimen/_40sdp"
|
||||
android:layout_marginBottom="@dimen/_10sdp"
|
||||
android:text="Anuluj"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="@dimen/_13ssp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/textDelete"
|
||||
app:layout_constraintTop_toBottomOf="@id/deleteMessage"/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in New Issue
Block a user