类 EaseEditTextUtils


  • public class EaseEditTextUtils
    extends java.lang.Object
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static void changePwdDrawableRight​(android.widget.EditText editText, android.graphics.drawable.Drawable eyeOpen, android.graphics.drawable.Drawable eyeClose, android.graphics.drawable.Drawable left, android.graphics.drawable.Drawable top, android.graphics.drawable.Drawable bottom)  
      static void clearEditTextListener​(android.widget.EditText editText)  
      static java.lang.String ellipsizeMiddleString​(android.widget.TextView textView, java.lang.String str, int num, int width)
      Set the maximum number of displayed lines and keep the text type at the end
      static java.lang.String ellipsizeString​(android.widget.TextView textView, java.lang.String str, java.lang.String keyword, int width)
      Single line, determine the different positions of the ellipsis according to the keyword
      static android.text.SpannableStringBuilder highLightKeyword​(android.content.Context context, java.lang.String str, java.lang.String keyword)  
      static void showRightDrawable​(android.widget.EditText editText, android.graphics.drawable.Drawable right)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • EaseEditTextUtils

        public EaseEditTextUtils()
    • 方法详细资料

      • changePwdDrawableRight

        public static void changePwdDrawableRight​(android.widget.EditText editText,
                                                  android.graphics.drawable.Drawable eyeOpen,
                                                  android.graphics.drawable.Drawable eyeClose,
                                                  android.graphics.drawable.Drawable left,
                                                  android.graphics.drawable.Drawable top,
                                                  android.graphics.drawable.Drawable bottom)
      • showRightDrawable

        public static void showRightDrawable​(android.widget.EditText editText,
                                             android.graphics.drawable.Drawable right)
      • clearEditTextListener

        public static void clearEditTextListener​(android.widget.EditText editText)
      • ellipsizeString

        public static java.lang.String ellipsizeString​(android.widget.TextView textView,
                                                       java.lang.String str,
                                                       java.lang.String keyword,
                                                       int width)
        Single line, determine the different positions of the ellipsis according to the keyword
        参数:
        textView -
        str -
        keyword -
        width -
        返回:
      • highLightKeyword

        public static android.text.SpannableStringBuilder highLightKeyword​(android.content.Context context,
                                                                           java.lang.String str,
                                                                           java.lang.String keyword)
      • ellipsizeMiddleString

        public static java.lang.String ellipsizeMiddleString​(android.widget.TextView textView,
                                                             java.lang.String str,
                                                             int num,
                                                             int width)
        Set the maximum number of displayed lines and keep the text type at the end
        参数:
        textView -
        str -
        num -
        width -
        返回: