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+ <androidx .appcompat.widget.AppCompatImageView
62+ android : id =" @+id/noteStatus"
63+ android : layout_width =" wrap_content"
64+ android : layout_height =" wrap_content"
65+ android : layout_gravity =" center_vertical|end"
66+ android : layout_marginTop =" 12dp"
67+ android : layout_marginEnd =" 4dp"
68+ android : baseline =" 14dp"
69+ app : srcCompat =" @drawable/ic_sync_blue_18dp" />
70+ </FrameLayout >
71+
72+ <LinearLayout
73+ android : layout_width =" match_parent"
4174 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 >
75+ android : layout_marginTop =" @dimen/spacer_2x"
76+ android : orientation =" vertical" >
4877
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" />
78+ <com .google.android.material.chip.Chip
79+ android : id =" @+id/noteCategory"
80+ android : layout_width =" wrap_content"
81+ android : layout_height =" wrap_content"
82+ android : layout_gravity =" end"
83+ android : layout_marginStart =" 0dp"
84+ android : layout_marginEnd =" @dimen/spacer_2x"
85+ android : ellipsize =" middle"
86+ android : padding =" @dimen/spacer_1hx"
87+ android : textColor =" ?android:textColorPrimary"
88+ android : textSize =" @dimen/secondary_font_size"
89+ app : chipBackgroundColor =" @color/defaultBrand"
90+ app : chipEndPadding =" @dimen/spacer_1x"
91+ app : chipMinHeight =" 0dp"
92+ app : chipStartPadding =" @dimen/spacer_1x"
93+ app : chipStrokeColor =" @android:color/transparent"
94+ app : chipStrokeWidth =" 1dp"
95+ app : ensureMinTouchTargetSize =" false"
96+ app : textEndPadding =" 0dp"
97+ app : textStartPadding =" 0dp"
98+ tools : maxLength =" 50"
99+ tools : text =" @tools:sample/lorem/random" />
63100
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" />
101+ <TextView
102+ android : id =" @+id/noteModified"
103+ android : layout_width =" wrap_content"
104+ android : layout_height =" wrap_content"
105+ android : layout_gravity =" end"
106+ android : paddingStart =" @dimen/spacer_1hx"
107+ android : paddingEnd =" @dimen/spacer_2x"
108+ tools : text =" 27.11." />
109+
110+ </LinearLayout >
111+
112+ <ImageView
113+ android : id =" @+id/custom_checkbox"
114+ android : layout_width =" wrap_content"
115+ android : layout_height =" match_parent"
116+ android : layout_gravity =" top"
117+ android : clickable =" false"
118+ android : contentDescription =" @null"
119+ android : focusable =" false"
120+ android : paddingStart =" @dimen/spacer_1x"
121+ android : paddingEnd =" @dimen/spacer_1x"
122+ android : src =" @drawable/ic_checkbox_blank_outline" />
123+ </LinearLayout >
75124 </LinearLayout >
76- </com .google.android.material.card.MaterialCardView>
125+
126+ </com .google.android.material.card.MaterialCardView>
0 commit comments