11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <RelativeLayout
3- xmlns : android =" http://schemas.android.com/apk/res/android"
2+ <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
43 xmlns : app =" http://schemas.android.com/apk/res-auto"
54 xmlns : tools =" http://schemas.android.com/tools"
65 android : layout_width =" match_parent"
2221 android : layout_width =" 44dp"
2322 android : layout_height =" 44dp"
2423 android : layout_marginEnd =" 8dp"
24+ android : importantForAccessibility =" no"
2525 android : visibility =" gone"
2626 app : shapeAppearanceOverlay =" @style/Snabble.ShapeAppearanceOverlay.RoundedCorners"
2727 tools : background =" #ccc"
28- tools : visibility =" visible"
29- android : importantForAccessibility =" no" />
28+ tools : visibility =" visible" />
3029
3130 <androidx .appcompat.widget.AppCompatTextView
3231 android : id =" @+id/red_label"
3332 android : layout_width =" 20sp"
3433 android : layout_height =" 18sp"
35- android : background =" @drawable/snabble_ic_round_textview"
3634 android : layout_marginEnd =" 8dp"
35+ android : background =" @drawable/snabble_ic_round_textview"
36+ android : gravity =" center"
3737 android : text =" %"
3838 android : textColor =" #ffffff"
39- android : gravity =" center"
4039 app : backgroundTint =" #ff0000"
4140 tools : ignore =" HardcodedText" />
41+
4242 </FrameLayout >
4343
4444 <LinearLayout
6464 android : id =" @+id/price_container"
6565 android : layout_width =" wrap_content"
6666 android : layout_height =" wrap_content"
67- android : layout_marginEnd =" 8dp"
6867 android : layout_marginTop =" 4dp"
68+ android : layout_marginEnd =" 8dp"
6969 android : orientation =" horizontal" >
7070
7171 <TextView
7474 android : layout_height =" wrap_content"
7575 android : textAppearance =" ?attr/textAppearanceBodySmall"
7676 tools : text =" 26,98 €" />
77+
7778 </LinearLayout >
79+
7880 </LinearLayout >
7981
8082 <FrameLayout
9092 android : layout_height =" 38dp"
9193 android : orientation =" horizontal" >
9294
93- <FrameLayout
95+ <com .google.android.material.button.MaterialButton
96+ android : id =" @+id/minus"
97+ style =" @style/Snabble.Widget.MaterialComponents.Button.OutlinedButton.Icon"
9498 android : layout_width =" 36dp"
95- android : layout_height =" 36dp" >
96- <ImageView
97- android : layout_width =" wrap_content"
98- android : layout_height =" wrap_content"
99- android : layout_gravity =" center"
100- android : src =" @drawable/snabble_ic_minus"
101- app : tint =" ?attr/colorOnSurface"
102- android : importantForAccessibility =" no" />
99+ android : layout_height =" 36dp"
100+ android : contentDescription =" @string/Snabble.Shoppingcart.Accessibility.decreaseQuantity"
101+ app : icon =" @drawable/snabble_ic_minus"
102+ app : iconGravity =" textStart"
103+ app : iconTint =" ?attr/colorOnSurface"
104+ app : strokeColor =" @drawable/snabble_stroke" />
103105
104- <com .google.android.material.button.MaterialButton
105- android : id =" @+id/minus"
106- style =" @style/Snabble.Widget.MaterialComponents.Button.OutlinedButton.Icon"
107- android : layout_width =" 36dp"
108- android : layout_height =" 36dp"
109- android : contentDescription =" @string/Snabble.Shoppingcart.Accessibility.decreaseQuantity"
110- app : strokeColor =" @drawable/snabble_stroke" />
111- </FrameLayout >
112106 <TextView
113107 android : id =" @+id/quantity"
114108 android : layout_width =" wrap_content"
120114 android : textAppearance =" ?attr/textAppearanceBodyLarge"
121115 tools : text =" 3" />
122116
123- <FrameLayout
117+ <com .google.android.material.button.MaterialButton
118+ android : id =" @+id/plus"
119+ style =" @style/Snabble.Widget.MaterialComponents.Button.OutlinedButton.Icon"
124120 android : layout_width =" 36dp"
125- android : layout_height =" 36dp" >
126- <ImageView
127- android : layout_width =" wrap_content"
128- android : layout_height =" wrap_content"
129- android : layout_gravity =" center"
130- android : src =" @drawable/snabble_ic_add"
131- app : tint =" ?attr/colorOnSurface"
132- android : importantForAccessibility =" no" />
121+ android : layout_height =" 36dp"
122+ android : contentDescription =" @string/Snabble.Shoppingcart.Accessibility.increaseQuantity"
123+ app : icon =" @drawable/snabble_ic_add"
124+ app : iconGravity =" textStart"
125+ app : iconTint =" ?attr/colorOnSurface"
126+ app : strokeColor =" @drawable/snabble_stroke" />
133127
134- <com .google.android.material.button.MaterialButton
135- android : id =" @+id/plus"
136- style =" @style/Snabble.Widget.MaterialComponents.Button.OutlinedButton.Icon"
137- android : layout_width =" 36dp"
138- android : layout_height =" 36dp"
139- app : strokeColor =" @drawable/snabble_stroke"
140- android : contentDescription =" @string/Snabble.Shoppingcart.Accessibility.increaseQuantity" />
141- </FrameLayout >
142128 </LinearLayout >
143129
144130 <LinearLayout
169155 android : focusable =" true"
170156 android : focusableInTouchMode =" true"
171157 android : gravity =" right|center_vertical"
158+ android : hint =" @string/Snabble.Shoppingcart.Accessibility.quantity"
172159 android : imeOptions =" actionDone"
173160 android : inputType =" number"
174161 android : paddingHorizontal =" 12dp"
175- android : hint =" @string/Snabble.Shoppingcart.Accessibility.quantity"
176162 android : textAppearance =" ?attr/textAppearanceBodyMedium"
177163 tools : text =" 1" />
178164
190176
191177 <FrameLayout
192178 android : id =" @+id/quantity_edit_apply_layout"
193- android : layout_gravity =" center_vertical"
194179 android : layout_width =" 36dp"
195- android : layout_height =" 36dp" >
180+ android : layout_height =" 36dp"
181+ android : layout_gravity =" center_vertical" >
196182
197183 <com .google.android.material.button.MaterialButton
198184 android : id =" @+id/quantity_edit_apply"
210196 android : focusable =" false"
211197 android : src =" @drawable/snabble_ic_check_white"
212198 app : tint =" ?attr/colorOnPrimary" />
199+
213200 </FrameLayout >
201+
214202 </LinearLayout >
203+
215204 </FrameLayout >
216- </RelativeLayout >
205+
206+ </RelativeLayout >
0 commit comments