Most visited

Recently visited

Added in API level 1

CharacterPickerDialog

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

java.lang.Object
   ↳ android.app.Dialog
     ↳ android.text.method.CharacterPickerDialog


用于选择与基本字符相关的重音字符的对话框。

Summary

Inherited constants

From interface android.content.DialogInterface

Public constructors

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

创建一个新的CharacterPickerDialog,它将指定的 options用于插入或替换(取决于 insert )为 text

Public methods

void onClick(View v)

处理单击取消按钮。

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

处理点击字符按钮。

Protected methods

void onCreate(Bundle savedInstanceState)

onCreate(Bundle)类似,您应该使用此方法初始化对话框,其中包括调用 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)

创建一个新的CharacterPickerDialog,它将指定的 options用于插入或替换(取决于 insert )为 text

Parameters
context Context
view View
text Editable
options String
insert boolean

Public methods

onClick

Added in API level 1
void onClick (View v)

处理单击取消按钮。

Parameters
v View: The view that was clicked.

onItemClick

Added in API level 1
void onItemClick (AdapterView parent, 
                View view, 
                int position, 
                long id)

处理点击字符按钮。

Parameters
parent AdapterView
view View
position int
id long

Protected methods

onCreate

Added in API level 1
void onCreate (Bundle savedInstanceState)

onCreate(Bundle)类似,您应该使用此方法初始化对话框,其中包括调用 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.

Hooray!