ScenarioEntityManager.persistEntityManager.mergeSessionManager.saveOrUpdateObject passed was never persisted1. Object added to persistence context as ...
分类:
其他好文 时间:
2014-10-10 14:50:34
阅读次数:
182
先上效果图:
动画效果有点差.....
代码:
package com.example.scrolltextview;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import android.content.Context;
import android.content...
分类:
其他好文 时间:
2014-10-10 12:51:24
阅读次数:
257
Android读取自定义View属性attrs.xml : activity_main.xml : MyView.java :public MyView(Context context, AttributeSet attrs) { super(c...
分类:
移动开发 时间:
2014-10-10 11:41:54
阅读次数:
168
最近想看看协程,对这个的具体实现不太了解,查了下,协程最常规的做法就是基于makecontext,getcontext,swapcontext这类函数在用户空间切换用户上下文。
所以在这通过例子代码尽量把context相关的函数弄清楚先。
#include
#include
#include
static ucontext_t uctx_main, uctx_func1, uctx_f...
分类:
其他好文 时间:
2014-10-10 00:18:28
阅读次数:
324
context = context.Replace(@"""", "");
分类:
其他好文 时间:
2014-10-09 22:07:47
阅读次数:
151
1.JPA的实体生命周期:JPA的实体有以下4中生命周期状态:(1).New:瞬时对象,尚未有id,还未和Persistence Context建立关联的对象。(2).Managed:持久化受管对象,有id值,已经和Persistence Context建立了关联的对象。(3).Datached:游...
分类:
其他好文 时间:
2014-10-09 20:27:27
阅读次数:
296
@RemoteViewpublic class Button extends TextView { public Button(Context context) { this(context, null); } public Button(Context context, Attribu...
分类:
移动开发 时间:
2014-10-09 19:36:07
阅读次数:
279
清除浮动(clear float)谈拥有布局(has layout)与块级格式化范围(block formatting context)float是网页布局中都要使用的css属性,他为我们灵活布局提供了方便,但同时浮动太多会带来很多麻烦,所以我通常的做法是使用float完后,马上清除他。float的...
分类:
其他好文 时间:
2014-10-09 14:06:53
阅读次数:
223
package com.xys.fastword.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.RectF;
impor...
分类:
其他好文 时间:
2014-10-09 02:15:18
阅读次数:
160
Spring的持久化用于简化数据的操作。
数据源
数据源有多种类型:JNDI、连接池、JDBC。
JNDI的配置方法。例子中使用Tomcat作为Web容器。首先要在context.xml中加上下面这段代码。
<Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"
...
分类:
编程语言 时间:
2014-10-09 02:08:07
阅读次数:
407