Class Util


  • public class Util
    extends Object
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • dp2px

        public static float dp2px​(Context context,
                                  float dp)
      • px2dp

        public static float px2dp​(Context context,
                                  float px)
      • encryptPassword

        public static String encryptPassword​(String password)
      • intDigits

        public static List<Integer> intDigits​(int i)
      • findAllViewByClass

        public static List<View> findAllViewByClass​(View current,
                                                    Class<?> T)
      • findViewByClass

        public static View findViewByClass​(View current,
                                           Class<?> T)
      • findViewByClass

        public static View findViewByClass​(View current,
                                           Class<?> T,
                                           boolean onlyVisible)
      • findChildViewByClass

        public static View findChildViewByClass​(ViewGroup parent,
                                                Class<?> T,
                                                boolean onlyVisible)
      • getAccount

        public static String getAccount​(View current)
      • getPhoneNumber

        public static String getPhoneNumber​(View current)
      • getPassword

        public static String getPassword​(View current)
      • getVerifyCode

        public static String getVerifyCode​(View current)
      • setErrorText

        public static void setErrorText​(View view,
                                        String text)
      • getThemeAccentColor

        public static int getThemeAccentColor​(Context context)
      • randomString

        public static String randomString​(int length)
      • isNull

        public static boolean isNull​(String s)
      • getLangHeader

        public static String getLangHeader()
      • isIp

        public static boolean isIp​(String name)