File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed
java/io/snabble/sdk/ui/cart Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ allprojects {
2424 }
2525
2626 project. ext {
27- sdkVersion= ' 0.8.12 '
27+ sdkVersion= ' 0.8.13 '
2828 versionCode= 1
2929
3030 compileSdkVersion= 28
Original file line number Diff line number Diff line change @@ -151,6 +151,17 @@ public void click() {
151151 }
152152 });
153153
154+ View scanProducts = findViewById (R .id .scan_products );
155+ scanProducts .setOnClickListener (new OnClickListener () {
156+ @ Override
157+ public void onClick (View view ) {
158+ SnabbleUICallback callback = SnabbleUI .getUiCallback ();
159+ if (callback != null ) {
160+ callback .showScannerWithCode (null );
161+ }
162+ }
163+ });
164+
154165 createItemTouchHelper ();
155166
156167 SnabbleSdk sdkInstance = SnabbleUI .getSdkInstance ();
Original file line number Diff line number Diff line change 5454 android : layout_width =" 304dp"
5555 android : layout_height =" wrap_content"
5656 android : gravity =" center"
57+ android : layout_marginBottom =" 8dp"
5758 android : text =" @string/Snabble.Shoppingcart.emptyState.description" />
59+
60+ <TextView
61+ android : id =" @+id/scan_products"
62+ android : layout_width =" wrap_content"
63+ android : layout_height =" wrap_content"
64+ android : gravity =" center"
65+ android : textColor =" @color/snabble_textColorAction"
66+ android : textSize =" 15sp"
67+ android : padding =" 16dp"
68+ android : background =" ?attr/selectableItemBackground"
69+ android : text =" @string/Snabble.Shoppingcart.emptyState.buttonTitle" />
5870 </LinearLayout >
5971</FrameLayout >
You can’t perform that action at this time.
0 commit comments