主要原理是:extends view重载onDrow(),需要一bitmap,重载view,在 canvas上画临时bmp,当按下确定的时候按下
画到real_bmp上,其他的跟前面的基本上没有什么区别。
import com.example.test.R;
import android.app.Activity;
import android.content.Con...
分类:
移动开发 时间:
2014-05-10 09:23:24
阅读次数:
601
出现乱码需要检查的项目:数据库编码、文件本身的字符集、html解析的字符集,如若上述项目编码一致仍然出现乱码,查看一下浏览器的编码,如果和设置的不一样说明上述设置有部分未成功,可以尝试使用header()函数再转化一下。FYI:1.
header("Content-type: text/html; ...
分类:
Web程序 时间:
2014-05-08 21:28:22
阅读次数:
331
因idea13版本与12版本配置兼容性不是很好,许多之前的配置不能用了。故重新学习配置了一遍,将其过程记录下来,作为将来参考使用1.显示行号Settings->Editor->Appearence->Show
Line Number2.修改主题Settings->Appearance->Theme-...
分类:
其他好文 时间:
2014-05-08 20:28:01
阅读次数:
275
using Microsoft.Phone.Shell;ShellToast toast =
new ShellToast();toast.Title = "程序标题"; toast.Content = "内容"; toast.NavigationUri
= new Uri("...
分类:
其他好文 时间:
2014-05-07 19:29:04
阅读次数:
271
http://www.360doc.com/content/13/0102/22/6541311_257754535.shtml
分类:
移动开发 时间:
2014-05-07 19:03:30
阅读次数:
726
原文:WP 前台或后台显示ShellToastusing
Microsoft.Phone.Shell;ShellToast toast = new ShellToast();toast.Title = "程序标题";
toast.Content = "内容"; toast.NavigationUri...
分类:
其他好文 时间:
2014-05-07 09:13:23
阅读次数:
283
package com.example.activity2;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class MainActivi...
分类:
其他好文 时间:
2014-05-07 05:19:34
阅读次数:
349
当使用移动设备进行触控操作时,最常用的就是轻击、按住屏幕或者手势操作,jQuery Mobile可以通过绑定的触控事件来响应使用者的特定触控行为。一、轻击与按住直接上代码(一切皆在代码中,细细品吧!)
练习
<meta name="viewport" content="width=device-width,
initial-scale=1.0, maximum-scale=1....
分类:
移动开发 时间:
2014-05-07 04:45:59
阅读次数:
426
为了方便说明和更加直观的展示jquerymobile的页面初始化过程以及各个事件的触发过程,我绘制了一幅流程图:图中用红色框圈起来的是界面中的事件,测试代码如下:
练习
<meta name="viewport" content="width=device-width,
initial-scale=1.0, maximum-scale=1.0, user-scalable=0;...
分类:
移动开发 时间:
2014-05-07 04:40:07
阅读次数:
450
MyEclipse设置自动提示一MyEclipse设置自动提示:1、快捷键提示代码window-->Preferences的General-->Keys下修改ContentAssist的快捷键为Alt+/,这样就可以通过快捷键得到提示代码.一般,快捷键默认就是Alt+/.2、自动提示window-->preferences的java->Editor->Co..
分类:
系统相关 时间:
2014-05-06 16:22:54
阅读次数:
563