亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Verzeichnis suchen
android Manifest Manifest.permission Manifest.permission_group android.accessibilityservice AccessibilityService android.accounts Account android.app NotificationManager android.bluetooth BluetoothAdapter BluetoothClass BluetoothClass.Device BluetoothClass.Device.Major BluetoothClass.Service BluetoothDevice BluetoothServerSocket BluetoothSocket android.content SharedPreferences android.database.sqlite SQLiteCursorDriver SQLiteOpenHelper android.graphics Bitmap android.location LocationListener Geocoder GpsStatus GpsStatus.Listener GpsStatus.NmeaListener GpsSatellite android.media AudioFormat AsyncPlayer AudioRecord AudioRecord.OnRecordPositionUpdateListener ThumbnailUtils AudioManager android.net TrafficStats MailTo LocalSocket android.os AsyncTask AsyncTask.Status CountDownTimer Message MessageQueue HandlerThread android.text Html android.util JsonWriter android.view ContextMenu ContextMenu.ContextMenuInfo Display ViewManager View ViewStub ViewTreeObserver ViewParent WindowManager GestureDetector Gravity MenuInflater ScaleGestureDetector SoundEffectConstants android.view.inputmethod InputConnection InputMethod InputMethodSession BaseInputConnection InputMethodManager android.widget AbsListView AbsListView.LayoutParams AbsListView.OnScrollListener AbsListView.RecyclerListener AbsoluteLayout AbsoluteLayout.LayoutParams AbsSeekBar AbsSpinner AdapterView AdapterView.AdapterContextMenuInfo AdapterView.OnItemLongClickListener AdapterView.OnItemSelectedListener AdapterView.OnItemClickListener AnalogClock BaseAdapter BaseExpandableListAdapter Button CheckBox CheckedTextView Checkable Chronometer Chronometer.OnChronometerTickListener CompoundButton CompoundButton.OnCheckedChangeListener CursorAdapter CursorTreeAdapter DatePicker DatePicker.OnDateChangedListener DialerFilter DigitalClock EditText Filter Filter.FilterListener Filter.FilterResults ExpandableListAdapter ExpandableListView.OnChildClickListener ExpandableListView.OnGroupClickListener ExpandableListView.OnGroupCollapseListener ExpandableListView.OnGroupExpandListener Filterable Gallery Gallery.LayoutParams GridView GridLayout GridLayout.Alignment RadioGroup ImageView ImageView.ScaleType HorizontalScrollView ImageButton ImageSwitcher FilterQueryProvider ListAdapter ListView MediaController MultiAutoCompleteTextView MultiAutoCompleteTextView.CommaTokenizer MultiAutoCompleteTextView.Tokenizer QuickContactBadge RadioButton RatingBar RatingBar.OnRatingBarChangeListener RelativeLayout RemoteViews ResourceCursorAdapter ResourceCursorTreeAdapter Scroller ScrollView SearchView SearchView.OnCloseListener SearchView.OnQueryTextListener SearchView.OnSuggestionListener SeekBar SeekBar.OnSeekBarChangeListener SimpleAdapter SimpleAdapter.ViewBinder SimpleCursorAdapter SimpleCursorAdapter.CursorToStringConverter SimpleCursorAdapter.ViewBinder SimpleCursorTreeAdapter SimpleCursorTreeAdapter.ViewBinder SimpleExpandableListAdapter SlidingDrawer SlidingDrawer.OnDrawerCloseListener SlidingDrawer.OnDrawerOpenListener SlidingDrawer.OnDrawerScrollListener Spinner SpinnerAdapter WrapperListAdapter TabHost TabHost.TabSpec TextView TimePicker TimePicker.OnTimeChangedListener Toast TableLayout TableLayout.LayoutParams TableRow TableRow.LayoutParams TabWidget TextSwitcher ToggleButton TwoLineListItem VideoView ViewAnimator ViewFlipper ViewSwitcher ViewSwitcher.ViewFactory ZoomButtonsController ZoomButtonsController.OnZoomListener ZoomButton ZoomControls dalvik.system DexFile
Figuren


BaseInputConnection

版本:Android 2.3 r1

?

結(jié)構(gòu)

繼承關(guān)系

public class BaseInputConnection extends Object implements InputConnection

????????

java.lang.Object

android.view.inputmethod.BaseInputConnection

?

類概述

???????? InputConnection接口實(shí)現(xiàn)的基類,注意大多數(shù)行為提供的是Editable聯(lián)接。本類的實(shí)現(xiàn)一定要實(shí)現(xiàn)getEditable()提供對(duì)它們自己的可編輯對(duì)象的訪問。

