Getting a NumberFormatException from a numerical EditText field

前端 未结 7 829
长情又很酷
长情又很酷 2021-01-25 12:16

I\'m trying to create a for-loop to add views to a layout. The for-loop is working fine (I tried it with initialized variables) but I need to get an in

7条回答
  •  梦毁少年i
    2021-01-25 12:48

    I think initial Edit text will be empty so "" (blank is not a valid input) is thowing error you should fill the data in Edit text and then on click on any event you should do the parsing work....

提交回复
热议问题