03 2013 档案
摘要:最近要将手机版的网站封装到apk中,找到了这篇文章,参考下:作为下一代的网页语言,HTML5拥有很多让人期待已久的新特性。HTML5的优势之一在于能够实现跨平台游戏编码移植,现在已经有很多公司在移动设备上使用HTML5技术。随着HTML5跨平台支持的不断增强和智能手机的迅速普,HTML5技术有着非常好的发展前景,甚至有人预言HTML5将引燃移动平台游戏开发技术的新革命。越来越多的开发者热衷于使用html5+JavaScript开发移动Web App。不过,HTML5 Web APP的出现能否在未来取代移动应用,就目前来说,还是个未知数。一方面,用户在使用习惯上,不喜欢在浏览器上输入复杂的网址;
阅读全文
摘要:xml代码:<Button android:id="@+id/button5" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/fullscreen" android:onClick="changescreen"/>java代码:private static boolean isfull=true; //全屏设置和退出全屏 private vo
阅读全文
摘要:贴代码:public void exitclick(View view) { AlertDialog.Builder aa=new AlertDialog.Builder(this); aa.setTitle("消息提示"); aa.setMessage("确认退出?"); aa.setIcon(R.drawable.icon); aa.setPositiveButton("确定",new DialogInterface.OnClickListener() { @Ove...
阅读全文
摘要:1.AndroidManifest.xml文件解析:http://www.cnblogs.com/pilang/archive/2011/04/20/2022932.html2.AlertDialogDialog alertDialog = new AlertDialog.Builder(this). setTitle("对话框的标题"). setMessage("对话框的内容"). setIcon(R.drawable.icon). create(); alertD...
阅读全文
摘要:对androidmanifest.xml进行配置即可:<supports-screens android:resizeable="true" />附:<supports-screensandroid:resizeable=["true"|"false"] android:smallScreens=["true" | "false"] android:normalScreens=["true" | "false"] android:larg
阅读全文
摘要:android:hintText="这里提示你该输入什么内容" android:inputType="none" android:inputType="text" android:inputType="textCapCharacters" android:inputType="textCapWords" android:inputType="textCapSentences" android:inputType="textAutoCorrect" andr
阅读全文
摘要:关于按钮事件,有很多种,参考:http://blog.sina.com.cn/s/blog_7013d1fe01014t3o.html使用个简单的:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_par
阅读全文
摘要:参考:http://blog.163.com/zhengjiu_520/blog/static/3559830620118157419374/设置如下:打开 Eclipse -> Window -> Perferences,会打开个Perferences 的设置界面。打开Editor选项卡 找到 auto activation triggers for java. 会看到只有一个“.”存在。表示:只有输入“.”之后才会有代码提示,我们要修改的地方就是这里,可是Eclipse默认只允许输入4个自定义字符。不过我们可以把当前的设置导出,保存为一个文件,然后在文件中修改,再导入设置,这样
阅读全文
摘要:一台安卓手机,usb线,手机驱动连接好,装好驱动,把手机调成调试状态在eclipse=》run=》run as看看行不行。。。。驱动解决的办法就是下载个手机助手,呵呵
阅读全文
摘要:1.安装java SDK下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html安装最新版:Java SE 7u17安装完后,进行环境配置:我的电脑->属性->高级->环境变量->系统变量中添加以下环境变量:JAVA_HOME值为: C:\Program Files\Java\jdk1.7.0_17(你安装JDK的目录)CLASSPATH值为:.;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\bin;Path:
阅读全文
摘要:常常用到iframe内嵌另一个页面,而这个页面里显示图片,当点击这个内嵌页面中的图片,让他在父级页面显示colorbox的效果1.首先iframe内页面额代码js: function colorBox() { var url = document.getElementById("bigPic").src; window.parent.showBigPic(url); }html:<img id="bigPic" src="<%=BigPic %>" ondblclick="colorBox()"
阅读全文
摘要:在ie中使用window.frames["Iframe1"].document.location="";无任何问题,可在谷歌中出现location未定义错误其真正原因还在浏览器的内核不一样,参照:http://blog.csdn.net/lzy_1515/article/details/6045629所以将iframe的id和name设成一样的即可<iframe frameborder="0" id="Iframe1" name="Iframe1" scrolling="yes&
阅读全文
摘要:1.官网:http://www.jacklmoore.com/colorbox2.使用方法推荐:http://blog.csdn.net/houpengfei111/article/details/80011873.自己简单使用:1.yinyong<script src="http://www.cnblogs.com/public/JsEasyUi/js/jquery-1.4.4.min.js" type="text/javascript"></script> <link href="http://www.cnbl
阅读全文
摘要:1.colorbox学习2.href="javascript:history.go(-1);"历史后退
阅读全文

浙公网安备 33010602011771号