語言

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於