setFieldUnderlineColors

@RequiresApi(value = 27)
fun setFieldUnderlineColors(defaultColorHex: String, focusColorHex: String)

By default, the edit text fields will use the styling defined by the app theme. However, the colors for the edit text field's underline can be customized programmatically by calling this method.

Important:

This method requires API level 27 or higher

Parameters

defaultColorHex

The color (in Hex format) for the underline when fields do not have focus

focusColorHex

The color (in Hex format) for the underline when fields have focus


fun setFieldUnderlineColors(defaultColor: Int, focusColor: Int)

By default, the edit text fields will use the styling defined by the app theme. However, the colors for the edit text field's underline can be customized programmatically by calling this method.

Parameters

defaultColor

The color for the underline when fields do not have focus

focusColor

The color for the underline when fields have focus