ActionMode.Callback2.OnGetContentRect(ActionMode, View, Rect) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當需要將動作模式定位在螢幕上,可能會遮擋視圖內容時,會呼叫它。
[Android.Runtime.Register("onGetContentRect", "(Landroid/view/ActionMode;Landroid/view/View;Landroid/graphics/Rect;)V", "GetOnGetContentRect_Landroid_view_ActionMode_Landroid_view_View_Landroid_graphics_Rect_Handler", ApiSince=23)]
public virtual void OnGetContentRect(Android.Views.ActionMode? mode, Android.Views.View? view, Android.Graphics.Rect? outRect);
[<Android.Runtime.Register("onGetContentRect", "(Landroid/view/ActionMode;Landroid/view/View;Landroid/graphics/Rect;)V", "GetOnGetContentRect_Landroid_view_ActionMode_Landroid_view_View_Landroid_graphics_Rect_Handler", ApiSince=23)>]
abstract member OnGetContentRect : Android.Views.ActionMode * Android.Views.View * Android.Graphics.Rect -> unit
override this.OnGetContentRect : Android.Views.ActionMode * Android.Views.View * Android.Graphics.Rect -> unit
參數
- mode
- ActionMode
需要站位的行動模式。
- view
- View
這個視角起源於 ActionMode,Rect 應該會在其座標中提供。
- outRect
- Rect
Rect 將被填入內容位置。 用這個來指定你應用程式中內容在指定視圖中的位置。 這將避免用建立的 ActionMode 遮蔽指定內容 Rect。
- 屬性
備註
當需要將動作模式定位在螢幕上,可能會遮擋視圖內容時,會呼叫它。 請注意,這可能會以每幀為單位呼叫。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。