Android 12 Developer Preview is here! Try it out, and give us your feedback!

PinPicker

public class PinPicker
extends Picker

java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ androidx.leanback.widget.picker.Picker
           ↳ androidx.leanback.widget.picker.PinPicker


Picker subclass for allowing the user to enter a numerical PIN. The column count can be customized, and defaults to 4. R.attr.columnCount

Summary

Inherited constants

Inherited fields

Public constructors

PinPicker(Context context, AttributeSet attrs)
PinPicker(Context context, AttributeSet attrs, int defStyleAttr)

Public methods

boolean dispatchKeyEvent(KeyEvent event)
String getPin()

Returns the PIN that the user has entered.

boolean performClick()
void resetPin()

Resets all columns and selects the first one.

void setNumberOfColumns(int count)

Sets the number of columns for entering the PIN.

Inherited methods