material-code-input icon indicating copy to clipboard operation
material-code-input copied to clipboard

Programmatically input into material-code-input

Open yccheok opened this issue 6 years ago • 0 comments

Thank you for creating this library.

As I would like to integrate material-code-input with https://github.com/omadahealth/LolliPin

I try to programmatically input into material-code-input, using codeInput.setCode.

Says, I want to input "1", followed by "2".

I try to call

codeInput.setCode("1")

Then, I try to call

codeInput.setCode("2")

The end result looks like

2018-06-25 15_44_18-android emulator - copy_of_nexus_5_api_25_5554

Then, I try another approach. I first call codeInput.setCode("1"), then followed by codeInput.setCode("12"), then end result looks like

2018-06-25 15_45_52-android emulator - copy_of_nexus_5_api_25_5554

May I know, is programmatically input supported by android-otpview-pinview?

yccheok avatar Jun 25 '18 08:06 yccheok