共用方式為


Context.GetColorStateList(Int32) 方法

定義

傳回與特定資源標識符相關聯的色彩狀態清單,並針對目前主題設定樣式。

[Android.Runtime.Register("getColorStateList", "(I)Landroid/content/res/ColorStateList;", "", ApiSince=23)]
public Android.Content.Res.ColorStateList GetColorStateList (int id);
[<Android.Runtime.Register("getColorStateList", "(I)Landroid/content/res/ColorStateList;", "", ApiSince=23)>]
member this.GetColorStateList : int -> Android.Content.Res.ColorStateList

參數

id
Int32

所需的資源標識碼,如 aapt 工具所產生。 這個整數會編碼封裝、類型和資源專案。 值 0 是無效的識別碼。

傳回

色彩狀態清單。

屬性

備註

傳回與特定資源標識符相關聯的色彩狀態清單,並針對目前主題設定樣式。

android.content.Context.getColorStateList(int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於