https://github.com/nukc/amountview
[Deprecated] 自定义组件:购买数量,带减少增加按钮
https://github.com/nukc/amountview
Last synced: 9 months ago
JSON representation
[Deprecated] 自定义组件:购买数量,带减少增加按钮
- Host: GitHub
- URL: https://github.com/nukc/amountview
- Owner: nukc
- License: apache-2.0
- Created: 2015-07-30T08:31:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-16T09:02:14.000Z (almost 10 years ago)
- Last Synced: 2025-03-26T13:38:37.243Z (10 months ago)
- Language: Java
- Homepage:
- Size: 111 KB
- Stars: 19
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.