| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,105 @@ |
| 1 |
+<?xml version="1.0" encoding="utf-8"?><!-- |
|
| 2 |
+ ~ Copyright (c) 2023 Samson Achiaga |
|
| 3 |
+ ~ |
|
| 4 |
+ ~ Licensed under the Apache License, Version 2.0 (the "License"); |
|
| 5 |
+ ~ you may not use this file except in compliance with the License. |
|
| 6 |
+ ~ You may obtain a copy of the License at |
|
| 7 |
+ ~ |
|
| 8 |
+ ~ http://www.apache.org/licenses/LICENSE-2.0 |
|
| 9 |
+ ~ |
|
| 10 |
+ ~ Unless required by applicable law or agreed to in writing, software |
|
| 11 |
+ ~ distributed under the License is distributed on an "AS IS" BASIS, |
|
| 12 |
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
| 13 |
+ ~ See the License for the specific language governing permissions and |
|
| 14 |
+ ~ limitations under the License. |
|
| 15 |
+ --> |
|
| 16 |
+<layout xmlns:android="http://schemas.android.com/apk/res/android" |
|
| 17 |
+ xmlns:app="http://schemas.android.com/apk/res-auto" |
|
| 18 |
+ xmlns:tools="http://schemas.android.com/tools"> |
|
| 19 |
+ |
|
| 20 |
+ <data> |
|
| 21 |
+ |
|
| 22 |
+ <variable |
|
| 23 |
+ name="note" |
|
| 24 |
+ type="com.certified.audionote.model.Note" /> |
|
| 25 |
+ |
|
| 26 |
+ <import type="com.certified.audionote.utils.UtilKt" /> |
|
| 27 |
+ </data> |
|
| 28 |
+ |
|
| 29 |
+ <androidx.coordinatorlayout.widget.CoordinatorLayout |
|
| 30 |
+ android:layout_width="match_parent" |
|
| 31 |
+ android:layout_height="wrap_content"> |
|
| 32 |
+ |
|
| 33 |
+ <androidx.constraintlayout.widget.ConstraintLayout |
|
| 34 |
+ android:layout_width="match_parent" |
|
| 35 |
+ android:layout_height="wrap_content" |
|
| 36 |
+ android:padding="@dimen/_8sdp"> |
|
| 37 |
+ |
|
| 38 |
+ <androidx.appcompat.widget.AppCompatImageView |
|
| 39 |
+ android:id="@+id/appCompatImageView" |
|
| 40 |
+ android:layout_width="wrap_content" |
|
| 41 |
+ android:layout_height="wrap_content" |
|
| 42 |
+ android:layout_margin="@dimen/_8sdp" |
|
| 43 |
+ android:contentDescription="@string/alarm_icon" |
|
| 44 |
+ android:tint="@color/black_day_white_night" |
|
| 45 |
+ app:layout_constraintStart_toStartOf="parent" |
|
| 46 |
+ app:layout_constraintTop_toTopOf="parent" |
|
| 47 |
+ app:srcCompat="@drawable/ic_alarm_on_black_24dp" /> |
|
| 48 |
+ |
|
| 49 |
+ <com.google.android.material.textview.MaterialTextView |
|
| 50 |
+ android:id="@+id/tv_reminder_time" |
|
| 51 |
+ android:layout_width="wrap_content" |
|
| 52 |
+ android:layout_height="wrap_content" |
|
| 53 |
+ android:layout_marginStart="@dimen/_16sdp" |
|
| 54 |
+ android:fontFamily="@font/open_sans_semi_bold" |
|
| 55 |
+ android:text="@{UtilKt.formatTime(note.reminder)}"
|
|
| 56 |
+ android:textColor="@color/black_day_white_night" |
|
| 57 |
+ android:textSize="@dimen/_14ssp" |
|
| 58 |
+ app:layout_constraintStart_toEndOf="@id/appCompatImageView" |
|
| 59 |
+ app:layout_constraintTop_toTopOf="@id/appCompatImageView" |
|
| 60 |
+ tools:text="10:30 AM" /> |
|
| 61 |
+ |
|
| 62 |
+ <com.google.android.material.textview.MaterialTextView |
|
| 63 |
+ android:id="@+id/tv_reminder_date" |
|
| 64 |
+ android:layout_width="wrap_content" |
|
| 65 |
+ android:layout_height="wrap_content" |
|
| 66 |
+ android:fontFamily="@font/open_sans_regular" |
|
| 67 |
+ android:text="@{UtilKt.formatDateOnly(note.reminder)}"
|
|
| 68 |
+ android:textColor="@color/black_day_white_night" |
|
| 69 |
+ android:textSize="@dimen/_12ssp" |
|
| 70 |
+ app:layout_constraintStart_toStartOf="@+id/tv_reminder_time" |
|
| 71 |
+ app:layout_constraintTop_toBottomOf="@+id/tv_reminder_time" |
|
| 72 |
+ tools:text="13th Dec. 2020" /> |
|
| 73 |
+ |
|
| 74 |
+ <com.google.android.material.button.MaterialButton |
|
| 75 |
+ android:id="@+id/btn_modify_reminder" |
|
| 76 |
+ android:layout_width="0dp" |
|
| 77 |
+ android:layout_height="wrap_content" |
|
| 78 |
+ android:layout_marginStart="@dimen/_8sdp" |
|
| 79 |
+ android:layout_marginEnd="@dimen/_8sdp" |
|
| 80 |
+ android:backgroundTint="@color/edit_reminder_button_color" |
|
| 81 |
+ android:fontFamily="@font/open_sans_semi_bold" |
|
| 82 |
+ android:text="@string/modify" |
|
| 83 |
+ app:layout_constraintEnd_toEndOf="parent" |
|
| 84 |
+ app:layout_constraintStart_toEndOf="@id/btn_delete_reminder" |
|
| 85 |
+ app:layout_constraintTop_toTopOf="@id/btn_delete_reminder" /> |
|
| 86 |
+ |
|
| 87 |
+ <com.google.android.material.button.MaterialButton |
|
| 88 |
+ android:id="@+id/btn_delete_reminder" |
|
| 89 |
+ style="?attr/materialButtonOutlinedStyle" |
|
| 90 |
+ android:layout_width="0dp" |
|
| 91 |
+ android:layout_height="wrap_content" |
|
| 92 |
+ android:layout_marginStart="@dimen/_8sdp" |
|
| 93 |
+ android:layout_marginTop="@dimen/_16sdp" |
|
| 94 |
+ android:layout_marginEnd="@dimen/_8sdp" |
|
| 95 |
+ android:fontFamily="@font/open_sans_semi_bold" |
|
| 96 |
+ android:text="@string/delete" |
|
| 97 |
+ android:textColor="@color/edit_reminder_button_color" |
|
| 98 |
+ app:layout_constraintEnd_toStartOf="@id/btn_modify_reminder" |
|
| 99 |
+ app:layout_constraintStart_toStartOf="parent" |
|
| 100 |
+ app:layout_constraintTop_toBottomOf="@+id/appCompatImageView" |
|
| 101 |
+ app:strokeColor="@color/edit_reminder_button_color" /> |
|
| 102 |
+ |
|
| 103 |
+ </androidx.constraintlayout.widget.ConstraintLayout> |
|
| 104 |
+ </androidx.coordinatorlayout.widget.CoordinatorLayout> |
|
| 105 |
+</layout> |
|
| 0 | 106 |
\ No newline at end of file |