ColorStateList 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ColorStateList(Int32[][], Int32[]) |
创建一个 ColorStateList,该列表返回从状态到颜色的指定映射。 |
ColorStateList(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
ColorStateList(Int32[][], Int32[])
创建一个 ColorStateList,该列表返回从状态到颜色的指定映射。
[Android.Runtime.Register(".ctor", "([[I[I)V", "")]
public ColorStateList (int[][]? states, int[]? colors);
[<Android.Runtime.Register(".ctor", "([[I[I)V", "")>]
new Android.Content.Res.ColorStateList : int[][] * int[] -> Android.Content.Res.ColorStateList
参数
- states
- Int32[][]
- colors
- Int32[]
- 属性
注解
创建一个 ColorStateList,该列表返回从状态到颜色的指定映射。
适用于 . 的 android.content.res.ColorStateList.ColorStateList(int[][], int[])
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
ColorStateList(IntPtr, JniHandleOwnership)
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。
protected ColorStateList (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.Res.ColorStateList : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.Res.ColorStateList
参数
- transfer
- JniHandleOwnership
指示 JniHandleOwnership如何处理 javaReference
注解
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。