DynamicLayout Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| DynamicLayout(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| DynamicLayout(ICharSequence, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean) |
Make a layout for the specified text that will be updated as the text is changed. |
| DynamicLayout(String, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean) |
Make a layout for the specified text that will be updated as the text is changed. |
| DynamicLayout(ICharSequence, ICharSequence, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean) |
Make a layout for the transformed text (password transformation being the primary example of a transformation) that will be updated as the base text is changed. |
| DynamicLayout(String, String, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean) |
Make a layout for the transformed text (password transformation being the primary example of a transformation) that will be updated as the base text is changed. |
| DynamicLayout(ICharSequence, ICharSequence, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean, TextUtils+TruncateAt, Int32) |
Make a layout for the transformed text (password transformation being the primary example of a transformation) that will be updated as the base text is changed. |
| DynamicLayout(String, String, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean, TextUtils+TruncateAt, Int32) |
Make a layout for the transformed text (password transformation being the primary example of a transformation) that will be updated as the base text is changed. |
DynamicLayout(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected DynamicLayout(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Text.DynamicLayout : nativeint * Android.Runtime.JniHandleOwnership -> Android.Text.DynamicLayout
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
DynamicLayout(ICharSequence, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean)
Make a layout for the specified text that will be updated as the text is changed.
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")]
public DynamicLayout(Java.Lang.ICharSequence base, Android.Text.TextPaint paint, int width, Android.Text.Layout.Alignment align, float spacingmult, float spacingadd, bool includepad);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")>]
new Android.Text.DynamicLayout : Java.Lang.ICharSequence * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * bool -> Android.Text.DynamicLayout
Parameters
- base
- ICharSequence
The underlying text used for layout and change tracking.
- paint
- TextPaint
The paint used to measure and draw the text.
- width
- Int32
Value is 0 or greater
- align
- Layout.Alignment
The paragraph alignment within the layout.
- spacingmult
- Single
Value is 0.0f or greater
- spacingadd
- Single
The extra pixels added when calculating interline spacing.
- includepad
- Boolean
Whether to reserve extra top and bottom font padding to reduce glyph clipping.
- Attributes
Remarks
This constructor is deprecated. Use Builder instead.
Android reference for android.text.DynamicLayout.DynamicLayout.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
DynamicLayout(String, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean)
Make a layout for the specified text that will be updated as the text is changed.
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")]
public DynamicLayout(string base, Android.Text.TextPaint paint, int width, Android.Text.Layout.Alignment align, float spacingmult, float spacingadd, bool includepad);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")>]
new Android.Text.DynamicLayout : string * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * bool -> Android.Text.DynamicLayout
Parameters
- base
- String
The underlying text used for layout and change tracking.
- paint
- TextPaint
The paint used to measure and draw the text.
- width
- Int32
Value is 0 or greater
- align
- Layout.Alignment
The paragraph alignment within the layout.
- spacingmult
- Single
Value is 0.0f or greater
- spacingadd
- Single
The extra pixels added when calculating interline spacing.
- includepad
- Boolean
Whether to reserve extra top and bottom font padding to reduce glyph clipping.
- Attributes
Remarks
This constructor is deprecated. Use Builder instead.
Android reference for android.text.DynamicLayout.DynamicLayout.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
DynamicLayout(ICharSequence, ICharSequence, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean)
Make a layout for the transformed text (password transformation being the primary example of a transformation) that will be updated as the base text is changed.
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")]
public DynamicLayout(Java.Lang.ICharSequence base, Java.Lang.ICharSequence display, Android.Text.TextPaint paint, int width, Android.Text.Layout.Alignment align, float spacingmult, float spacingadd, bool includepad);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")>]
new Android.Text.DynamicLayout : Java.Lang.ICharSequence * Java.Lang.ICharSequence * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * bool -> Android.Text.DynamicLayout
Parameters
- base
- ICharSequence
The underlying text used for change tracking.
- display
- ICharSequence
The text representation to display instead of the base text.
- paint
- TextPaint
The paint used to measure and draw the text.
- width
- Int32
Value is 0 or greater
- align
- Layout.Alignment
The paragraph alignment within the layout.
- spacingmult
- Single
Value is 0.0f or greater
- spacingadd
- Single
The extra pixels added when calculating interline spacing.
- includepad
- Boolean
Whether to reserve extra top and bottom font padding to reduce glyph clipping.
- Attributes
Remarks
This constructor is deprecated. Use Builder instead.
Android reference for android.text.DynamicLayout.DynamicLayout.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
DynamicLayout(String, String, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean)
Make a layout for the transformed text (password transformation being the primary example of a transformation) that will be updated as the base text is changed.
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")]
public DynamicLayout(string base, string display, Android.Text.TextPaint paint, int width, Android.Text.Layout.Alignment align, float spacingmult, float spacingadd, bool includepad);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZ)V", "")>]
new Android.Text.DynamicLayout : string * string * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * bool -> Android.Text.DynamicLayout
Parameters
- base
- String
The underlying text used for change tracking.
- display
- String
The text representation to display instead of the base text.
- paint
- TextPaint
The paint used to measure and draw the text.
- width
- Int32
Value is 0 or greater
- align
- Layout.Alignment
The paragraph alignment within the layout.
- spacingmult
- Single
Value is 0.0f or greater
- spacingadd
- Single
The extra pixels added when calculating interline spacing.
- includepad
- Boolean
Whether to reserve extra top and bottom font padding to reduce glyph clipping.
- Attributes
Remarks
This constructor is deprecated. Use Builder instead.
Android reference for android.text.DynamicLayout.DynamicLayout.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
DynamicLayout(ICharSequence, ICharSequence, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean, TextUtils+TruncateAt, Int32)
Make a layout for the transformed text (password transformation being the primary example of a transformation) that will be updated as the base text is changed.
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZLandroid/text/TextUtils$TruncateAt;I)V", "")]
public DynamicLayout(Java.Lang.ICharSequence base, Java.Lang.ICharSequence display, Android.Text.TextPaint paint, int width, Android.Text.Layout.Alignment align, float spacingmult, float spacingadd, bool includepad, Android.Text.TextUtils.TruncateAt? ellipsize, int ellipsizedWidth);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZLandroid/text/TextUtils$TruncateAt;I)V", "")>]
new Android.Text.DynamicLayout : Java.Lang.ICharSequence * Java.Lang.ICharSequence * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * bool * Android.Text.TextUtils.TruncateAt * int -> Android.Text.DynamicLayout
Parameters
- base
- ICharSequence
The underlying text used for change tracking.
- display
- ICharSequence
The text representation to display instead of the base text.
- paint
- TextPaint
The paint used to measure and draw the text.
- width
- Int32
Value is 0 or greater
- align
- Layout.Alignment
The paragraph alignment within the layout.
- spacingmult
- Single
Value is 0.0f or greater
- spacingadd
- Single
The extra pixels added when calculating interline spacing.
- includepad
- Boolean
Whether to reserve extra top and bottom font padding to reduce glyph clipping.
- ellipsize
- TextUtils.TruncateAt
The requested ellipsis mode, or null to disable ellipsis.
- ellipsizedWidth
- Int32
Value is 0 or greater
- Attributes
Remarks
This constructor is deprecated. Use Builder instead.
Android reference for android.text.DynamicLayout.DynamicLayout.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
DynamicLayout(String, String, TextPaint, Int32, Layout+Alignment, Single, Single, Boolean, TextUtils+TruncateAt, Int32)
Make a layout for the transformed text (password transformation being the primary example of a transformation) that will be updated as the base text is changed.
[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZLandroid/text/TextUtils$TruncateAt;I)V", "")]
public DynamicLayout(string base, string display, Android.Text.TextPaint paint, int width, Android.Text.Layout.Alignment align, float spacingmult, float spacingadd, bool includepad, Android.Text.TextUtils.TruncateAt? ellipsize, int ellipsizedWidth);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/text/TextPaint;ILandroid/text/Layout$Alignment;FFZLandroid/text/TextUtils$TruncateAt;I)V", "")>]
new Android.Text.DynamicLayout : string * string * Android.Text.TextPaint * int * Android.Text.Layout.Alignment * single * single * bool * Android.Text.TextUtils.TruncateAt * int -> Android.Text.DynamicLayout
Parameters
- base
- String
The underlying text used for change tracking.
- display
- String
The text representation to display instead of the base text.
- paint
- TextPaint
The paint used to measure and draw the text.
- width
- Int32
Value is 0 or greater
- align
- Layout.Alignment
The paragraph alignment within the layout.
- spacingmult
- Single
Value is 0.0f or greater
- spacingadd
- Single
The extra pixels added when calculating interline spacing.
- includepad
- Boolean
Whether to reserve extra top and bottom font padding to reduce glyph clipping.
- ellipsize
- TextUtils.TruncateAt
The requested ellipsis mode, or null to disable ellipsis.
- ellipsizedWidth
- Int32
Value is 0 or greater
- Attributes
Remarks
This constructor is deprecated. Use Builder instead.
Android reference for android.text.DynamicLayout.DynamicLayout.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.