|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<LinearLayout |
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" |
| 4 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 5 | + android:layout_width="match_parent" |
| 6 | + android:layout_height="wrap_content" |
| 7 | + android:orientation="vertical" |
| 8 | + android:padding="20dp"> |
| 9 | + |
| 10 | + <TextView |
| 11 | + android:layout_width="match_parent" |
| 12 | + android:layout_height="wrap_content" |
| 13 | + android:gravity="center" |
| 14 | + android:paddingTop="16dp" |
| 15 | + android:text="@string/dialog_duplicate_entry_title" |
| 16 | + android:textSize="20sp" /> |
| 17 | + |
| 18 | + <TextView |
| 19 | + android:id="@+id/duplicate_warning_text" |
| 20 | + android:layout_width="match_parent" |
| 21 | + android:layout_height="wrap_content" |
| 22 | + android:text="@string/dialog_duplicate_entry_message" |
| 23 | + android:textSize="16sp" |
| 24 | + android:textColor="?android:attr/textColorPrimary" |
| 25 | + android:paddingTop="10dp" |
| 26 | + android:paddingBottom="20dp" /> |
| 27 | + |
| 28 | + <LinearLayout |
| 29 | + android:id="@+id/overwrite_entry" |
| 30 | + android:layout_width="match_parent" |
| 31 | + android:layout_height="wrap_content" |
| 32 | + android:orientation="horizontal" |
| 33 | + android:paddingVertical="15dp" |
| 34 | + android:paddingHorizontal="10dp" |
| 35 | + android:background="?android:attr/selectableItemBackground" |
| 36 | + android:clickable="true" |
| 37 | + android:focusable="true"> |
| 38 | + |
| 39 | + <ImageView |
| 40 | + android:layout_width="24dp" |
| 41 | + android:layout_height="24dp" |
| 42 | + android:layout_gravity="center_vertical" |
| 43 | + android:src="@drawable/ic_outline_brush_24" |
| 44 | + app:tint="?attr/colorOnSurfaceVariant" /> |
| 45 | + |
| 46 | + <LinearLayout |
| 47 | + android:layout_width="0dp" |
| 48 | + android:layout_height="wrap_content" |
| 49 | + android:layout_weight="1" |
| 50 | + android:orientation="vertical" |
| 51 | + android:layout_marginStart="16dp"> |
| 52 | + |
| 53 | + <TextView |
| 54 | + android:layout_width="wrap_content" |
| 55 | + android:layout_height="wrap_content" |
| 56 | + android:text="@string/dialog_duplicate_entry_overwrite_title" |
| 57 | + android:textSize="17sp" |
| 58 | + android:textStyle="bold" /> |
| 59 | + |
| 60 | + <TextView |
| 61 | + android:layout_width="wrap_content" |
| 62 | + android:layout_height="wrap_content" |
| 63 | + android:text="@string/dialog_duplicate_entry_overwrite_subtitle" |
| 64 | + android:textSize="14sp" |
| 65 | + android:textColor="?attr/colorOnSurfaceVariant" /> |
| 66 | + </LinearLayout> |
| 67 | + </LinearLayout> |
| 68 | + |
| 69 | + <LinearLayout |
| 70 | + android:id="@+id/create_new_entry" |
| 71 | + android:layout_width="match_parent" |
| 72 | + android:layout_height="wrap_content" |
| 73 | + android:orientation="horizontal" |
| 74 | + android:paddingVertical="15dp" |
| 75 | + android:paddingHorizontal="10dp" |
| 76 | + android:background="?android:attr/selectableItemBackground" |
| 77 | + android:clickable="true" |
| 78 | + android:focusable="true"> |
| 79 | + |
| 80 | + <ImageView |
| 81 | + android:layout_width="24dp" |
| 82 | + android:layout_height="24dp" |
| 83 | + android:layout_gravity="center_vertical" |
| 84 | + android:src="@drawable/ic_tag_24" |
| 85 | + app:tint="?attr/colorOnSurfaceVariant" /> |
| 86 | + |
| 87 | + <LinearLayout |
| 88 | + android:layout_width="0dp" |
| 89 | + android:layout_height="wrap_content" |
| 90 | + android:layout_weight="1" |
| 91 | + android:orientation="vertical" |
| 92 | + android:layout_marginStart="16dp"> |
| 93 | + |
| 94 | + <TextView |
| 95 | + android:layout_width="wrap_content" |
| 96 | + android:layout_height="wrap_content" |
| 97 | + android:text="@string/dialog_duplicate_entry_suffix_title" |
| 98 | + android:textSize="17sp" |
| 99 | + android:textStyle="bold" /> |
| 100 | + |
| 101 | + <TextView |
| 102 | + android:id="@+id/duplicate_suffix_subtitle" |
| 103 | + android:layout_width="wrap_content" |
| 104 | + android:layout_height="wrap_content" |
| 105 | + android:text="@string/dialog_duplicate_entry_suffix_subtitle" |
| 106 | + android:textSize="14sp" |
| 107 | + android:textColor="?attr/colorOnSurfaceVariant" /> |
| 108 | + </LinearLayout> |
| 109 | + </LinearLayout> |
| 110 | + |
| 111 | + <LinearLayout |
| 112 | + android:id="@+id/cancel_save" |
| 113 | + android:layout_width="match_parent" |
| 114 | + android:layout_height="wrap_content" |
| 115 | + android:orientation="horizontal" |
| 116 | + android:paddingVertical="15dp" |
| 117 | + android:paddingHorizontal="10dp" |
| 118 | + android:background="?android:attr/selectableItemBackground" |
| 119 | + android:clickable="true" |
| 120 | + android:focusable="true"> |
| 121 | + |
| 122 | + <ImageView |
| 123 | + android:layout_width="24dp" |
| 124 | + android:layout_height="24dp" |
| 125 | + android:layout_gravity="center_vertical" |
| 126 | + android:src="@drawable/ic_outline_close_24" |
| 127 | + app:tint="?attr/colorOnSurfaceVariant" /> |
| 128 | + |
| 129 | + <LinearLayout |
| 130 | + android:layout_width="0dp" |
| 131 | + android:layout_height="wrap_content" |
| 132 | + android:layout_weight="1" |
| 133 | + android:orientation="vertical" |
| 134 | + android:layout_marginStart="16dp"> |
| 135 | + |
| 136 | + <TextView |
| 137 | + android:layout_width="wrap_content" |
| 138 | + android:layout_height="wrap_content" |
| 139 | + android:text="@string/dialog_duplicate_entry_cancel_title" |
| 140 | + android:textSize="17sp" |
| 141 | + android:textStyle="bold" /> |
| 142 | + |
| 143 | + <TextView |
| 144 | + android:layout_width="wrap_content" |
| 145 | + android:layout_height="wrap_content" |
| 146 | + android:text="@string/dialog_duplicate_entry_cancel_subtitle" |
| 147 | + android:textSize="14sp" |
| 148 | + android:textColor="?attr/colorOnSurfaceVariant" /> |
| 149 | + </LinearLayout> |
| 150 | + </LinearLayout> |
| 151 | +</LinearLayout> |
0 commit comments