上一页 1 2 3 4 5 6 ··· 16 下一页
摘要: 1.添加jar 2.在application.properties中设置自定义属性 3.自定义对象 4.可直接使用 阅读全文
posted @ 2018-05-28 10:43 H_bolin 阅读(943) 评论(0) 推荐(0) 编辑
摘要: Spring Boot默认将应用打包成可执行的jar包。有时候需要打包成war包部署在tomcat等容器。下面简单介绍下打包的步骤。 一、修改gradle.build文件 1.1 添加如下配置 1.2 修改依赖,将tomcat的依赖范围修改为providedCompile 二、主类继承SpringB 阅读全文
posted @ 2018-05-16 18:53 H_bolin 阅读(1177) 评论(1) 推荐(0) 编辑
摘要: fragment中请求网络。。 子fagnment 复用已经加载的数据 阅读全文
posted @ 2018-05-08 11:37 H_bolin 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1. 在application.properties 中增加 2. 设置 File Encodings的Transparent native-to-ascii conversion为true,具体步骤如下:依次点击 File -> Settings -> Editor -> File Encodin 阅读全文
posted @ 2018-04-26 14:29 H_bolin 阅读(2418) 评论(0) 推荐(0) 编辑
摘要: // 代码设置toolbar返回键颜色为白色 val upArrow = ContextCompat.getDrawable(this, R.drawable.abc_ic_ab_back_material) upArrow?.setColorFilter(ContextCompat.getColor(this, android.R.color.w... 阅读全文
posted @ 2018-04-19 10:09 H_bolin 阅读(2464) 评论(0) 推荐(0) 编辑
摘要: PackageManager manager = getContext().getPackageManager(); if (manager.queryIntentActivities(intent, 0).size() > 0) { startActivity(intent); } // Verify that the intent will resolve to an activit... 阅读全文
posted @ 2018-04-18 14:01 H_bolin 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 作者:Vincross链接:https://www.zhihu.com/question/60495696/answer/204530120来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 下面是正经的科普时间。 文件扩展名是什么? 是操作系统用来标注文件格式的一种机制 阅读全文
posted @ 2018-04-17 23:07 H_bolin 阅读(388) 评论(0) 推荐(0) 编辑
摘要: ConstraintLayout是Android Studio 2.2中主要的新增功能之一,也是Google在去年的I/O大会上重点宣传的一个功能,可以把ConstraintLayout看成是一个更高级的RelativeLayout,它可以通过控件之间的相互约束,在一层view中实现非常复杂的布局。 阅读全文
posted @ 2018-04-16 11:21 H_bolin 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 概述: 为了保护系统的完整性和用户隐私权,Android 在访问受限的沙盒中运行每款应用。 如果应用需要使用其沙盒以外的资源或信息,则必须明确请求权限。 根据应用请求的权限类型,系统可能会自动授予权限,也可能会要求用户授予权限。 权限最佳做法: 1.考虑使用intent 例子:MainActivit 阅读全文
posted @ 2018-04-10 17:57 H_bolin 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 输入为:2 阅读全文
posted @ 2018-02-26 22:25 H_bolin 阅读(312) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 16 下一页