摘要: 线程 new Thread(new Runnable() { public void run() { //sleep设置的是时长 Thread.sleep(1000); handler.sendMessage(); } }).start 延时器 TimerTask task = new TimerT 阅读全文
posted @ 2020-05-09 13:52 青竹玉简 阅读(4729) 评论(0) 推荐(1) 编辑
摘要: /** * 第一种加载证书 */ try { HttpsUtils.SSLParams sslParams = HttpsUtils.getSslSocketFactory(getAssets().open("wallet.cer")); OkHttpClient builder = new OkH 阅读全文
posted @ 2020-05-09 11:28 青竹玉简 阅读(1321) 评论(0) 推荐(0) 编辑
摘要: edit_bg.xml <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" xmlns:Android="http://schema 阅读全文
posted @ 2020-05-09 10:53 青竹玉简 阅读(204) 评论(0) 推荐(0) 编辑
摘要: loading_bg.png dialog_loading.xml <?xml version="1.0" encoding="utf-8"?> <animated-rotate xmlns:android="http://schemas.android.com/apk/res/android" a 阅读全文
posted @ 2020-05-09 10:47 青竹玉简 阅读(326) 评论(0) 推荐(0) 编辑
摘要: public class DeviceUtil { /** * 是否有网 * @param context * @return */ public static boolean isNetworkConnected(Context context) { if (context != null) { 阅读全文
posted @ 2020-05-09 10:45 青竹玉简 阅读(266) 评论(0) 推荐(0) 编辑
摘要: public class DeviceMacUtil { /** * Android 6.0 之前(不包括6.0) * 必须的权限 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> * @param con 阅读全文
posted @ 2020-05-09 10:43 青竹玉简 阅读(606) 评论(0) 推荐(0) 编辑
摘要: public class RegexUtils { /** * 验证Email * @param email email地址,格式:zhangsan@sina.com,zhangsan@xxx.com.cn,xxx代表邮件服务商 * @return 验证成功返回true,验证失败返回false */ 阅读全文
posted @ 2020-05-09 10:42 青竹玉简 阅读(174) 评论(0) 推荐(0) 编辑
摘要: public class SharedPreferencesUtil { private static SharedPreferencesUtil util; private static SharedPreferences sp; private SharedPreferencesUtil(Con 阅读全文
posted @ 2020-05-09 10:40 青竹玉简 阅读(801) 评论(0) 推荐(0) 编辑
摘要: ViewUtils public class ViewUtils { /** * @Author AlanMa * @Description 处理图形大小 * @Date 2020/4/14 * @Param [editTextList] * @return void */ public stati 阅读全文
posted @ 2020-05-09 10:39 青竹玉简 阅读(756) 评论(0) 推荐(0) 编辑
摘要: CountDownTimerUtils public class CountDownTimerUtils extends CountDownTimer { private TextView mTextView; public CountDownTimerUtils(TextView textView 阅读全文
posted @ 2020-05-09 10:38 青竹玉简 阅读(177) 评论(0) 推荐(0) 编辑
摘要: EditTextUtils public class EditTextUtils { /** * 设置edittext只能输入小数点后两位 */ public static void afterDotOne(final EditText editText) { editText.addTextCha 阅读全文
posted @ 2020-05-09 10:36 青竹玉简 阅读(329) 评论(0) 推荐(0) 编辑