?

公共方法

public boolean beginBatchEdit ()

缺省實(shí)現(xiàn)什么也不做。

?

public boolean clearMetaKeyStates (int states)

缺省實(shí)現(xiàn)用MetaKeyKeyListener.clearMetaKeyState(long, int)來(lái)清除狀態(tài)。

參數(shù)

states ??? 要清除的狀態(tài),每個(gè)KeyEvent.getMetaState()中可能是1或個(gè)狀態(tài)。

返回值

成功返回true,輸入連接無(wú)效時(shí)返回false。

?

public boolean commitCompletion (CompletionInfo text)

缺省實(shí)現(xiàn)什么也不做。

參數(shù)

text ???????? 提交的完成。

返回值

??? ?????????????????? 成功返回true,輸入連接無(wú)效時(shí)返回false。

?

public boolean commitText (CharSequence text, int newCursorPosition)

缺省實(shí)現(xiàn)將用給出的文本替代正在構(gòu)建的文本。另外在虛擬狀態(tài)時(shí),將發(fā)送包含新文本的按鍵事件并清空可編輯控件的緩存。

參數(shù)

text ???????? 提交的文本。

newCursorPosition ???????? 文本范圍內(nèi)新光標(biāo)位置。如> 0,從文本未尾-1起計(jì)算;如<= 0,從文本起始處計(jì)算。所以是1時(shí)總是在剛插入文本之后。注意這意味著你不能將位置定義在文本中,因?yàn)榫庉嬈骺梢孕薷哪闾峤坏奈谋?,所以無(wú)必要將光標(biāo)定位在文本中。

返回值

成功返回true,輸入連接無(wú)效時(shí)返回false

?

public boolean deleteSurroundingText (int leftLength, int rightLength)

缺省實(shí)現(xiàn)將刪除當(dāng)前光標(biāo)位置附近的可編輯文本。

參數(shù)

leftLength ????? 刪除文本在當(dāng)前光標(biāo)位置前的字符數(shù)

rightLength ??? 刪除文本在當(dāng)前光標(biāo)位置后的字符數(shù)。

返回值

成功返回true,輸入連接無(wú)效時(shí)返回false。。

?

public boolean endBatchEdit ()

缺省實(shí)現(xiàn)什么也不做。

?

public boolean finishComposingText ()

缺省實(shí)現(xiàn)將用給定的文本替代正在構(gòu)建的文本。另外在虛擬狀態(tài)時(shí),將發(fā)送包含新文本的按鍵事件并清空可編輯控件的緩存。

?

public static int getComposingSpanEnd (Spannable text)

?

public static int getComposingSpanStart (Spannable text)

?

public int getCursorCapsMode (int reqModes)

缺省實(shí)現(xiàn)時(shí),由TextUtils.getCapsMode返回當(dāng)前可編輯文本的選定文本的光標(biāo)大小寫狀態(tài),虛擬狀態(tài)時(shí)總是返回0。

參數(shù)

reqModes ????? 依據(jù)TextUtils.getCapsMode定義取得期望的狀態(tài)。通過已定義的常數(shù),你可以輕易地傳遞TextBoxAttribute.contentType當(dāng)前。

返回值

返回當(dāng)前有效的大小寫狀態(tài)。

?

public Editable getEditable ()

返回編輯操作的目標(biāo)。缺省的實(shí)現(xiàn)是返回自己的虛擬可編輯控件,子類須重載一個(gè)可編輯控件并提供給它自己。

?

public ExtractedText getExtractedText (ExtractedTextRequest request, int flags)

缺省實(shí)現(xiàn)總是返回空。

參數(shù)

request ? 描述如何返回文本。

flags ?????? 額外的客戶端控制選項(xiàng),0GET_EXTRACTED_TEXT_MONITOR。

返回值

返回ExtractedText對(duì)象描述文本視窗的狀態(tài)并包含提取文本的本身。

?

public CharSequence getSelectedText (int flags)

缺省實(shí)現(xiàn)是返回當(dāng)前選擇文本,沒有選取則為空。

參數(shù)

flags ?????? 額外選項(xiàng)控制文本如何返回,可能為0GET_TEXT_WITH_STYLES

返回值

返回當(dāng)前選擇文本,沒有選取則為空。

?

public CharSequence getTextAfterCursor (int length, int flags)

缺省的實(shí)現(xiàn)是返回緩存中當(dāng)前光標(biāo)位置后給定數(shù)量的文本。

參數(shù)

