摘要:
使用场景:设置高斯模糊处理过的Screen Shot为顶层View的背景。 因此: 1. onCreate时候,hide顶层view(蓝牙搜索View),显示下一层View,然后获取Screen Shot,设置为蓝牙搜索View的背景。 2. 从后台切换,再次进入App的时候,则什么都不做 阅读全文
摘要:
1. update时候,column为text,则sql应该是:update table_name set column1 = 'xxx'。必须加单引号,否则会Error:no such column 2. 自增长字段:id INTEGER PRIMARY KEY AUTOINCREMENT (主键 阅读全文
摘要:
iOS:https://developer.apple.com/support/app-store/ Android:https://developer.android.com/about/dashboards/index.html 阅读全文
摘要:
1. px, sp, dip, PPI 的区别 px:pixels(像素)。不同设备显示效果相同 sp:scaled pixels(放大像素)。主要用于字体显示(best for textsize) dip:device independent pixels(设备独立像素)。不同的设备有不同的显示效 阅读全文
摘要:
1. 创建真机调试证书(配置Distribution证书与之流程一样): http://jingyan.baidu.com/article/ff411625b8141312e48237a7.html 2. 打包时: 2.1 Error ITMS-4238:Redundant Binary Uploa 阅读全文
摘要:
1. App第二次Load的时候Crash,首次Load正常 可能原因:App Cache造成 实际项目:Gemini App For Android,Unity中Cache造成 解决办法:每次Load时候,清空Cache 2. 阅读全文
摘要:
package cc.makeblock.android.utils; import android.R.integer; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.Pai 阅读全文
摘要:
1. 破解教程:http://jingyan.baidu.com/article/ce09321b7478072bff858f03.html 2. Office for Mac 2016(15.11.2)安装包下载: MS官网链接: http://officecdn.microsoft.com/pr 阅读全文
摘要:
主要思路:根据FontMetrica计算Text的高度,根据Rect计算Text的宽度。两者与字体,字号有关系 参考文章: http://blog.csdn.net/hursing/article/details/18703599 http://blog.csdn.net/sirnuo/articl 阅读全文
摘要:
private void addViewByCode(){ View subView = new View(context); subView.setBackgroundColor(Color.RED); //subView的宽高 int subViewwidth = 700; int subVie 阅读全文