共用方式為


BaseMovementMethod.OnKeyDown(TextView, ISpannable, Keycode, KeyEvent) 方法

定義

[Android.Runtime.Register("onKeyDown", "(Landroid/widget/TextView;Landroid/text/Spannable;ILandroid/view/KeyEvent;)Z", "GetOnKeyDown_Landroid_widget_TextView_Landroid_text_Spannable_ILandroid_view_KeyEvent_Handler")]
public virtual bool OnKeyDown (Android.Widget.TextView? widget, Android.Text.ISpannable? text, Android.Views.Keycode keyCode, Android.Views.KeyEvent? e);
[<Android.Runtime.Register("onKeyDown", "(Landroid/widget/TextView;Landroid/text/Spannable;ILandroid/view/KeyEvent;)Z", "GetOnKeyDown_Landroid_widget_TextView_Landroid_text_Spannable_ILandroid_view_KeyEvent_Handler")>]
abstract member OnKeyDown : Android.Widget.TextView * Android.Text.ISpannable * Android.Views.Keycode * Android.Views.KeyEvent -> bool
override this.OnKeyDown : Android.Widget.TextView * Android.Text.ISpannable * Android.Views.Keycode * Android.Views.KeyEvent -> bool

參數

widget
TextView
text
ISpannable
keyCode
Keycode

傳回

實作

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於