length ??? 期望的文本長(zhǎng)度。

flags ?????? 如何返回文本的額外控制??赡転?/span>0GET_TEXT_WITH_STYLES

返回值

返回光標(biāo)位置后的文本,返回文本的長(zhǎng)度可能小于n。

?

public CharSequence getTextBeforeCursor (int length, int flags)

缺省的實(shí)現(xiàn)是返回緩存中當(dāng)前光標(biāo)位置前給定數(shù)量的文本。

參數(shù)

length ??? 期望的文本長(zhǎng)度。

flags ?????? 如何返回文本的額外控制??赡転?/span>0GET_TEXT_WITH_STYLES

返回值

返回光標(biāo)位置前的文本,返回文本的長(zhǎng)度可能小于n

?

public boolean performContextMenuAction (int id)

缺省實(shí)現(xiàn)是什么也不做。

?

public boolean performEditorAction (int actionCode)

缺省實(shí)現(xiàn)將其發(fā)送至返回鍵(enter key)。

參數(shù)

actionCode ??? 必須是EditorInfo.editorType中一常量之一,如EditorInfo.EDITOR_ACTION_GO。

返回值

成功返回true,輸入連接無(wú)效時(shí)返回false。

?

public boolean performPrivateCommand (String action, Bundle data)

缺省實(shí)現(xiàn)是什么也不做。

參數(shù)

action ???? 執(zhí)行的命令名稱。必須是作用域的名稱(譯者注:帶包名,如”com.test.Command”),如以你自己的包名稱前綴,這樣不同的開發(fā)者就不會(huì)創(chuàng)建產(chǎn)生沖突的命令。

data ??????? 命令中的數(shù)據(jù)。

返回值

命令發(fā)送返回true(無(wú)論相關(guān)的編輯器是否理解它),如輸入連接無(wú)效返回false。

?

public static final void removeComposingSpans (Spannable text)

?

public boolean reportFullscreenMode (boolean enabled)

以當(dāng)前的全屏模式更新InputMethodManager。

?

public boolean sendKeyEvent (KeyEvent event)

提供窗口附屬輸入連接視窗的發(fā)送按鍵事件的標(biāo)準(zhǔn)實(shí)現(xiàn)。

參數(shù)

event ????? 按鍵事件。

返回值

成功返回true,輸入連接無(wú)效時(shí)返回false

?

public boolean setComposingRegion (int start, int end)

將特定區(qū)域標(biāo)記為正在構(gòu)建文本。任何以前設(shè)置的正在構(gòu)建文本自動(dòng)清除。正在構(gòu)建文本應(yīng)用缺省樣式。

參數(shù)

start ?????? 文本中正在構(gòu)建區(qū)域開始位置。

end ???????? 文本中正在構(gòu)建區(qū)域結(jié)束位置。

返回值

成功返回true,輸入連接無(wú)效時(shí)返回false。

?

public static void setComposingSpans (Spannable text)

?

public boolean setComposingText (CharSequence text, int newCursorPosition).

缺省實(shí)現(xiàn)是將給定文本置入可編輯文本,替代任何正在構(gòu)建文本。新文本標(biāo)記為正在構(gòu)建文本并應(yīng)用構(gòu)建樣式。

參數(shù)

text ???????? 正在構(gòu)建文本,如必要應(yīng)用樣式。如文本無(wú)附屬樣式,將正在構(gòu)建文本應(yīng)用缺省樣式。參見how to attach style object to the text{#link android.text.SpannableString} {#link android.text.SpannableStringBuilder}是實(shí)現(xiàn)的接口。

newCursorPosition ???????? 文本范圍內(nèi)新光標(biāo)位置。如> 0,從文本未尾-1起計(jì)算;如<= 0,從文本起始處計(jì)算。所以是1時(shí)總是在剛插入文本之后。注意這意味著你不能將位置定義在文本中,因?yàn)榫庉嬈骺梢孕薷哪闾峤坏奈谋荆詿o(wú)必要將光標(biāo)定位在文本中。

返回值

成功返回true,輸入連接無(wú)效時(shí)返回false。

?

public boolean setSelection (int start, int end)

缺省實(shí)現(xiàn)是在當(dāng)前可編輯文本中改變選取的位置。

返回值

成功返回true,輸入連接無(wú)效時(shí)返回false。

?

補(bǔ)充

文章鏈接

???????? Android全屏繪制

???????? 全屏手寫輸入的筆跡獲取

???????? 手寫輸入法實(shí)現(xiàn)過程中的問題


Vorheriger Artikel: N?chster Artikel: