会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FlowLiver
管理
上一页
1
2
3
4
下一页
2021年2月10日
Java 日期<=>时间戳
摘要: /** * 将时间戳解析为字符串日期 * * @param timeDate * @return */ @SuppressLint("SimpleDateFormat") public static String requireDate(long timeDate) { try { SimpleDa
阅读全文
posted @ 2021-02-10 16:00 FlowLiver
阅读(56)
评论(0)
推荐(0)
2021年2月9日
Android 网络检测
摘要: package net.utils; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; public class NetCheck { pub
阅读全文
posted @ 2021-02-09 19:37 FlowLiver
阅读(171)
评论(0)
推荐(0)
2021年2月4日
Java 去除String 中空格
摘要: >str.trim(); //去掉首尾空格 >str.replace(" ",""); //去除所有空格,包括首尾、中间 >str.replaceAll(" ", ""); //去掉所有空格,包括首尾、中间 >str.replaceAll(" +",""); //去掉所有空格,包括首尾、中间 >st
阅读全文
posted @ 2021-02-04 18:04 FlowLiver
阅读(429)
评论(0)
推荐(0)
2021年2月2日
Android 用ADB工具抓取真机日志
摘要: 1.准备工作 下载adb https://developer.android.google.cn/studio/releases/platform-tools?hl=en 如图,我是win10版本,所以下载第一个 下载后解压并把这个目录配置到环境变量中 打开终端,输入adb,如图就是成功了 打开手机
阅读全文
posted @ 2021-02-02 23:00 FlowLiver
阅读(1817)
评论(0)
推荐(0)
2021年2月1日
Android 设置ScrollView最大高度
摘要: 首先定义一个实现类 public class OnViewGlobalLayoutListener implements ViewTreeObserver.OnGlobalLayoutListener { private int maxHeight = 500; private View view;
阅读全文
posted @ 2021-02-01 11:41 FlowLiver
阅读(1275)
评论(0)
推荐(1)
Android 自定义AlertDialog 居中显示
摘要: /** * 弹窗的一些配置 * @param activity * @param dialog * @param canCancel 是否可以点击外部取掉 * @param isBgDark 背景是否不变暗 0为不 1为是 */ public void showDialog(Activity act
阅读全文
posted @ 2021-02-01 11:33 FlowLiver
阅读(1559)
评论(0)
推荐(0)
Android 获取屏幕高度和屏幕宽度
摘要: /** * 获取屏幕宽度 * @param context * @return */ public static int getScreenWidth(Context context) { WindowManager windowManager = (WindowManager) context.g
阅读全文
posted @ 2021-02-01 11:01 FlowLiver
阅读(184)
评论(0)
推荐(0)
2021年1月31日
Android 用Gradle配置签名
摘要: path.store.file=E\:\\files\\codesrc\\signs\\testsigns.jks path.alias.password=Flower path.alias=Flower path.store.password=Flower signingConfigs { rel
阅读全文
posted @ 2021-01-31 15:37 FlowLiver
阅读(141)
评论(0)
推荐(0)
Android开发 Proguard 自定义混淆字符集
摘要: 1.将要混淆的字符集txt文件放在proguard-rules.pro的同级目录下:如图: 2.在proguard-rules.pro下加入三行: -obfuscationdictionary my_dict.txt -classobfuscationdictionary my_dict.txt -
阅读全文
posted @ 2021-01-31 12:49 FlowLiver
阅读(336)
评论(0)
推荐(0)
2021年1月29日
Android 6.0 的getColor()方法过时
摘要: ContextCompat.getColor(context, R.color.my_color)
阅读全文
posted @ 2021-01-29 19:46 FlowLiver
阅读(69)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页