ActionBar.SetSelectedNavigationItem(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
deprecated
在列表或选项卡式导航模式下设置所选导航项。
[Android.Runtime.Register("setSelectedNavigationItem", "(I)V", "GetSetSelectedNavigationItem_IHandler")]
[System.Obsolete("deprecated")]
public abstract void SetSelectedNavigationItem(int position);
[<Android.Runtime.Register("setSelectedNavigationItem", "(I)V", "GetSetSelectedNavigationItem_IHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetSelectedNavigationItem : int -> unit
参数
- position
- Int32
要选择的项的位置。
- 特性
注解
此方法在 API 级别 21 中已弃用。 操作栏导航模式已弃用,内联工具栏操作栏不支持。 请考虑改用其他常见导航模式。
在列表或选项卡式导航模式下设置所选导航项。
Android 参考。android.app.ActionBar.setSelectedNavigationItem
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。