protected int getActiveColor(Context context) {
        if (this.mActiveColorResource != 0) {
            return ContextCompat.getColor(context, mActiveColorResource);
        } else if (!TextUtils.isEmpty(mActiveColorCode)) {
            return Color.parseColor(mActiveColorCode);
        } else if (this.mActiveColor != 0) {
            return mActiveColor;
        } else {
            return -1;
        }
    }
@param context to fetch color
@return active color (or) -1 if no color is specified
common/src/main/java/com/sxjs/common/widget/bottomnavigation/BottomNavigationItem.java