FocusFinder.FindNearestTouchable 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
找到最接近指定視圖的可觸及視角。
[Android.Runtime.Register("findNearestTouchable", "(Landroid/view/ViewGroup;III[I)Landroid/view/View;", "GetFindNearestTouchable_Landroid_view_ViewGroup_IIIarrayIHandler")]
public virtual Android.Views.View? FindNearestTouchable(Android.Views.ViewGroup? root, int x, int y, Android.Views.FocusSearchDirection direction, int[]? deltas);
[<Android.Runtime.Register("findNearestTouchable", "(Landroid/view/ViewGroup;III[I)Landroid/view/View;", "GetFindNearestTouchable_Landroid_view_ViewGroup_IIIarrayIHandler")>]
abstract member FindNearestTouchable : Android.Views.ViewGroup * int * int * Android.Views.FocusSearchDirection * int[] -> Android.Views.View
override this.FindNearestTouchable : Android.Views.ViewGroup * int * int * Android.Views.FocusSearchDirection * int[] -> Android.Views.View
參數
- root
- ViewGroup
搜尋樹的根節點
- x
- Int32
X 座標,從這裡開始搜尋
- y
- Int32
Y 座標,從這裡開始搜尋
- direction
- FocusSearchDirection
觀察方向
- deltas
- Int32[]
從 <x、y> 偏移到最近視角的邊緣。 請注意,這個陣列可能已經被填入了數值。
傳回
最近的可觸及視角,若不存在則視為無。
- 屬性
備註
找到最接近指定視圖的可觸及視角。
的 android.view.FocusFinder.findNearestTouchable(android.view.ViewGroup, int, int, int, int[])Java 檔。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。