wuhenzhizao / android-sku Goto Github PK
View Code? Open in Web Editor NEW🔥 Android Sku属性选择器, 类似于淘宝,天猫,京东,支持MVVM,直接使用
🔥 Android Sku属性选择器, 类似于淘宝,天猫,京东,支持MVVM,直接使用
android.content.res.Resources$NotFoundException: Unable to find resource ID #0x8
at android.content.res.ResourcesImpl.getResourceEntryName(ResourcesImpl.java:273)
at android.content.res.Resources.getResourceEntryName(Resources.java:2005)
at com.wuhenzhizao.sku.view.SkuItemLayout$ItemClickListener.onClick(Unknown Source:0)
at android.view.View.performClick(View.java:6266)
at android.view.View$PerformClick.run(View.java:24730)
at android.os.Handler.handleCallback(Handler.java:793)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6701)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:249)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)
现在默认应该是sku列表第一就显示在第一
比如 第一个红色 XL 第二个 黄色 S 第三个 黑色 L
那排序就是XL S L 这样看起来很乱
可以改成S L XL这样吗?
My account was compromised, as a result many spam issues got created across multiple repos. I am deleting all such issues. Please check my tweet: https://x.com/arghyac35/status/1729721954909684064?s=20
可以看下京东的
sellingPrice是long,在实际开发中sellingPrice是double的。无法转换。这么脑残的设计,不知道怎么想的
string中,最后增加一个
{
"id": "19",
"itemId": "102",
"mainImage": "https: //img.alicdn.com/imgextra/i3/1754317604/TB2GDbcmgoQMeJjy1XaXXcSsFXa_!!1754317604.jpg",
"originPrice": 222,
"sellingPrice": 333,
"stockQuantity": 444,
"attributes": [
{
"key": "颜色",
"value": "嘿嘿嘿"
},
{
"key": "尺码",
"value": "SSSSSSSS"
}
]
}
默认情况下,嘿嘿嘿和SSSSSSS都是自灰,其他属性和这两个没有交集,就永远无法选中。
请问0.05怎么转成long?
eg:颜色:红褐色 重量:25g
颜色:黄色 重量:1kg
当选中第一个Sku时,无法点击选中第二个Sku,需要先把当前选中去掉才能点击,如何做到点击就切换呢
不得小于一,不得大于当前库存
在碰到attributes里属性排序不一样的情况下怎么解决,例如第一组key::颜色 --大小--体积 第二组 key:大小---体积---颜色
比如sku只有一种的时候,列表是空的,
颜色:均色
因为可能有一分钱的东西 long类型除出来就有问题了
private long originPrice;
private long sellingPrice;
例如:颜色 红色
只有一组的话 什么都没有,显示不出来
针对大神的demo。操作步骤:1、点击选择sku;2、点击购买数量编辑框,这时候编辑框不被软键盘所遮挡正常;3、收起软键盘,再次点击购买数量编辑框,这时候编辑框被软键盘遮挡了,有问题。
机型:小米4c;系统:6.0.1;MIUI 9.7.10.12 开发板
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.