ChaosLeung / PinView

A PIN view library for Android. Use to enter PIN/OTP/password etc.
Apache License 2.0
634 stars 121 forks source link

How to enable copy-paste option ? #31

Closed passiondroid closed 6 years ago

passiondroid commented 6 years ago

Question. Copy paste functionality not working in pinview even setting android:textIsSelectable="true" on the com.chaos.view.PinView

ChaosLeung commented 6 years ago

Because PinView is not allowed to copy and paste, this is achieved by setTextIsSelectable(false) in constructor and override the getDefaultMovementMethod().

If you really need to enable copy and paste, you can start with these.

imranhsn commented 6 years ago

Can't understand how to enable paste option. Please give me a example.