Class MaskedEditText

    • Constructor Detail

      • MaskedEditText

        public MaskedEditText​(Context context)
      • MaskedEditText

        public MaskedEditText​(Context context,
                              AttributeSet attrs,
                              int defStyle)
    • Method Detail

      • setOnFocusChangeListener

        public void setOnFocusChangeListener​(View.OnFocusChangeListener listener)
        Overrides:
        setOnFocusChangeListener in class com.rengwuxian.materialedittext.MaterialEditText
        Parameters:
        listener - - its onFocusChange() method will be called before performing MaskedEditText operations, related to this event.
      • setShouldKeepText

        public void setShouldKeepText​(boolean shouldKeepText)
      • isKeepingText

        public boolean isKeepingText()
      • setMask

        public void setMask​(String mask)
      • getMask

        public String getMask()
      • setAllowedChars

        public void setAllowedChars​(String allowedChars)
      • getAllowedChars

        public String getAllowedChars()
      • setImeActionEnabled

        public void setImeActionEnabled​(boolean isEnabled)
      • getRawText

        public String getRawText()
      • setCharRepresentation

        public void setCharRepresentation​(char charRepresentation)
      • getCharRepresentation

        public char getCharRepresentation()
      • isKeepHint

        public boolean isKeepHint()
      • setKeepHint

        public void setKeepHint​(boolean keepHint)
      • onSelectionChanged

        protected void onSelectionChanged​(int selStart,
                                          int selEnd)
        Overrides:
        onSelectionChanged in class TextView