1.“alt”+“/”(代码补全):2.“ctrl”+“alt”+“h”(call hierarchy-----显示一个方法的调用层次,被哪些方法调用)3.“ctrl”+“shift”+“t”(查找在哪些包中包含RegisDb类)4.“ctrl”+“h”(通过不同方式,查找需要的内容对应的文件或者目...
分类:
系统相关 时间:
2014-12-15 13:44:39
阅读次数:
157
通常地 fragment做为宿主activity UI的一部分, 被作为activity整个view hierarchy的一部分被嵌入. 有2种方法你可以添加一个fragment到activity layout:一、在activity的layout文件中声明fragment 你可以像为View一样....
分类:
移动开发 时间:
2014-12-15 11:58:33
阅读次数:
222
android异常:android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
出现这个异常的原因是你在子线程中修改了主线程中的组件的状态或数据。
android规定:只有在原始线程中(主...
分类:
移动开发 时间:
2014-12-13 17:59:44
阅读次数:
171
报的异常错误:android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.解决方法:使用Han...
分类:
移动开发 时间:
2014-12-13 00:56:50
阅读次数:
237
在跟随教程学习到显示web页面的html源码时报错:Only the original thread that created a view hierarchy can touch its views,通过网上查找资料得知:android中相关的view和控件不是线程安全的,必须单独做处理。如果要更...
分类:
其他好文 时间:
2014-12-12 18:40:56
阅读次数:
146
要想编写高效的程序,那么一定要对内存结构有比较深刻的认识,就像C/C++里面的堆内存,栈内存,全局存储区,静态存储区,常量区等。Cuda是并行计算框架,而GPU的内存有限,那么如果想编写高效的Cuda程序,首先要对其内存结构有一个简单的认识。...
分类:
其他好文 时间:
2014-12-12 00:05:52
阅读次数:
298
这篇说说如何从JVM的角度来理解线程,可以对Java的线程模型有一个更加深入的理解,对GC的一些细节也会理解地更加深刻。本文基于HotSpot的OpenJDK7实现。
我们知道JVM主要是用C++实现的,JVM定义的Thread的类继承结构如下:
Class hierarchy
- Thread
- NamedThread
- VMThread
-...
分类:
编程语言 时间:
2014-12-10 14:20:18
阅读次数:
212
http://dearymz.blog.163.com/blog/static/20565742013341916919/编辑器:Hierarchy窗口中是场景中的Game Object列表Project窗口中是磁盘上Assets文件夹中的内容,可用来创建Game Object调试:调试用Debug...
分类:
编程语言 时间:
2014-12-10 12:07:48
阅读次数:
404
android 是不允许子线程直接更新UI的,如果一定要在子线程直接更新UI就会出现android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy...
分类:
移动开发 时间:
2014-11-24 16:42:03
阅读次数:
238
void findContours(InputOutputArray image, OutputArrayOfArrays contours, OutputArray hierarchy, int mode, intmethod, Point offset=Point()) Parameters: ...
分类:
其他好文 时间:
2014-11-23 18:47:58
阅读次数:
308