一些Bug
Mohon
这个作者很懒,什么都没留下…
展开
-
关于Android 4.x TextView出现超长打点只出现一个'.'问题
好多东西要学。。。有一次在项目中使用了 textView.setSingleLine(); textView.setEllipsize(TruncateAt.END);发现出现一个‘.’的问题,貌似是4.x的一个小bug解决在setText中的内容后面加一个 全角空格原创 2016-07-06 10:16:10 · 938 阅读 · 0 评论 -
关于new Canvas(Bitmap)中Bitmap的isMutable的要求
今天在项目中通过BitmapFactory.decodeResource(getResources(),R.drawable.demon,options);给Canvas作为构造参数,结果报了一个错因为:在canvas类中你可以看到无论是构造方法还是setBitmap(Bitmap bitmap) 中都有if (!bitmap.isMutable()) { throw new原创 2016-10-24 17:49:51 · 5698 阅读 · 1 评论 -
Android切换手机语言后让Activity重启问题---android:configChanges="locale|layoutDirection"
原因:没有在AndroidManifest.xml 中申明android:configChangesandroid:configChangesLists configuration changes that the activity will handle itself. When a configuration change occurs at runtime, the activity is s原创 2016-10-20 09:35:14 · 4684 阅读 · 0 评论 -
Unable to create Debug Bridge: Unable to start adb server
Unable to create Debug Bridge: Unable to start adb server: error: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。C:\Users\kelvin>adb kill-serverer原创 2016-11-17 17:51:55 · 769 阅读 · 0 评论 -
Hexo NexT 主题下 blockquote 文本内容超出不自动换行解决方式
搭建GitHub Page 中,使用Hexo NexT主题,用markdown 中的 blockquote 标签圈出文本时,出现以下情况解决办法: 修改 对应 theme下css 文件(如下路径): 修改base.styl ,blockquote 样式下 添加 word-break: break-all;blockquote { margin: 0; padding: 0;原创 2017-04-09 11:21:31 · 3558 阅读 · 0 评论