ActionBar.Tab.SetCustomView 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetCustomView(Int32) |
已淘汰.
設定一個自訂視圖來使用這個分頁。 |
| SetCustomView(View) |
已淘汰.
設定一個自訂視圖來使用這個分頁。 |
SetCustomView(Int32)
警告
deprecated
設定一個自訂視圖來使用這個分頁。
[Android.Runtime.Register("setCustomView", "(I)Landroid/app/ActionBar$Tab;", "GetSetCustomView_IHandler")]
[System.Obsolete("deprecated")]
public abstract Android.App.ActionBar.Tab SetCustomView(int layoutResId);
[<Android.Runtime.Register("setCustomView", "(I)Landroid/app/ActionBar$Tab;", "GetSetCustomView_IHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetCustomView : int -> Android.App.ActionBar.Tab
參數
- layoutResId
- Int32
int:一個可以膨脹並用作自訂分頁視圖的版面資源
傳回
目前呼叫鏈接的實例
- 屬性
備註
設定一個自訂視圖來使用這個分頁。這會覆蓋由 setText(CharSequence) 和 setIcon(Drawable) 設定的值。
Android 參考資料。android.app.ActionBar.Tab.setCustomView
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
SetCustomView(View)
警告
deprecated
設定一個自訂視圖來使用這個分頁。
[Android.Runtime.Register("setCustomView", "(Landroid/view/View;)Landroid/app/ActionBar$Tab;", "GetSetCustomView_Landroid_view_View_Handler")]
[System.Obsolete("deprecated")]
public abstract Android.App.ActionBar.Tab SetCustomView(Android.Views.View view);
[<Android.Runtime.Register("setCustomView", "(Landroid/view/View;)Landroid/app/ActionBar$Tab;", "GetSetCustomView_Landroid_view_View_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetCustomView : Android.Views.View -> Android.App.ActionBar.Tab
參數
- view
- View
檢視:自訂檢視,用作分頁。
傳回
目前呼叫鏈接的實例
- 屬性
備註
設定一個自訂視圖來使用這個分頁。這會覆蓋由 setText(CharSequence) 和 setIcon(Drawable) 設定的值。
Android 參考資料。android.app.ActionBar.Tab.setCustomView
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。