ShoppingCarBestImplementation
Android 购物车的最佳实现(通过ExpandableListView实现分店铺),主要功能包括:单选、全选、合计、删除、商品数量的加减,为了方便测试又新增了刷新数据功能。博客地址:https://blog.csdn.net/qq941263013/article/details/80901277
Install / Use
/learn @wangyang0313/ShoppingCarBestImplementationREADME
ShoppingCarBestImplementation
<body spellcheck="0" class="editMode htmledit_views">Android 购物车的最佳实现(通过ExpandableListView实现分店铺),主要功能包括:单选、全选、合计、删除、商品数量的加减,为了方便测试又新增了刷新数据功能。<br>项目博客地址:https://blog.csdn.net/qq941263013/article/details/80901277<br>个人博客地址:https://blog.csdn.net/qq941263013<br>GIF效果图:<br><img src="https://github.com/wangyang0313/ShoppingCarBestImplementation/blob/master/app/gif.gif" _xhe_src="https://github.com/wangyang0313/ShoppingCarBestImplementation/blob/master/app/gif.gif"><br><br>简单说明(详细描述见博客、源码):<br> 1.页面布局文件:实际开发中,如果遇到ScrollView嵌套ExpandableListView控件,可以使用自定义控件ExpandableListViewForScrollView解决ScrollView嵌套ExpandableListView,ExpandableListView显示不全的问题。(地址:https://blog.csdn.net/qq941263013/article/details/80655909)<br> 2.初始化数据(含Bean类):在bean类的DatasBean中新增了isSelect_shop属性,用来判断店铺是否被选中;在GoodsBean中新增了isSelect属性,用来判断商品是否被选中。<br> 3.初始化ExpandableListView:使用的是ExpandableListView,所以adapter继承BaseExpandableListAdapter,并实现其未实现的方法。<br> 4.初始化ExpandableListView的数据:初始化了ExpandableListView的数据,并保证数据刷新时,页面保持当前位置。同时也使ExpandableListView的所有组展开,并点击无效果。</body>Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
