import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
im...
分类:
其他好文 时间:
2014-05-26 05:49:01
阅读次数:
284
在用ActivityGroup实现的TabHost时,由tab1切换到tab2再切换回来时,会重新加载tab1里的activity
public class MainUIActivity extends ActivityGroup{
private Context context=this;
private TabHost mTabhost;
private String TAB...
分类:
移动开发 时间:
2014-05-26 05:04:45
阅读次数:
287
1 用两个大括号括起来的文字{{person_name}} 称为变量2 被
大括号和面分号包围的文件({% if ordered_warranty %})是模板标签3 过滤器是用管道符(|)
和Unix管道符一样4一旦你创建一个Template对象,你可以用context来传递数据给它。 一个con...
分类:
编程语言 时间:
2014-05-26 01:28:12
阅读次数:
394
BULK COLLECT 可以降低 SQL 引擎到 PL/SQL 引擎的上下文交换(context
switch)次数,,从而实现数据的高速检索。”并不是限制必须一次完成。Oracle 提供了 LIMIT
子句,可以限制每次从表中获取的记录数,测试如下:SQL> select count(*) fr...
分类:
其他好文 时间:
2014-05-26 01:20:07
阅读次数:
273
In this article let us see how to create
Context Menu in Windows Forms application using C#IntroductionIn this article we
will see how to create Conte...
分类:
移动开发 时间:
2014-05-26 01:00:30
阅读次数:
555
I try the one of your approach, it works well
in my computer. Below is my code: public void AddContextMenu() { ContextMenu
mnuContextMenu = new Con...
分类:
其他好文 时间:
2014-05-26 00:36:55
阅读次数:
266
在写Android程序时,有时候会编写自定义的View,使用Inflater对象来将布局文件解析成一个View。本文主要目的是总结获取LayoutInflater对象的方法。
1、若能获取context对象,可以有以下几种方法:
LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYO...
分类:
移动开发 时间:
2014-05-24 18:12:21
阅读次数:
274
package com.storm.ui;import
android.content.Context;import android.graphics.Bitmap;import
android.graphics.Canvas;import android.graphics.Color;import...
分类:
其他好文 时间:
2014-05-24 14:07:05
阅读次数:
199
/** * 根据手机的分辨率从 dp 的单位 转成为 px(像素) */ public
static int dip2px(Context context, float dpValue) { final float scale =
context.getResources().getDispla.....
分类:
移动开发 时间:
2014-05-24 12:46:52
阅读次数:
313
getApplicationContext()Application context is
associated with the Applicaition and will always be the same throughout the life
cycle.getBasecontext()s...
分类:
移动开发 时间:
2014-05-24 09:23:43
阅读次数:
249