笔记
weixin_35819309
这个作者很懒,什么都没留下…
展开
-
android.content.res.Resources$NotFoundException: Resource is not a ColorStateList (color or path): T
给自己看的android开发笔记1.android.content.res.Resources$NotFoundException: Resource is not a ColorStateList (color or path): TypedValuejava.lang.RuntimeException: Unable to start activity ComponentInfo{com.oko原创 2016-08-08 12:07:53 · 2050 阅读 · 0 评论 -
Token反Base64中文乱码
android自带Base64工具android.util.Base64几个flag的测试: usrInfoJson NO_WRAP :{"uid":"NBl8kn","name":"404]�*9�-[{.k:��H"�&�B#�Css�#b�&W�#�Cs3cc#g� usrInfoJson URL_SAFE :{"uid":"NBl8kn","name":"原创 2016-08-09 11:16:18 · 6071 阅读 · 0 评论 -
android 创建文件时提示open failed: ENOENT (No such file or directory)
mkdirs创建目录总是失败,折腾了大半天。文件路径为Environment.getExternalStorageDirectory().getAbsolutePath() + “/XXX/Share/”;参考 http://stackoverflow.com/a/29370760/5365910mediaFile = new File(Environment.getExternalStorageD原创 2016-09-13 11:31:19 · 1428 阅读 · 0 评论 -
混淆修改proguard-android.txt无效
项目中添加了fresco,官方提供的混淆方法:android { buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-fresco.pro' } }原创 2016-08-25 11:13:57 · 1775 阅读 · 0 评论 -
Android 引导页浮层挖洞
用户第一次进入应用需要显示引导,有的按钮位置由于分辨率不同,没法简单的用UI扣好的图片遮盖,而且也浪费内存。参考了大神写的文章 http://www.jianshu.com/p/5aa96683d0dc, 把引导页画在Activity的DecorView上。但是感觉挖洞的部分写起来太麻烦,又借鉴了一些思路: http://blog.csdn.net/iispring/article/details原创 2016-09-08 11:04:05 · 3291 阅读 · 0 评论 -
android 不自动focus EditText
github链接找不着了在EditText旁边放一个<LinearLayout android:layout_width="0dp" android:layout_height="0dp" android:focusable="true" android:focusableInTouchMode="true" />再把EditText的原创 2016-12-27 17:42:49 · 327 阅读 · 0 评论