- 可以设置最大数量、当前数量、最小限制数量、最大限制数量
- 可以设置是否通过键盘输入数量
- 可以设置数量超过限制的回调
- 可以设置按钮、输入框、分割线等样式
<attr name="editable" format="boolean" />
<attr name="defaultNumber" format="integer" />
<attr name="borderDrawable" format="reference" />
<attr name="dividerDrawable" format="reference" />
<attr name="buttonLeftDrawable" format="reference" />
<attr name="buttonRightDrawable" format="reference" />
<attr name="buttonWidth" format="dimension" />
<attr name="buttonTextSize" format="dimension" />
<attr name="buttonLeftNormalTextColor" format="color" />
<attr name="buttonLeftDisableTextColor" format="color" />
<attr name="buttonRightNormalTextColor" format="color" />
<attr name="buttonRightDisableTextColor" format="color" />
<attr name="numberWidth" format="dimension" />
<attr name="numberTextSize" format="dimension" />
<attr name="numberTextColor" format="color" />
Adapted from https://github.com/qinci/NumberButton
Copyright 2019 贵州穿青人@李玉江
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.