class StripeEditText extends TextInputEditText {

    @ColorInt
    @SuppressWarnings("deprecation")
    public int getDefaultErrorColorInt() {
        @ColorInt int errorColor;
        // It's possible that we need to verify this value again
        // in case the user programmatically changes the text color.
        determineDefaultErrorColor();
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            errorColor = getResources().getColor(mDefaultErrorColorResId, null);
        } else {
            // Resources#getColor(int) is deprecated, but the replacement only exists in
            // SDK 23 and above.
            errorColor = getResources().getColor(mDefaultErrorColorResId);
        }

        return errorColor;
    }

    public  StripeEditText(Context context);
    public  StripeEditText(Context context, AttributeSet attrs);
    public  StripeEditText(Context context, AttributeSet attrs, int defStyleAttr);

}