InsetDrawable 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| InsetDrawable(Drawable, Int32) |
使用指定的内嵌创建一个新的内集可绘制。 |
| InsetDrawable(Drawable, Single) |
使用指定的内嵌创建一个新的内集可绘制。 |
| InsetDrawable(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
| InsetDrawable(Drawable, Int32, Int32, Int32, Int32) |
使用指定的内集(以像素为单位)创建一个新的内集可绘制。 |
| InsetDrawable(Drawable, Single, Single, Single, Single) |
使用视图边界的一小部分指定内集创建一个新的内集可绘制。 |
InsetDrawable(Drawable, Int32)
使用指定的内嵌创建一个新的内集可绘制。
[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;I)V", "")]
public InsetDrawable(Android.Graphics.Drawables.Drawable? drawable, int inset);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;I)V", "")>]
new Android.Graphics.Drawables.InsetDrawable : Android.Graphics.Drawables.Drawable * int -> Android.Graphics.Drawables.InsetDrawable
参数
- drawable
- Drawable
要嵌入的可绘制。
- inset
- Int32
在可绘制对象周围以像素为单位的内插。
- 特性
注解
使用指定的内嵌创建一个新的内集可绘制。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
InsetDrawable(Drawable, Single)
使用指定的内嵌创建一个新的内集可绘制。
[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;F)V", "", ApiSince=26)]
public InsetDrawable(Android.Graphics.Drawables.Drawable? drawable, float inset);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;F)V", "", ApiSince=26)>]
new Android.Graphics.Drawables.InsetDrawable : Android.Graphics.Drawables.Drawable * single -> Android.Graphics.Drawables.InsetDrawable
参数
- drawable
- Drawable
要嵌入的可绘制。
- inset
- Single
内嵌内容边界的分数(范围:[0, 1))内集。
- 特性
注解
使用指定的内嵌创建一个新的内集可绘制。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
InsetDrawable(IntPtr, JniHandleOwnership)
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。
protected InsetDrawable(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.Drawables.InsetDrawable : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.Drawables.InsetDrawable
参数
- transfer
- JniHandleOwnership
指示 JniHandleOwnership如何处理 javaReference
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
InsetDrawable(Drawable, Int32, Int32, Int32, Int32)
使用指定的内集(以像素为单位)创建一个新的内集可绘制。
[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;IIII)V", "")]
public InsetDrawable(Android.Graphics.Drawables.Drawable? drawable, int insetLeft, int insetTop, int insetRight, int insetBottom);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;IIII)V", "")>]
new Android.Graphics.Drawables.InsetDrawable : Android.Graphics.Drawables.Drawable * int * int * int * int -> Android.Graphics.Drawables.InsetDrawable
参数
- drawable
- Drawable
要嵌入的可绘制。
- insetLeft
- Int32
左内嵌以像素为单位。
- insetTop
- Int32
顶部内嵌以像素为单位。
- insetRight
- Int32
右内插(以像素为单位)。
- insetBottom
- Int32
底部内嵌以像素为单位。
- 特性
注解
使用指定的内集(以像素为单位)创建一个新的内集可绘制。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
InsetDrawable(Drawable, Single, Single, Single, Single)
使用视图边界的一小部分指定内集创建一个新的内集可绘制。
[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;FFFF)V", "", ApiSince=26)]
public InsetDrawable(Android.Graphics.Drawables.Drawable? drawable, float insetLeftFraction, float insetTopFraction, float insetRightFraction, float insetBottomFraction);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;FFFF)V", "", ApiSince=26)>]
new Android.Graphics.Drawables.InsetDrawable : Android.Graphics.Drawables.Drawable * single * single * single * single -> Android.Graphics.Drawables.InsetDrawable
参数
- drawable
- Drawable
要嵌入的可绘制。
- insetLeftFraction
- Single
以分数(范围:[0, 1)为单位的内联内容边界左内集。
- insetTopFraction
- Single
内嵌内容边界的顶部内嵌(范围:[0, 1))。
- insetRightFraction
- Single
右内嵌内容边界的分数(范围:[0, 1))。
- insetBottomFraction
- Single
内嵌内容边界的分数(范围: [0, 1))的底部内集。
- 特性
注解
使用视图边界的一小部分指定内集创建一个新的内集可绘制。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。