Pinview
Pinview copied to clipboard
how to clear the entered text of Pinview
Same problem I'm getting. I also need onTextChangeListener in this widget
i found solution, it's working for me but first view show 0 by default.. pinViewObj.setPinViewEventListener(null); pinViewObj.setValue("0"); pinViewObj.setHint("0"); pinViewObj.setPinViewEventListener(YourActivity.this);
Looks like the fix has been merged but not yet released. For now you can use
implementation "com.github.GoodieBag:Pinview:f2e2763acc"
which is base on #7 , then you can setValue("")
i found solution, it's working for me. private void clearPinViewChild() { for (int i = 0; i < pinView.getChildCount() ; i++) { EditText child = (EditText) pinView.getChildAt(i); child.setText(""); } }
Well due to this issue. I have created my own PinView which not only able to clear the text, I made onTextChanged method also in it which is very useful. Also, I have made it using one EditText only, we don't need to use the list of EditText.
pinView.editableText.clear()