How to create a negative NumberPicker

前端 未结 4 787
花落未央
花落未央 2020-12-11 03:35

Does anyone know of an easy way to allow negative numbers with Android\'s default numberpicker? I understand that it\'s the InputFilter that disallows this, but is there an

4条回答
  •  鱼传尺愫
    2020-12-11 04:00

    Here is the example which you are looking for.

    private static final int DEFAULT_MAX = 200;
    private static final int DEFAULT_MIN = 0;// change this acc to your requirement
    

提交回复
热议问题