Time of Update: 2015-01-22
標籤:字串 資源 android layout values res/drawable/映像型的資源檔;res/layout/可被編譯成螢幕布局的xml檔案;res/values/可被編譯成多種類型的資源檔:(1)array.xml 定義數組;(2)colors.xml
Time of Update: 2015-01-22
標籤:android_intel_x86_emulator_accelerator haxm eclipse_adt_x86 windows_xp 因為還有很大部分的學習環境仍然還在使用 Windows XP在練習及開發Android,有鑑於此, 為了協助這樣的一個族群同時於多版本的情境下用Android模擬器飆速測試及開發程式,0.
Time of Update: 2015-01-22
標籤:android開發 eclipse 安卓 sdk adt 忙活了兩天多的時間,終於在Eclipse中成功搭建了Android開發環境,著實不易啊!!原本我用的編譯器是MyEclipse的,但是從網上找不到如何在MyEclipse中搭建環境,於是乎就換了Eclipse,但是Eclipse的下載又費了不少勁。廢話不多說,為了讓
Time of Update: 2015-01-22
標籤:常用adb指令的總結:1.裝置.apk檔案則:假如其時只要一個模擬器。>adb instal/hello.apk假如有多個模擬器。如:需要擬定裝置在哪個模擬器上。運用:>adb devic指令檢查其時工作的模擬器的稱號然後:>adb-semulator-5556 instal/hello.apk2.檢查狀況>adb get-stateofflin離線)bootload開機中)devic工作中).>adb get
Time of Update: 2015-01-22
標籤:Tips: 調試 iPad 或 iPhone 可在設定中啟動偵錯模式,在 Mac 中的 Safari 瀏覽器 同樣開啟開發人員模式後,進行聯機調試。功能彪悍。最近在做一個頁面時,發現在 iPad 的 Safari 瀏覽器中背景顯示不全,定位到該 div 後發現所指定 css 的寬度為 100% ;到百度搜尋後發現,safari 中 viewport 預設寬度為 980px,若事先未指定其初始 viewport 寬度,則會預設按照 980px 處理。可以預設初始化 viewport
Time of Update: 2015-01-22
標籤:flabby bird surfaceview 遊戲 轉載請標明出處:http://blog.csdn.net/lmj623565791/article/details/42965779 ,本文出自:【張鴻洋的部落格】1、概述哈,記得以前寫過Android SurfaceView實戰 打造抽獎轉盤 ,
Time of Update: 2015-01-22
標籤: 當我們想給MKMapView添加拖動手勢時,第一個想法可能是這樣:- (void)viewDidLoad{ //.... UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)]; [self.mapView
Time of Update: 2015-01-22
標籤:利用國內的鏡像網點下載,這是東軟的:Android Android SDK配置步驟啟動 Android SDK Manager ,開啟主介面,依次選擇「Tools」、「Options...」,彈出『Android SDK Manager - Settings』視窗;在『Android SDK Manager - Settings』視窗中,在「HTTP Proxy Server」和「HTTP Proxy
Time of Update: 2015-01-22
標籤:本文轉載至http://blog.csdn.net/kqygww/article/details/41277555 64-bit and iOS 8 Requirements for New Apps 新提交的iOS8 App,64位成為必選項, 2015年2月1號生效October 20, 2014Starting February 1, 2015, new iOS apps uploaded to the App Store must include 6
Time of Update: 2015-01-22
標籤:R.java中儲存了項目中所有的資源全域索引bin存放編譯後的檔案asserts存放了需要釋放到手機的檔案libs第三方庫的存放目錄 ----------------------------------------------------產生秘鑰認證D:\Program Files\Java\jdk1.8.0_25\bin>keytool 命令: -certreq 產生認證請求 -changealias 更改條目的別名 -delete
Time of Update: 2015-01-22
標籤: 看了這麼多的文章,終於看懂了。參考文獻:【1】android developer handler【2】Android中Handler作用【3】 Android Thread Looper Handler 關係【4】android的訊息處理機制(圖+源碼分析)——Looper,Handler,Message1、從定義上理解Handler 首先有一下參考文獻【1】中的一句英文句子來說明下: A
Time of Update: 2015-01-22
標籤:android interpolator easing function Android動畫系統中提供插值器Interpolator來改變動畫的播放速率,實現不同的動態效果。Android系統提供了一些插值器的實現,比如LinearInterpolator、AccelerateInterpolator等。Easing
Time of Update: 2015-01-22
標籤:學習二維碼掃描,首先下載zip,:https://github.com/zxing/zxing/archive/master.zip下載完成後,壓縮包內容如下所示:為了能成功在android平台上運行zxing的Demo,把android/ android-core/ android-integration/ core/ 四個檔案夾解壓出來,androidtest可選擇解壓出來其中android/
Time of Update: 2015-01-22
標籤:iOS上建立案頭捷徑應用情境:在iOS裝置案頭建立app內某一個模組或頁面的捷徑,通過該捷徑可以直接進入相應模組或頁面。目前app內有該功能的有高德一鍵導航,360安全衛士的小火箭。技術原理: 在iOS開發中可以使用openUrl的方式開啟一個網頁,並通過Safari瀏覽器的發送到主畫面從而建立一個網頁的捷徑,這篇文章就是利用這個方法來建立一個app的案頭捷徑。首先在app內部開啟一個輕量級的HttpServer,利用openurl:127.0.0.1
Time of Update: 2015-01-22
標籤: public static int dip2px(Context context, float dpValue) { final float scale = context.getResources().getDisplayMetrics().density; return (int) (dpValue * scale + 0.5f); } @Override protected void onLayout(boolean changed,
Time of Update: 2015-01-22
標籤:如果有需要跟蹤NSArray中的內容,需要重寫descriptionWithLocal 方法。首先建立一個NSArray 的Category,在建立出來的.m檔案中加入下列代碼 - (NSString *)descriptionWithLocal:(id)local { NSMutableString *string = [NSMutableString string]; [string appendString:@"("]; for (id obj in
Time of Update: 2015-01-21
標籤:智能手機一般常用常用的操作觸摸,滑動,縮放,感覺對於生活而言就是手機在手,天下我有,看網頁的時候字型太小,縮放一下,看美女的看的不爽,縮放一下,地圖看的不清,縮放一下。縮放是一個很常見的操作,不論是從生活還是寫程式而言,都是一個繞不開的東西,做了一個Demo,縮放一下美女,熟悉ScrollView中的常見屬性的設定,開始正題吧。常見屬性先看圖,要實現的效果: UIImage *image=[UIImage imageNamed:@"girl0.jpg"];
Time of Update: 2015-01-21
標籤:master schedule changemaster appclientlistener launchdriver 註冊Master有兩種,一種是registerWithMaster方法,一種是tryRegisterAllMasters方法,前者是單Master的情況,後者是多Master,一般情況下是滿足HA機制,我
Time of Update: 2015-01-21
標籤:hdu2952 counting sheep dfs hdu 題目連結:請戳這裡。 題目大意及思路:讀懂題意就好了,就是DFS找聯通塊。沒什麼好說的,見代碼吧。#include<cstdio>#include<cstring>#include<algorithm>#define N
Time of Update: 2015-01-21
標籤:@interface AppDelegate()@property UILabel* show;@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[UIWindow alloc]