Android APIs
public class

CharacterPickerDialog

extends Dialog
implements AdapterView.OnItemClickListener View.OnClickListener
java.lang.Object
   ↳ android.app.Dialog
     ↳ android.text.method.CharacterPickerDialog

Class Overview

Dialog for choosing accented characters related to a base character.

Summary

[Expand]
Inherited Constants
From interface android.content.DialogInterface
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 parent, View view, int position, long id)
Handles clicks on the character buttons.
Protected Methods
void onCreate(Bundle savedInstanceState)
Similar to onCreate(Bundle), you should initialize your dialog in this method, including calling setContentView(View).
[Expand]
Inherited Methods
From class android.app.Dialog
From class java.lang.Object
From interface android.content.DialogInterface
From interface android.view.Window.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.View.OnCreateContextMenuListener
From interface android.widget.AdapterView.OnItemClickListener
From interface android.view.View.OnClickListener

Public Constructors

public CharacterPickerDialog (Context context, View view, Editable text, String options, boolean insert)

Added in API level 1

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

Public Methods

public void onClick (View v)

Added in API level 1

Handles clicks on the Cancel button.

Parameters
v The view that was clicked.

public void onItemClick (AdapterView parent, View view, int position, long id)

Added in API level 1

Handles clicks on the character buttons.

Protected Methods

protected void onCreate (Bundle savedInstanceState)

Added in API level 1

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

Parameters
savedInstanceState If this dialog is being reinitalized 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.