ui / com.schibsted.account.ui.ui.component / CustomEditText

CustomEditText

class CustomEditText : AppCompatEditText

This class extends the basic EditText and provides a custom InputConnection. The custom InputConnection dispatches a key event when the delete key is pressed with a soft keyboard The default EditText doesn't dispatch the delete key event after API 16, that is not considered as a bug https://developer.android.com/reference/android/view/KeyEvent.html

Types

KeyEventListener

interface KeyEventListener

Constructors

<init>

CustomEditText(context: Context?, attrs: AttributeSet?)

This class extends the basic EditText and provides a custom InputConnection. The custom InputConnection dispatches a key event when the delete key is pressed with a soft keyboard The default EditText doesn't dispatch the delete key event after API 16, that is not considered as a bug https://developer.android.com/reference/android/view/KeyEvent.html

Properties

keyEventListener

var keyEventListener: CustomEditText.KeyEventListener?

Functions

onCreateInputConnection

fun onCreateInputConnection(outAttrs: EditorInfo): InputConnection