語言

View.DispatchUnhandledMove(View, FocusSearchDirection) 方法

定義

此方法是焦點視圖及其祖先對箭頭鍵做出反應的最後機會。

[Android.Runtime.Register("dispatchUnhandledMove", "(Landroid/view/View;I)Z", "GetDispatchUnhandledMove_Landroid_view_View_IHandler")]
public virtual bool DispatchUnhandledMove(Android.Views.View? focused, Android.Views.FocusSearchDirection direction);
[<Android.Runtime.Register("dispatchUnhandledMove", "(Landroid/view/View;I)Z", "GetDispatchUnhandledMove_Landroid_view_View_IHandler")>]
abstract member DispatchUnhandledMove : Android.Views.View * Android.Views.FocusSearchDirection -> bool
override this.DispatchUnhandledMove : Android.Views.View * Android.Views.FocusSearchDirection -> bool

參數

focused
View

目前聚焦的視角。

direction
FocusSearchDirection

焦點想要移動的方向。 FOCUS_UP、FOCUS_DOWN、FOCUS_LEFT和FOCUS_RIGHT。

傳回

如果這個觀點涵蓋了這個未處理的走法,那就成立了。

屬性

備註

此方法是焦點視圖及其祖先對箭頭鍵做出反應的最後機會。 當聚焦視圖內部未消耗該金鑰,且視圖系統無法在請求方向找到新的視圖以給予焦點時,就會呼叫此方式。

android.view.View.dispatchUnhandledMove(android.view.View, int)Java 檔。

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

適用於