code: private void inflateErrorMessageTextViews() {
          View parent = View.inflate(getContext(), R.layout.error_messages, null);
          addView(parent, LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
          leftMessage = parent.findViewById(R.id.left_error_message);
          leftMessage.setTag(false);
          rightMessage = parent.findViewById(R.id.right_error_message);
          rightMessage.setTag(false);
      }
docs: Inflates the text views, which are used to show validation errors.