private void initAttributes(AttributeSet attributeSet) {
    TypedArray typedArray = mContext.obtainStyledAttributes(attributeSet, R.styleable.BaseTextView);

    if (typedArray != null) {
      TypeFaceProvider.initByType(typedArray.getInt(R.styleable.BaseTextView_font, -1), this);
      typedArray.recycle();
    }

    typedArray = mContext.obtainStyledAttributes(attributeSet, R.styleable.ResourceColor);

    if (typedArray != null) {
      int bgColor = typedArray.getInt(R.styleable.ResourceColor_bg_color, -1);

      if (bgColor != -1) {
        setBackgroundColor(Color.parseColor(DataStore.getInstance().getColor(bgColor)));
      }

      int textColor = typedArray.getInt(R.styleable.ResourceColor_text_color, -1);

      if (textColor != -1) {
        setTextColor(Color.parseColor(DataStore.getInstance().getColor(textColor)));
      }

      typedArray.recycle();
    }

    typedArray = mContext.obtainStyledAttributes(attributeSet, R.styleable.BaseEditText);

    if (typedArray != null) {
      String hintRes = typedArray.getString(R.styleable.BaseEditText_hint_key);
      if (!Utils.isEmpty(hintRes)) {
        String hint = DataManager.getInstance().getResourceText(hintRes);
        setHint(hint);
      }
      typedArray.recycle();
    }

    // Remove spell check
    // setInputType(~(InputType.TYPE_TEXT_FLAG_AUTO_CORRECT));
  }
  private void setHeader(View view) {
    mHeader = (EventHeader) view.findViewById(R.id.eventHeader);
    mHeader.getBackButton().setText(Consts.Icons.icon_New_Close);
    mHeader.setTitle(DataManager.getInstance().getResourceText(getString(R.string.Add_Profile)));
    mHeader.getIconOne().setVisibility(View.GONE);
    mHeader.getIconTwo().setVisibility(View.GONE);
    mHeader.getIconThree().setVisibility(View.GONE);
    mHeader.setListener(
        new EventHeader.OnEventHeader() {
          @Override
          public void onBackButtonClicked() {
            getActivity().onBackPressed();
          }

          @Override
          public void onOneIconClicked() {}

          @Override
          public void onTwoIconClicked() {}

          @Override
          public void onThreeIconClicked() {}
        });
  }