ActionBar.SetCustomView 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetCustomView(View, ActionBar+LayoutParams) |
將動作列設為自訂導航模式,提供自訂導航的視角。 |
| SetCustomView(Int32) |
將動作列設為自訂導航模式,提供自訂導航的視角。 |
SetCustomView(View, ActionBar+LayoutParams)
將動作列設為自訂導航模式,提供自訂導航的視角。
[Android.Runtime.Register("setCustomView", "(Landroid/view/View;Landroid/app/ActionBar$LayoutParams;)V", "GetSetCustomView_Landroid_view_View_Landroid_app_ActionBar_LayoutParams_Handler")]
public abstract void SetCustomView(Android.Views.View? view, Android.App.ActionBar.LayoutParams? layoutParams);
[<Android.Runtime.Register("setCustomView", "(Landroid/view/View;Landroid/app/ActionBar$LayoutParams;)V", "GetSetCustomView_Landroid_view_View_Landroid_app_ActionBar_LayoutParams_Handler")>]
abstract member SetCustomView : Android.Views.View * Android.App.ActionBar.LayoutParams -> unit
參數
- view
- View
檢視:自訂導覽視圖,可放置於動作列中。
- layoutParams
- ActionBar.LayoutParams
ActionBar.LayoutParams:這個自訂視圖應該如何在列中排版。
- 屬性
備註
將動作列設為自訂導航模式,提供自訂導航的視角。 自訂導覽視圖會出現在應用程式圖示與任何動作按鈕之間,並可使用任何可用空間。 自訂導航視圖的常見使用情境可能包括瀏覽器自動建議地址列或其他無法良好轉換至導航模式的導航機制。
顯示選項DISPLAY_SHOW_CUSTOM必須設定,自訂視圖才能顯示。
另請參閱:
Android 參考資料。android.app.ActionBar.setCustomView
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
SetCustomView(Int32)
將動作列設為自訂導航模式,提供自訂導航的視角。
[Android.Runtime.Register("setCustomView", "(I)V", "GetSetCustomView_IHandler")]
public abstract void SetCustomView(int resId);
[<Android.Runtime.Register("setCustomView", "(I)V", "GetSetCustomView_IHandler")>]
abstract member SetCustomView : int -> unit
參數
- resId
- Int32
一個要膨脹到動作列的版面資源ID。
- 屬性
備註
將動作列設為自訂導航模式,提供自訂導航的視角。 自訂導覽視圖會出現在應用程式圖示與任何動作按鈕之間,並可使用任何可用空間。 自訂導航視圖的常見使用情境可能包括瀏覽器自動建議地址列或其他無法良好轉換至導航模式的導航機制。
顯示選項DISPLAY_SHOW_CUSTOM必須設定,自訂視圖才能顯示。
另請參閱:
Android 參考資料。android.app.ActionBar.setCustomView
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。