1515 app : cardCornerRadius =" @dimen/card_radius" >
1616
1717 <LinearLayout
18- android : id =" @+id/wrapper"
1918 android : layout_width =" match_parent"
20- android : layout_height =" match_parent "
21- android : orientation = " horizontal "
22- android : paddingBottom = " @dimen/spacer_1x " >
19+ android : layout_height =" wrap_content "
20+ android : layout_marginBottom = " @dimen/spacer_2x "
21+ android : orientation = " vertical " >
2322
24- <FrameLayout
25- android : layout_width =" wrap_content"
26- android : layout_height =" wrap_content"
27- android : layout_marginTop =" @dimen/spacer_1qx" >
23+ <LinearLayout
24+ android : id =" @+id/wrapper"
25+ android : layout_width =" match_parent"
26+ android : layout_height =" match_parent"
27+ android : orientation =" vertical" >
2828
29- <ImageView
30- android : id =" @+id/noteFavorite "
31- android : layout_width =" wrap_content "
29+ <TextView
30+ android : id =" @+id/noteTitle "
31+ android : layout_width =" match_parent "
3232 android : layout_height =" wrap_content"
33- android : background =" ?attr/selectableItemBackgroundBorderless"
34- android : contentDescription =" @string/menu_favorite"
35- android : padding =" @dimen/spacer_2x"
36- tools : src =" @drawable/ic_star_yellow_24dp" />
33+ android : layout_marginHorizontal =" @dimen/spacer_2x"
34+ android : layout_marginTop =" @dimen/spacer_2x"
35+ android : hyphenationFrequency =" full"
36+ android : textAppearance =" ?attr/textAppearanceHeadline5"
37+ android : textColor =" @color/fg_default"
38+ tools : maxLength =" 50"
39+ tools : text =" @tools:sample/lorem/random" />
40+
41+ </LinearLayout >
3742
38- <androidx .appcompat.widget.AppCompatImageView
39- android : id =" @+id/noteStatus"
43+ <LinearLayout
44+ android : layout_width =" match_parent"
45+ android : layout_height =" wrap_content"
46+ android : orientation =" horizontal" >
47+
48+ <FrameLayout
4049 android : layout_width =" wrap_content"
50+ android : layout_height =" wrap_content" >
51+
52+ <ImageView
53+ android : id =" @+id/noteFavorite"
54+ android : layout_width =" wrap_content"
55+ android : layout_height =" wrap_content"
56+ android : background =" ?attr/selectableItemBackgroundBorderless"
57+ android : contentDescription =" @string/menu_favorite"
58+ android : padding =" @dimen/spacer_2x"
59+ tools : src =" @drawable/ic_star_yellow_24dp" />
60+
61+ <ImageView
62+ android : id =" @+id/custom_checkbox"
63+ android : layout_width =" wrap_content"
64+ android : layout_height =" match_parent"
65+ android : clickable =" false"
66+ android : contentDescription =" @null"
67+ android : focusable =" false"
68+ android : padding =" @dimen/spacer_2x"
69+ android : src =" @drawable/ic_checkbox_blank_outline" />
70+
71+ <androidx .appcompat.widget.AppCompatImageView
72+ android : id =" @+id/noteStatus"
73+ android : layout_width =" wrap_content"
74+ android : layout_height =" wrap_content"
75+ android : layout_gravity =" center_vertical|end"
76+ android : layout_marginTop =" 12dp"
77+ android : layout_marginEnd =" 4dp"
78+ android : baseline =" 14dp"
79+ app : srcCompat =" @drawable/ic_sync_blue_18dp" />
80+ </FrameLayout >
81+
82+ <LinearLayout
83+ android : layout_width =" match_parent"
4184 android : layout_height =" wrap_content"
42- android : layout_gravity =" center_vertical|end"
43- android : layout_marginTop =" 12dp"
44- android : layout_marginEnd =" 4dp"
45- android : baseline =" 14dp"
46- app : srcCompat =" @drawable/ic_sync_blue_18dp" />
47- </FrameLayout >
85+ android : layout_marginTop =" @dimen/spacer_2x"
86+ android : orientation =" vertical" >
4887
49- <TextView
50- android : id =" @+id/noteTitle"
51- android : layout_width =" 0dp"
52- android : layout_height =" wrap_content"
53- android : layout_marginStart =" 0dp"
54- android : layout_marginTop =" @dimen/spacer_2x"
55- android : layout_marginEnd =" @dimen/spacer_2x"
56- android : layout_marginBottom =" @dimen/spacer_1x"
57- android : layout_weight =" 1"
58- android : hyphenationFrequency =" full"
59- android : textAppearance =" ?attr/textAppearanceHeadline5"
60- android : textColor =" @color/fg_default"
61- tools : maxLength =" 50"
62- tools : text =" @tools:sample/lorem/random" />
88+ <com .google.android.material.chip.Chip
89+ android : id =" @+id/noteCategory"
90+ android : layout_width =" wrap_content"
91+ android : layout_height =" wrap_content"
92+ android : layout_gravity =" end"
93+ android : layout_marginStart =" 0dp"
94+ android : layout_marginEnd =" @dimen/spacer_2x"
95+ android : ellipsize =" middle"
96+ android : padding =" @dimen/spacer_1hx"
97+ android : textColor =" ?android:textColorPrimary"
98+ android : textSize =" @dimen/secondary_font_size"
99+ app : chipBackgroundColor =" @color/defaultBrand"
100+ app : chipEndPadding =" @dimen/spacer_1x"
101+ app : chipMinHeight =" 0dp"
102+ app : chipStartPadding =" @dimen/spacer_1x"
103+ app : chipStrokeColor =" @android:color/transparent"
104+ app : chipStrokeWidth =" 1dp"
105+ app : ensureMinTouchTargetSize =" false"
106+ app : textEndPadding =" 0dp"
107+ app : textStartPadding =" 0dp"
108+ tools : maxLength =" 50"
109+ tools : text =" @tools:sample/lorem/random" />
63110
64- < ImageView
65- android : id =" @+id/custom_checkbox "
66- android : layout_width =" wrap_content"
67- android : layout_height =" match_parent "
68- android : layout_gravity =" top "
69- android : clickable = " false "
70- android : contentDescription =" @null "
71- android : focusable = " false "
72- android : paddingStart = " @dimen/spacer_1x "
73- android : paddingEnd = " @dimen/spacer_1x "
74- android : src = " @drawable/ic_checkbox_blank_outline " / >
111+ < TextView
112+ android : id =" @+id/noteModified "
113+ android : layout_width =" wrap_content"
114+ android : layout_height =" wrap_content "
115+ android : layout_gravity =" end "
116+ android : paddingStart = " @dimen/spacer_1hx "
117+ android : paddingEnd =" @dimen/spacer_2x "
118+ tools : text = " 27.11. " />
119+
120+ </ LinearLayout >
121+ </ LinearLayout >
75122 </LinearLayout >
76- </com .google.android.material.card.MaterialCardView>
123+
124+ </com .google.android.material.card.MaterialCardView>
0 commit comments