|
27 | 27 | android:layout_width="wrap_content" |
28 | 28 | android:layout_height="wrap_content" |
29 | 29 | android:layout_gravity="end|center_vertical" |
30 | | - android:layout_marginEnd="@dimen/button_padding" |
| 30 | + android:layout_marginEnd="@dimen/spacer_2x" |
31 | 31 | android:contentDescription="@string/menu_delete" |
32 | 32 | app:srcCompat="@drawable/ic_delete_white_24dp" /> |
33 | 33 |
|
|
47 | 47 |
|
48 | 48 | <ImageView |
49 | 49 | android:id="@+id/noteFavorite" |
50 | | - android:layout_width="wrap_content" |
| 50 | + android:layout_width="56dp" |
51 | 51 | android:layout_height="match_parent" |
52 | 52 | android:background="?attr/selectableItemBackgroundBorderless" |
53 | 53 | android:contentDescription="@string/menu_favorite" |
54 | 54 | android:padding="@dimen/spacer_2x" |
55 | 55 | tools:src="@drawable/ic_star_yellow_24dp" /> |
56 | 56 |
|
| 57 | + <ImageView |
| 58 | + android:id="@+id/custom_checkbox" |
| 59 | + android:layout_width="56dp" |
| 60 | + android:layout_height="match_parent" |
| 61 | + android:clickable="false" |
| 62 | + android:contentDescription="@null" |
| 63 | + android:focusable="false" |
| 64 | + android:padding="@dimen/spacer_2x" |
| 65 | + android:src="@drawable/ic_checkbox_blank_outline" /> |
| 66 | + |
57 | 67 | <androidx.appcompat.widget.AppCompatImageView |
58 | 68 | android:id="@+id/noteStatus" |
59 | 69 | android:layout_width="wrap_content" |
|
65 | 75 | app:srcCompat="@drawable/ic_sync_blue_18dp" /> |
66 | 76 | </FrameLayout> |
67 | 77 |
|
68 | | - <TextView |
69 | | - android:id="@+id/noteTitle" |
| 78 | + <LinearLayout |
70 | 79 | android:layout_width="0dp" |
71 | 80 | android:layout_height="wrap_content" |
72 | | - android:layout_marginVertical="10sp" |
| 81 | + android:layout_gravity="center_vertical" |
73 | 82 | android:layout_weight="1" |
74 | | - android:ellipsize="end" |
75 | | - android:maxLines="1" |
76 | | - android:paddingVertical="@dimen/spacer_2x" |
77 | | - android:textColor="?android:textColorPrimary" |
78 | | - android:textSize="@dimen/primary_font_size" |
79 | | - tools:text="@tools:sample/lorem/random" /> |
80 | | - |
81 | | - <TextView |
82 | | - android:id="@+id/noteCategory" |
83 | | - android:layout_width="wrap_content" |
84 | | - android:layout_height="wrap_content" |
85 | | - android:layout_marginStart="@dimen/spacer_1x" |
86 | | - android:layout_marginTop="1dp" |
87 | | - android:layout_marginEnd="@dimen/spacer_2x" |
88 | | - android:background="@drawable/border" |
89 | | - android:maxLines="1" |
90 | | - android:paddingHorizontal="@dimen/spacer_1x" |
91 | | - android:paddingBottom="1dp" |
92 | | - android:singleLine="true" |
93 | | - android:textColor="?android:textColorPrimary" |
94 | | - android:textSize="@dimen/secondary_font_size" |
95 | | - tools:maxLength="15" |
96 | | - tools:text="@tools:sample/lorem/random" /> |
| 83 | + android:orientation="horizontal" |
| 84 | + android:paddingStart="@dimen/zero" |
| 85 | + android:paddingEnd="@dimen/spacer_2x"> |
97 | 86 |
|
98 | | - <LinearLayout |
99 | | - android:layout_width="wrap_content" |
100 | | - android:layout_height="match_parent" |
101 | | - android:gravity="center_vertical" |
102 | | - android:orientation="vertical"> |
| 87 | + <TextView |
| 88 | + android:id="@+id/noteTitle" |
| 89 | + android:layout_width="0dp" |
| 90 | + android:layout_height="wrap_content" |
| 91 | + android:layout_marginVertical="10sp" |
| 92 | + android:layout_weight="1" |
| 93 | + android:ellipsize="end" |
| 94 | + android:maxLines="1" |
| 95 | + android:paddingVertical="@dimen/spacer_2x" |
| 96 | + android:textColor="?android:textColorPrimary" |
| 97 | + android:textSize="@dimen/primary_font_size" |
| 98 | + tools:text="@tools:sample/lorem/random" /> |
103 | 99 |
|
104 | | - <ImageView |
105 | | - android:id="@+id/custom_checkbox" |
| 100 | + <TextView |
| 101 | + android:id="@+id/noteCategory" |
106 | 102 | android:layout_width="wrap_content" |
107 | 103 | android:layout_height="wrap_content" |
108 | | - android:layout_gravity="end" |
109 | | - android:clickable="false" |
110 | | - android:contentDescription="@null" |
111 | | - android:focusable="false" |
112 | | - android:paddingStart="@dimen/spacer_1x" |
113 | | - android:layout_marginBottom="@dimen/spacer_1x" |
114 | | - android:paddingEnd="@dimen/spacer_1x" |
115 | | - android:src="@drawable/ic_checkbox_blank_outline" /> |
| 104 | + android:layout_marginVertical="10sp" |
| 105 | + android:layout_marginStart="@dimen/spacer_1x" |
| 106 | + android:layout_marginTop="1dp" |
| 107 | + android:background="@drawable/border" |
| 108 | + android:maxLines="1" |
| 109 | + android:paddingHorizontal="@dimen/spacer_1x" |
| 110 | + android:paddingBottom="1dp" |
| 111 | + android:singleLine="true" |
| 112 | + android:textColor="?android:textColorPrimary" |
| 113 | + android:textSize="@dimen/secondary_font_size" |
| 114 | + tools:maxLength="15" |
| 115 | + tools:text="@tools:sample/lorem/random" /> |
116 | 116 |
|
117 | 117 | <TextView |
118 | 118 | android:id="@+id/noteModified" |
119 | 119 | android:layout_width="wrap_content" |
120 | 120 | android:layout_height="wrap_content" |
121 | | - android:layout_gravity="end" |
122 | | - android:paddingStart="@dimen/zero" |
123 | | - android:paddingEnd="@dimen/spacer_1x" |
| 121 | + android:layout_marginVertical="10sp" |
| 122 | + android:paddingStart="@dimen/spacer_1x" |
| 123 | + android:paddingEnd="@dimen/zero" |
124 | 124 | tools:text="27.11." /> |
125 | 125 |
|
126 | 126 | </LinearLayout> |
|
0 commit comments