Android Question How to... textColorHighlight / textColorHighlightInverse

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Can someone explain to me how I can execute the following commands in B4A

public static final int textColorHighlight
Added in API level 1
Color of highlighted text.

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".
Constant Value: 16842905 (0x01010099)

public static final int textColorHighlightInverse
Added in API level 11
Color of highlighted text, when used in a light theme.

May be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".
May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

Constant Value: 16843599 (0x0101034f)

Found these at http://developer.android.com/reference/android/R.attr.html#textColorPrimaryInverse

I use a White Background with blue text for most of my Edit fields and when the text is selected the default color is unreadable and was hoping that these commands would all me to change the Highlight or Inverse colors

BobVal
 
Top