wuhenzhizao / Android Sku
🔥 Android Sku属性选择器, 类似于淘宝,天猫,京东,支持MVVM,直接使用
Stars: ✭ 500
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Android Sku
reselect-utils
A collection of helpers and utilities for selectors
Stars: ✭ 16 (-96.8%)
Mutual labels: selector
Backgroundlibrary
A framework for directly generating shape through Tags, no need to write shape.xml again(通过标签直接生成shape,无需再写shape.xml)
Stars: ✭ 3,179 (+535.8%)
Mutual labels: selector
Memoize State
The magic memoization for the State management. ✨🧠
Stars: ✭ 305 (-39%)
Mutual labels: selector
country-region-dropdown-menu
A dropdown menu created with javascript that allows user to implement country-region dropdown list effortlessly.
Stars: ✭ 41 (-91.8%)
Mutual labels: selector
Vue Select
Everything you wish the HTML <select> element could do, wrapped up into a lightweight, extensible Vue component.
Stars: ✭ 4,115 (+723%)
Mutual labels: selector
Actionkit
Easy, closure-based Swift methods for working with interactive UIKit elements.
Stars: ✭ 255 (-49%)
Mutual labels: selector
Styled Components Theme
Defines themes via flexible color selectors for use with styled-components
Stars: ✭ 302 (-39.6%)
Mutual labels: selector
cra-redux-boilerplate
⚛️🔨create-react-app application with redux and another cool libraries to make your life easier.
Stars: ✭ 15 (-97%)
Mutual labels: selector
k-redux-factory
Factory of Redux reducers and their associated actions and selectors.
Stars: ✭ 18 (-96.4%)
Mutual labels: selector
BehaviourTree-ai
基于ecs-framework开发的AI(BehaviourTree、UtilityAI、FSM)系统。适用于egret/laya/cocos
Stars: ✭ 63 (-87.4%)
Mutual labels: selector
Reactionbutton
Since Facebook introduced reactions in 2016, it became a standard in several applications as a way for users to interact with content. ReactionButton is a control that allows developers to add this functionality to their apps in an easy way.
Stars: ✭ 305 (-39%)
Mutual labels: selector
Redux Orm
A small, simple and immutable ORM to manage relational data in your Redux store.
Stars: ✭ 2,922 (+484.4%)
Mutual labels: selector
Scrapple
A framework for creating semi-automatic web content extractors
Stars: ✭ 464 (-7.2%)
Mutual labels: selector
Rtextview
基于TextView 1.直接设置selector背景2.直接设置drawableLeft大小 3.圆角,圆形,背景/边框/文字根据状态变色
Stars: ✭ 359 (-28.2%)
Mutual labels: selector
Flutter photo
Pick image/video from album by flutter. Support ios and android. UI by flutter, no native.
Stars: ✭ 285 (-43%)
Mutual labels: selector
Sku
Android Sku选择器, 类似于淘宝,天猫,京东,支持多维属性,购物车动画,支持MVVM架构,可以直接使用
功能描述
- 支持多维属性,库存为空判断;
- 支持设置选中指定的sku;
- 支持手动输入数量;
添加依赖
buildscript {
allprojects {
repositories {
jcenter()
}
}
}
dependencies {
compile 'com.wuhenzhizao:sku:1.0.4'
}
绑定数据
SkuSelectScrollView.setSkuList(List<Sku> skuList);
设置选中的sku(一个sku时,默认选中)
SkuSelectScrollView.setSelectedSku(Sku sku);
设置监听
SkuSelectScrollView.setListener(new OnSkuListener() {
/**
* 属性取消选中
*
* @param unselectedAttribute
*/
public void onUnselected(SkuAttribute unselectedAttribute) {}
/**
* 属性选中
*
* @param selectAttribute
*/
public void onSelect(SkuAttribute selectAttribute) {}
/**
* sku选中
*
* @param sku
*/
public void onSkuSelected(Sku sku) {});
使用MVVM架构
组件提供SkuViewDelegate来对MVVM模式下的交互进行支持
<SkuSelectScrollView
xmlns:sku="http://schemas.android.com/apk/res-auto"
android:id="@+id/sku_databinding"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
sku:skuList="@{vm.skuList}"
sku:skuViewDelegate="@{vm.delegate}" />
技术交流
QQ交流群 |
---|
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].