Android
ykqidev
不在沉默中爆发,就在沉默中灭亡--奋斗吧
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Android Studio中的布局文件分类整理(创建子目录)
当一个项目越做越大的时候,res/layout中的布局文件就会越来越烦杂,没有层次感。而对于该问题,我们是否有更好的解决方法呢?以下主要介绍两种解决该问题的思路。一、在res/layout中,自己手动来创建所需要分类层次。(先上张图)1.首先就是把你的项目备份,以防万一。2.接下来就正式如题:根据上图创建出你所需要的分类模块名,在模块名里面再创建layout目录。然后将对应的布局文...原创 2017-06-19 17:42:07 · 5908 阅读 · 0 评论 -
对于解决androidstudio编辑时发生的错误Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Androidstudio 运行不起来,报错详情:Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(cn.bmob.v3.util.Tempest) that doesn't come with anError:associated EnclosingMethod attr...原创 2017-04-27 13:10:18 · 6901 阅读 · 0 评论 -
学习TODO-MVP,出现的错误异常:transformClassesWithNewClassShrinkerForDebug error
TODO-MVP 是Android Architecture Blueprints中讲解的第一种架构,是一个基本的 MVP 架构。在import project后,在编辑 run TODO-MVP,Androidstudio 运行不起来,报错详情:Error:Execution failed for task ':app:transformClassesWithNewClassShr...原创 2017-05-23 09:57:23 · 2261 阅读 · 0 评论 -
对于解决androidstudio编辑时发生的错误Didn't find class “android.support.design.widget.AppBarLayout”
Androidstudio 运行不起来,报错详情:PID: 21748 java.lang.RuntimeException: Unable to start activity ComponentInfo{cn.yuntusoft.grouplive/cn.yuntusoft.grouplive.ui.MainActivity}: android.view...原创 2017-05-18 17:36:28 · 10609 阅读 · 0 评论 -
android phone 6.0 对危险权限的判断
//android phone 6.0 对危险权限的判断 if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) { int hasWriteContactsPermission; hasWriteContactsPermission = checkSelfPermissi...原创 2017-07-19 18:14:55 · 582 阅读 · 0 评论 -
Environment类的方法与常量
Environment类中提供了几个静态常量用于标识外部存储的状态,这些状态都是String类型:MEDIA_BAD_REMOVAL //在没有挂载前存储媒体已经被移除。MEDIA_CHECKING //正在检查存储媒体。MEDIA_MOUNTED //存储媒体已经挂载,并且挂载点可读/写。MEDIA_MOUNTED_READ_ONLY //存储媒体已经挂载,挂载点只...原创 2017-06-05 18:23:57 · 1001 阅读 · 0 评论
分享