原创 03 Array

 Array 轉化方法 var colors =["red","blue","green"]; colors.toString(); col

原创 07 內置對象

內置對象 不必顯示的實例化內置對象,Global和Math 一.Global對象 1,URI編碼方法 encodeURI();用於整個URI,不會對本身屬於URI的特殊字符進行編碼,如冒號,正斜槓,問號,井號 encodeURIComp

原创 HTML5 01 標籤的改變

Html5標籤的改變 1.新的文檔類型聲明 2.新增的標籤 3.刪除的標籤 4.重新定義的標籤 5.新的界面佈局 1.HTML5的DTD聲明方式 <!doctype html> 在編寫HTML5文檔時,要求制定文檔類型,一確保瀏覽器能在H

原创 HTML5 06 Canvas SunSystem

<!doctype html> <html> <head></head> <body> <canvas id="canvas" width="1000" height="1000" style="background:#000">

原创 FullScreen

private void toggleFullscreen(boolean fullscreen) { WindowManager.LayoutParams attrs = getWindow().getAttributes

原创 HTML 08 CSS3 文字

text-overflow屬性 作用:設定內容溢出狀態下的文本處理方式。 取值: clip: 默認值當對象內文本溢出時不顯示省略標記(...),而是將 溢出的部分裁切掉。  ellipsis:當對象內文本

原创 HTML5 06 canvas實例 畫圖板

HTML <!doctype html> <html> <head> <link href="canvas.css" type="text/css" rel="stylesheet" /> </head> <body> <h

原创 刮刮卡效果

public class ScratchImageView extends ImageView { private String Tag = "ScratchImageView"; //回調方法 public i

原创 123123123123

public class TestDB { //存放授權數據 public static Collection<String> colDB= new ArrayList<String>(); sta

原创 自定義toast樣式和指定顯示位置

<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid an

原创 touch

http://www.cnblogs.com/net168/p/4165970.html http://www.cnblogs.com/sunzn/archive/2013/05/10/3064129.html

原创 SideBar

public class Sidebar extends View { private TextView mDialog; private int singleHeight; private Paint mPain

原创 memento

//備忘錄模式窄接口,沒有任何方法定義 public interface Memento { } //原發器對象 public class Originator { //示意,表示原發器狀態 private String s

原创 阿斯蒂芬 阿斯蒂芬

1.androidstudio學習 android studio快捷鍵ctrl+shift+N文件查找ctrl+shift+F查找ctrl+alt+L格式化 ctrl+alt+t常用結構語句ctrl+alt+m封裝方法ctrl+fctr

原创 HTML5 07 CSS3新增選擇器

元素選擇器 *    通配選擇符 所有元素對象。 E 類型(HTML)選擇符 以文檔語言對象類型作爲選擇符。 E#myid id選擇符 以唯一標識符id屬性等於myid的E對象作爲選擇符。 E.my