04 2018 档案

摘要: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 阅读(2447) 评论(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 阅读(2585) 评论(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 阅读(216) 评论(0) 推荐(0)
摘要:作者:Vincross链接:https://www.zhihu.com/question/60495696/answer/204530120来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 下面是正经的科普时间。 文件扩展名是什么? 是操作系统用来标注文件格式的一种机制 阅读全文
posted @ 2018-04-17 23:07 H_bolin 阅读(464) 评论(0) 推荐(0)
摘要:ConstraintLayout是Android Studio 2.2中主要的新增功能之一,也是Google在去年的I/O大会上重点宣传的一个功能,可以把ConstraintLayout看成是一个更高级的RelativeLayout,它可以通过控件之间的相互约束,在一层view中实现非常复杂的布局。 阅读全文
posted @ 2018-04-16 11:21 H_bolin 阅读(149) 评论(0) 推荐(0)
摘要:概述: 为了保护系统的完整性和用户隐私权,Android 在访问受限的沙盒中运行每款应用。 如果应用需要使用其沙盒以外的资源或信息,则必须明确请求权限。 根据应用请求的权限类型,系统可能会自动授予权限,也可能会要求用户授予权限。 权限最佳做法: 1.考虑使用intent 例子:MainActivit 阅读全文
posted @ 2018-04-10 17:57 H_bolin 阅读(468) 评论(0) 推荐(0)