Example usage for com.facebook.react.views.text DefaultStyleValuesUtil getDefaultTextColorHighlight

List of usage examples for com.facebook.react.views.text DefaultStyleValuesUtil getDefaultTextColorHighlight

Introduction

In this page you can find the example usage for com.facebook.react.views.text DefaultStyleValuesUtil getDefaultTextColorHighlight.

Prototype

public static int getDefaultTextColorHighlight(Context context) 

Source Link

Document

Utility method that returns the default text highlight color as define by the theme

Usage

From source file:fr.bamlab.textinput.ReactTextInputManager.java

License:Open Source License

@ReactProp(name = "selectionColor", customType = "Color")
public void setSelectionColor(ReactEditText view, @Nullable Integer color) {
    if (color == null) {
        view.setHighlightColor(DefaultStyleValuesUtil.getDefaultTextColorHighlight(view.getContext()));
    } else {/*w w  w  .ja v  a 2 s  . c  om*/
        view.setHighlightColor(color);
    }
}