2019年9月4日
摘要: #include <graphics.h>#include <conio.h>#include <math.h>#include <stdio.h>#pragma comment(lib,"Winmm.lib") // 引用 Windows Multimedia API #define High 8 阅读全文
posted @ 2019-09-04 17:13 激流勇进1 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 基本思想也很简单:通过WebChromeClient的方法以startActivityForResult的方式打开系统的文件选择器,选择文件后在onActivityResult中将结果回传给Webview即可。 当你的App最低支持版本为Android5.0及以上就很简单了,只要重写WebChrom 阅读全文
posted @ 2019-09-04 17:12 激流勇进1 阅读(736) 评论(0) 推荐(0) 编辑
摘要: 2.1 Activity::setContentView() public void setContentView(@LayoutRes int layoutResID) { getWindow().setContentView(layoutResID); initWindowDecorAction 阅读全文
posted @ 2019-09-04 17:12 激流勇进1 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 由以上2.1~2.6对源码的分析,可以得到以下结论: 3.1 Activity、Window和View的依赖关系: 3.2 setContentView()执行的序列图: Activity展示的其实是PhoneWindow上的内容。那么其实 setContentView 实际上是调用的 PhonwW 阅读全文
posted @ 2019-09-04 17:12 激流勇进1 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 在进行unity游戏制作的C#代码编写时,会遇到“NullReferenceException: Object reference not set to an instance of an object”这样的错误提示。错误的意思翻译过来是“未将对象引用到对象的实例”,意思就是声明了对象,却没有给它 阅读全文
posted @ 2019-09-04 17:12 激流勇进1 阅读(42316) 评论(0) 推荐(0) 编辑