Added in API level 1

CharacterPickerDialog


open class CharacterPickerDialog : Dialog, AdapterView.OnItemClickListener, View.OnClickListener
kotlin.Any
   ↳ android.app.Dialog
   ↳ android.text.method.CharacterPickerDialog

Dialog for choosing accented characters related to a base character.

Summary

Inherited constants
Public constructors
CharacterPickerDialog(context: Context!, view: View!, text: Editable!, options: String!, insert: Boolean)

Creates a new CharacterPickerDialog that presents the specified options for insertion or replacement (depending on the sense of insert) into text.

Public methods
open Unit

Handles clicks on the Cancel button.

open Unit
onItemClick(parent: AdapterView<Adapter!>!, view: View!, position: Int, id: Long)

Handles clicks on the character buttons.

Protected methods
open Unit
onCreate(savedInstanceState: Bundle!)

Inherited functions

Public constructors

CharacterPickerDialog

Added in API level 1
CharacterPickerDialog(
    context: Context!,
    view: View!,
    text: Editable!,
    options: String!,
    insert: Boolean)

Creates a new CharacterPickerDialog that presents the specified options for insertion or replacement (depending on the sense of insert) into text.

Public methods

onClick

Added in API level 1
open fun onClick(v: View!): Unit

Handles clicks on the Cancel button.

Parameters
v View!: The view that was clicked.

onItemClick

Added in API level 1
open fun onItemClick(
    parent: AdapterView<Adapter!>!,
    view: View!,
    position: Int,
    id: Long
): Unit

Handles clicks on the character buttons.

Parameters
parent AdapterView<Adapter!>!: The AdapterView where the click happened.
view View!: The view within the AdapterView that was clicked (this will be a view provided by the adapter)
position Int: The position of the view in the adapter.
id Long: The row id of the item that was clicked.

Protected methods

onCreate

Added in API level 1
protected open fun onCreate(savedInstanceState: Bundle!): Unit
Parameters
savedInstanceState Bundle!: If this dialog is being reinitialized after a the hosting activity was previously shut down, holds the result from the most recent call to onSaveInstanceState, or null if this is the first time.