Skip to content
Keval Patel edited this page Apr 19, 2017 · 1 revision

What is key?

  • Key is the small button in the PinView. Those keys togeather as a numeric keyboard to enter the PIN code in the PinView.
  • The shape and theme of the key are customizable. You can use a different shape of the key provided in SDK or you can create your own shape for the key.

How to set up?

  • You have to set the key before initializing the PinView. The best place to set key is the onCreate() of your activity or onCreateView() of your fragment.
  • Here is the simplest to set the key.
@Override
protected void onCreate(Bundle savedInstanceState) {
    //...
    //...

    //Build the desired key shape and pass the theme parameters.
    //REQUIRED
    mPinView.setKey(...)
}

Next: