Skip to content

Most visited

Recently visited

navigation

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

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).

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

CharacterPickerDialog

added in API level 1
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
void onClick (View v)

Handles clicks on the Cancel button.

Parameters
v View: The view that was clicked.

onItemClick

added in API level 1
void onItemClick (AdapterView 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
void onCreate (Bundle savedInstanceState)

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

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)