Share via


ViewStructure.SetTextStyle(Single, Int32, Int32, AssistTextStyle) Method

Definition

Explicitly set default global style information for text that was previously set with #setText.

[Android.Runtime.Register("setTextStyle", "(FIII)V", "GetSetTextStyle_FIIIHandler", ApiSince=23)]
public abstract void SetTextStyle (float size, int fgColor, int bgColor, Android.App.Assist.AssistTextStyle style);
[<Android.Runtime.Register("setTextStyle", "(FIII)V", "GetSetTextStyle_FIIIHandler", ApiSince=23)>]
abstract member SetTextStyle : single * int * int * Android.App.Assist.AssistTextStyle -> unit

Parameters

size
Single

The size, in pixels, of the text.

fgColor
Int32

The foreground color, packed as 0xAARRGGBB.

bgColor
Int32

The background color, packed as 0xAARRGGBB.

style
AssistTextStyle

Style flags, as defined by android.app.assist.AssistStructure.ViewNode.

Attributes

Remarks

Explicitly set default global style information for text that was previously set with #setText.

Java documentation for android.view.ViewStructure.setTextStyle(float, int, int, int).

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