上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 38 下一页
摘要: Mac: adb logcat -d >/Users/z/android_log.txt windows: adb logcat -d > c:/b.log 阅读全文
posted @ 2020-12-15 15:54 野鸡码农 阅读(1021) 评论(0) 推荐(0)
摘要: app.gradle: android { defaultConfig { ... multiDexEnabled true } } dependencies { ... implementation ‘androidx.multidex:multidex:2.0.1’ } MyApplicatio 阅读全文
posted @ 2020-12-11 11:07 野鸡码农 阅读(234) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/p/edce7af3691a 目录结构: 1、初始化node项目 在命令行输入:npm init 2、安装express 在命令行输入:npm install express 3、然后创建server.js文件 const express = requ 阅读全文
posted @ 2020-12-09 14:42 野鸡码农 阅读(1311) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/tu_bingbing/article/details/24143249 public class FramentTest2Activity extends ActionBarActivity { @Override protected void onCr 阅读全文
posted @ 2020-11-30 15:09 野鸡码农 阅读(270) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/p/ef6cbf5ade71 方法一:11.25新建的项目 app的build.gradle下面: android { //只需要这样就行了 compileOptions { sourceCompatibility JavaVersion.VERSIO 阅读全文
posted @ 2020-11-25 16:06 野鸡码农 阅读(442) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/p/e8c831e9ae73 “强烈推荐fragment的继承类不要去实现带参的构造函数,因为这些带参构造函数在fragment被再次实例化的时候将不会被调用,那么这些参数也就丢失,建议通过setArguments方式进行参数传递。” 阅读全文
posted @ 2020-11-24 18:20 野鸡码农 阅读(1408) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/zhongshanyishi/article/details/83616293 最近项目上遇到一个问题,页面最外层布局是一个FrameLayout,其内部有两层布局,底层是页面内容布局(可交互部分),上层是缺省布局,用于展示各种异常状况(比如未登录、无网络 阅读全文
posted @ 2020-11-18 19:01 野鸡码农 阅读(4492) 评论(0) 推荐(0)
摘要: /* * 参考:https://blog.csdn.net/a940659387/article/details/79747479 */ public void setStatusBarWordBlack(Dialog dialog) { Window window = dialog.getWind 阅读全文
posted @ 2020-11-18 18:05 野鸡码农 阅读(833) 评论(0) 推荐(0)
摘要: /* * 获取底部栏的高度 */ public int getNavigationHeight(Context context) { if (context == null) { return 0; } if(checkHasNavigationBar(context)){ //这个函数请查看上一片 阅读全文
posted @ 2020-11-18 18:04 野鸡码农 阅读(741) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/zhoukongxiao/article/details/84139737 private boolean checkHasNavigationBar(Context context) { boolean hasNavigationBar = false; 阅读全文
posted @ 2020-11-18 18:02 野鸡码农 阅读(1311) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 38 下一页