摘要: 博文连接:http://my.eoe.cn/lakeside/archive/15571.html 阅读全文
posted @ 2013-12-27 10:51 slowalker 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1.浏览器对象模型(BOM)使JavaScript有能力与浏览器“对话”。2.所有浏览器都支持window对象。它表示浏览器窗口。3.所有 JavaScript 全局对象、函数以及变量均自动成为 window 对象的成员,全局变量是 window 对象的属性,全局函数是 window 对象的方法。4.HTML DOM 的 document 也是 window 对象的属性之一。 1 2 3 4 5 6 7 8 18 19 View Code 5. windown.screen对象包含有关用户屏幕的信息。... 阅读全文
posted @ 2013-12-06 11:30 slowalker 阅读(248) 评论(0) 推荐(0) 编辑
摘要: JavaScript数据类型1.JavaScript中所有的事物都是对象,比如String,Date,Array等;JavaScript允许自定义对象。2.JavaScript 是面向对象的语言,但 JavaScript 不使用类。在 JavaScript 中,不会创建类,也不会通过类来创建对象。 1 2 3 4 5 6 7 28 29 View Code 3.JavaScript中的for...in遍历所有属性1 var person={fname:"Bill",lname:"Gates",age:56};2 var... 阅读全文
posted @ 2013-12-06 10:30 slowalker 阅读(159) 评论(0) 推荐(0) 编辑
摘要: JavaScript基础学习1. JavaScript可以直接写入HTML输出流 1 2 3 4 5 6 7 JavaScript能够直接写如HTML输出流中: 8 12 13 View Code 2. JavaScript能够对事件做出响应 1 2 3 4 5 6 7 我的第一段 JavaScript 8 JavaScript能够对事件做出反应。比如按钮的点击: 9 点击这里10 11 View... 阅读全文
posted @ 2013-12-05 11:24 slowalker 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1.在应用的配置文件中添加网络权限1 2 2.支持JavaScript1 //开启Javascript支持2 getSettings().setJavaScriptEnabled(true);3.支持页面图片加载1 //设置可以自动加载图片2 getSettings().setLoadsImagesAutomatically(true);4.重写shouldOverrideUrlLoading在WebView中显示新页面 1 //设置直接在webview中查看网页 2 setWebV... 阅读全文
posted @ 2013-11-24 15:24 slowalker 阅读(359) 评论(0) 推荐(0) 编辑
摘要: I find it quite easy to install and launch an App in android, which I thought it hard.You can install or launch a App as easy as start a Activity with some special Intent.The following little demo will show you:MainActivity.javapackage com.slowalker.applaunch;import android.os.Bundle;import android. 阅读全文
posted @ 2013-11-06 15:27 slowalker 阅读(210) 评论(0) 推荐(0) 编辑
摘要: VideoView Overview A VideoView is mainly used to display a video file. it can load images from various sources (such as resources or centent providers), takes care of computing its measurementfrom the video so that it can be used in any layout manager, and provides various display options such as s. 阅读全文
posted @ 2013-11-04 21:42 slowalker 阅读(273) 评论(0) 推荐(0) 编辑
摘要: ViewSwitcher1. ViewSwitcher is a subclass of ViewAnimator which is a subclass of Fragment.2. A ViewSwitcher is a ViewAnimator that switches between two views, and has a factory(ViewFactory) from which these views are created. You can either use the factory to create the views, or add them yourself.. 阅读全文
posted @ 2013-11-01 18:54 slowalker 阅读(295) 评论(0) 推荐(0) 编辑
摘要: ImageSwitcher is a subclass of ViewSwitcher. You can implement a ablum by ImageSwitcher.The following is a little demo:package com.slowalker.imageswitcherdemo;import android.os.Bundle;import android.app.Activity;import android.content.Context;import android.util.Log;import android.view.ActionMode;im 阅读全文
posted @ 2013-11-01 14:01 slowalker 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Different Ways to update UI in a none-ui thread:The following is a little demo showing three different ways to update ui in a none-ui thread and the best way i will commend is by a Handler.package com.slowalker.handlerdemo;import android.os.Bundle;import android.os.Handler;import android.os.Message; 阅读全文
posted @ 2013-10-31 21:50 slowalker 阅读(221) 评论(0) 推荐(0) 编辑