- 浏览: 169796 次
- 性别:
- 来自: 北京
-
最新评论
-
wangzhengfu:
看你这文章很纠结,既然把图贴出来了,为啥不贴上代码呢
android EditText 去除边框 -
sovio:
...
android EditText 去除边框 -
kdac:
啥J8翻译啊,谷歌翻译贴出来的吧?翻译不了就放原文,不伦不类, ...
android 弹出软键盘将底部视图顶起问题 -
shiny_txdd:
17:34:47,806 ERROR [ContextLoad ...
tomcat项目转jboss5.0 -
lenomon:
这里有篇实现无下划线的,Android使用TextView实现 ...
Android TextView中文字设置超链接、颜色、字体
文章列表
Entity:
An
Entitiy is an object that can be drawn, like Sprites, Rectangles, Text
or Lines. An Entity has a position/rotation/scale/color/etc...
一个entitiy是一个可以被画的物体,像Sprites,矩形,文本或线。一个实体有一个位置/旋转/重力/彩色/等等
1.IEntity接口
public interface IEntity extends IDrawable, IUpdate ...
Scene:
The
Scene class is the root container for all objects to be drawn on the
screen. A Scene has a specific amount of Layers, which themselves can
contain a (fixed or dynamic) amount of Entities. There are subclasses,
like the CameraScene/HUD/MenuScene that are drawing themselves to ...
var nodeIndex=0;
function addChannelNode()
{
nodeIndex++;
var table=$("#nodeTable")[0];
var tr = document.createElement('tr');
tr.id = ''+nodeIndex+'';
table.appendChild(tr);
var td0 = document.createElement('td');
tr.appe ...
Struts2防止表单重复提交
2009年04月14日 星期二 11:37
在开发的时候,很多时候会需要防止用户重复提交表单。在
Strut2
中可以方便的实现这个功能。
防止表单重复提交主要用到的标签是<s: token />,拦截器
<
interceptor-ref
name
="token"
/>,
还有一个默认的返回值
<
result
name
="invalid.token">
/input.jsp
</
result
>
...
在页面使用了frameset。在session失效后需望转到登录页面,此时会在管理台页面的一个子页面中显示登录界面
解决方法是:可以在登录页面中加入以下js代码。
Java代码
if
(top.location != self.location){
top.location=self.location;
}
1。
"ORA-00942: 表或视图不存在 "的原因和解决方法
Posted on 2008-07-21 13:35 张荣华
阅读(10899) 评论(1)
编辑
收藏
所属分类: DB
<!-- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madski ...
Engine:
The
Engine make the game proceed in small discrete steps of time. The
Engine manages to synchronize a periodic drawing and updating of the
Scene, which contains all the content that your game is currently
handling actively. There usually is one Scene per Engine, except for the ...
不用handler更细页面的另一种更新方式:
AsyncTask enables proper and easy use of the UI thread. This class allows to
perform background operations and publish results on the UI thread without
having to manipulate threads and/or handlers.
When an asynchronous task is executed, the task goes through 4 st ...
BaseGameActivity:
The BaseGameActivity is the root of a game, that contains an Engine and manages to create a SurfaceView the contents of the Engine will be drawn into.
There is always exactly one Engine for one BaseGameActivity. You can
proceed from one BaseGameActivity to another using c ...
Loading Resources In The Background With A Loading Screen
Well, after searching for this for the last two days it seems that
either no one has figured it out, or no one has shared such information.
So, here goes.
I read about people trying this with opening ne ...
此案例适用于多个按钮模拟菜单的场景:
布局示意图:
实现代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
...
此范例用来实现用户登录等场景布局:
布局示意图:
实现代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout1"
android:layout_height="365px"
android:layout_width=& ...
此例用于实现产品说明书等相关布局:
布局示意图:
实现代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android ...
ndroid有多种布局格式,这里只是详细介绍常用的五种格式。RelativeLayout、LinearLayout、
FrameLayout、AbsoluteLayout、TableLayout.。其中LinearLayout和RelativeLayout是最常
用的格式,他们可以通过xml配置文件进行布局。可以查看相关api:
http://developer.android.com/reference/android/widget/package-summary.html
我这里这是简单介绍这五种格式.
1、FrameLayout
最简单的 ...
摘 要:本文从Windows及C语言编程基础出发,重点介绍了如何使用OpenGL来实现动画
的原理与方法,并通过相关实例进行了验证。
关 键 词:OpenGL,API, 双缓冲技术,渲染,计时器
1.引 言
OpenGL是一种相对新的工业标准 ...