语言

ActionBar.SelectedNavigationIndex 属性

定义

此方法在 API 级别 21 中已弃用。

public abstract int SelectedNavigationIndex { [Android.Runtime.Register("getSelectedNavigationIndex", "()I", "GetGetSelectedNavigationIndexHandler")] get; }
[<get: Android.Runtime.Register("getSelectedNavigationIndex", "()I", "GetGetSelectedNavigationIndexHandler")>]
member this.SelectedNavigationIndex : int

属性值

所选项的位置。

特性

注解

此方法在 API 级别 21 中已弃用。 操作栏导航模式已弃用,内联工具栏操作栏不支持。 请考虑改用其他常见导航模式。

获取所选导航项在列表或选项卡式导航模式下的位置。

Android 参考。android.app.ActionBar.getSelectedNavigationIndex

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于