ColorDrawable 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| ColorDrawable() |
创建新的黑色 ColorDrawable。 |
| ColorDrawable(Color) |
使用指定颜色创建新的 ColorDrawable。 |
| ColorDrawable(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
ColorDrawable()
创建新的黑色 ColorDrawable。
[Android.Runtime.Register(".ctor", "()V", "")]
public ColorDrawable();
- 特性
注解
创建新的黑色 ColorDrawable。
Java文档android.graphics.drawable.ColorDrawable.ColorDrawable()。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
ColorDrawable(Color)
使用指定颜色创建新的 ColorDrawable。
[Android.Runtime.Register(".ctor", "(I)V", "")]
public ColorDrawable(Android.Graphics.Color color);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Android.Graphics.Drawables.ColorDrawable : Android.Graphics.Color -> Android.Graphics.Drawables.ColorDrawable
参数
- color
- Color
要绘制的颜色。
- 特性
注解
使用指定颜色创建新的 ColorDrawable。
Java文档android.graphics.drawable.ColorDrawable.ColorDrawable(int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
ColorDrawable(IntPtr, JniHandleOwnership)
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。
protected ColorDrawable(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.Drawables.ColorDrawable : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.Drawables.ColorDrawable
参数
- transfer
- JniHandleOwnership
指示 JniHandleOwnership如何处理 javaReference
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。