摘要: 1.view.post(Runnable action textView.post( new Runnable() { @Override public void run() { textView.setText("更新tv"); //还可以更新其他的控件 imageView.setBackgrou 阅读全文
posted @ 2021-01-29 15:02 FlowLiver 阅读(532) 评论(0) 推荐(0)
摘要: public class ProUtils { /** 直接调用这个方法即可 **/ public static boolean isNetOk(Context context) { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { retur 阅读全文
posted @ 2021-01-28 19:04 FlowLiver 阅读(119) 评论(0) 推荐(0)
摘要: package com.company; import java.io.*; import java.util.Properties; public class Main { public static void main(String[] args) throws IOException { my 阅读全文
posted @ 2021-01-24 15:00 FlowLiver 阅读(67) 评论(0) 推荐(0)
摘要: //JDK7的改进方案 private static void method3() { try(FileReader fr = new FileReader("fr.txt"); FileWriter fw = new FileWriter("fw.txt");){ char[] chs = new 阅读全文
posted @ 2021-01-24 13:12 FlowLiver 阅读(163) 评论(0) 推荐(0)
摘要: 博客园Markdown文本代码大小字体修改 .cnblogs-markdown .hljs { font-size: 18px !important; background: #F8F8F8!important; font-family: 'Consolas','Microsoft YaHei'!i 阅读全文
posted @ 2021-01-22 13:59 FlowLiver 阅读(312) 评论(0) 推荐(0)