View.DispatchUnhandledMove(View, FocusSearchDirection) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
此方法是焦點視圖及其祖先對箭頭鍵做出反應的最後機會。
[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 屬性授權中所述的詞彙使用。