An open API service indexing awesome lists of open source software.

https://github.com/nukc/amountview

[Deprecated] 自定义组件:购买数量,带减少增加按钮
https://github.com/nukc/amountview

Last synced: 9 months ago
JSON representation

[Deprecated] 自定义组件:购买数量,带减少增加按钮

Awesome Lists containing this project

README

          

# AmountView
自定义组件:购买数量,带减少增加按钮。 API >= 8

##用法

1. 导入库:

``` compile 'com.github.nukc.amountview:library:1.0' ```

2. 在你的 layout 里添加 LoadMoreLayout 控件:

```xml

```

3. 引用控件和设置:

```java
AmountView mAmountView = (AmountView) findViewById(R.id.amountView);
mAmountView.setGoods_storage(10); //设置库存数量
mAmountView.setListener(new AmountView.OnAmountChangeListener() {
@Override
public void onAmountChange(View view, int amount) {
//do something
}
});
```


## Custom Attribute

```xml












```

## License

Copyright 2015, nukc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.