setCursorColor

@RequiresApi(value = 29)
fun setCursorColor(colorHex: String)

Sets the color for the cursor, selection handles, and text selection highlight

Important:

This method requires API Level 29 or higher

Parameters

colorHex

The color to be set (in Hex format)


@RequiresApi(value = 29)
fun setCursorColor(color: Int)

Sets the color for the cursor, selection handles, and text selection highlight

Important:

This method requires API Level 29 or higher

Parameters

color

The color to be set