CharacterPickerDialog


public class CharacterPickerDialog
extends Dialog implements AdapterView.OnItemClickListener, View.OnClickListener

java.lang.Object
   ↳ 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, Editable text, String options, boolean insert)

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

Public methods

void onClick(View v)

Handles clicks on the Cancel button.

void onItemClick(AdapterView<T extends Adapter> parent, View view, int position, long id)

Handles clicks on the character buttons.

Protected methods

void onCreate(Bundle savedInstanceState)

Similar to Activity#onCreate, you should initialize your dialog in this method, including calling setContentView(View).

Inherited methods

Public constructors

CharacterPickerDialog

Added in API level 1
public CharacterPickerDialog (Context context, 
                View view, 
                Editable text, 
                String options, 
                boolean insert)

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

Parameters
context Context

view View

text Editable

options String

insert boolean

Public methods

onClick

Added in API level 1
public void onClick (View v)

Handles clicks on the Cancel button.

Parameters
v View: The view that was clicked.

onItemClick

Added in API level 1
public void onItemClick (AdapterView<T extends Adapter> parent, 
                View view, 
                int position, 
                long id)

Handles clicks on the character buttons.

Parameters
parent AdapterView

view View

position int

id long

Protected methods

onCreate

Added in API level 1
protected void onCreate (Bundle savedInstanceState)

Similar to Activity#onCreate, you should initialize your dialog in this method, including calling setContentView(View).

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 Dialog.onSaveInstanceState(), or null if this is the first time.