
解决bug
等风来&
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Android 开启代码混淆后报错 Execution failed for task ‘:app:processProdReleaseResources‘
Execution failed for task ':app:processProdReleaseResources'.> AAPT2 aapt2-3.2.1-4818971-windows Daemon #0: Unexpected error during link, attempting to stop daemon. This should not happen under normal circumstances, please file an issue if it does.原创 2020-07-14 10:00:15 · 4567 阅读 · 0 评论 -
glide展示图片的拉伸问题
最近写项目的时候发现ListView GridView 用glide展示图片会出现图片拉伸的情况。解决方法:1.取消展示时的crossFade()动画效果。 Glide.with(context).load(resId).placeholder(defaultId).dontAnimate().into(imageView);2. AsBitm原创 2016-08-16 10:41:51 · 1665 阅读 · 0 评论 -
path 动画与canvas 动画在部分机型不显示的问题
最近在用path写一个心电图动画,发现动画完成以后在5.0以上正常显示,5.0以下的机型不显示,反复看了代码发现PathMeasure的getSegment(float startD, float stopD, Path dst, boolean startWithMoveTo)在API<=19的时候开启硬件加速会引起这个path 动画不可见。先说官方提供的解决方案:在调用getSegmen...原创 2018-03-02 17:37:38 · 567 阅读 · 0 评论 -
Android tween动画无限循环每个周期之后会停顿一段时间
解决方案:为补间动画加上一个LinearInterpolator插值器即可解决停顿的原因是:没有为动画手动设置插值器的时候,系统默认是AccelerateDecelerateInterpolator。具体在源码Animation的816行如下 /** * Gurantees that this animation has an interpolator. Will use * ...原创 2018-03-06 17:05:01 · 3741 阅读 · 0 评论 -
cause:java.util.UnknownFormatConversionException: Conversion = 'End of String'
问题原因:<string name="x_extended_by">enlarged by %1$s!</string>String x= getResources().getString(R.string.x_extended_by); String count= String.format(x, 2); 1.有多语言的时候可能是某个多语言翻译时少了一个占位符2.没有...原创 2018-04-25 15:34:44 · 8438 阅读 · 0 评论 -
ScrollView嵌套GridView导致getView时 position=0多次调用
多次调用的原因:GridView的宽度高度不确定,getView会多执行position=0来计算item的高度和宽度。经测试可用的解决方案:(禁止多次执行position=0的方法暂无,以下代码仅避免对应逻辑多次被调用) if (parent.getChildCount()== position) {//对应逻辑代码 }else{//其他处...原创 2018-08-30 18:52:41 · 469 阅读 · 0 评论