Time of Update: 2015-01-28
標籤:How to use GitHub with Android Studio | London App DeveloperUPDATE: This is an old tutorial written for Android Studio Beta. Since then there have been some updates and (although the below will still work) you may find it quicker to follow my
Time of Update: 2015-01-28
標籤:首先必須降低gcc版本:sudo apt-get install gcc-4.4sudo apt-get install g++-4.4sudo rm -rf /usr/bin/gcc /usr/bin/g++sudo ln -s /usr/bin/gcc-4.4 /usr/bin/gccsudo ln -s /usr/bin/g++-4.4 /usr/bin/g++??################ Fix 1
Time of Update: 2015-01-28
標籤:目前iOS中設定UIColor只能使用其枚舉值、RGB等方法,不能直接將常用的16進位顏色值直接轉為UIColor對象,所以寫了點代碼,將16進位顏色值轉為UIColor。代碼如下,//標頭檔#import <Foundation/Foundation.h>#import <UIKit/UIKit.h>@interface TextServcie : NSObject+(UIColor *) getColorFromHEX:(NSString *)hex;@end.
Time of Update: 2015-01-28
標籤:C語言關鍵字所謂關鍵字就是已被 C語言編輯工具本身使用, 不能作其它用途使用的字。 auto :聲明自動變數 一般不使用 double :聲明雙精確度變數或函數 int: 聲明整型變數或函數 struct:聲明結構體變數或函數 break:跳出當前迴圈 else :條件陳述式否定分支(與 if 連用) long :聲明長整型變數或函數 switch
Time of Update: 2015-01-28
標籤:2015.1.21//常量: 是C語言中最基本的元素, 字元常量, 整型常量, 浮點常量, 字串常量, 枚舉常量//字元常量: ‘a‘ ‘f‘ ‘\n‘ ‘0‘ ‘\f‘ //‘0‘ 48//‘A‘ 65//‘a‘
Time of Update: 2015-01-28
標籤:標籤:androidvibrator震動器it分類: Andorid 擷取震動器Vibrator執行個體: Vibrator mVibrator = (Vibrator)
Time of Update: 2015-01-28
標籤:2015.1.20//十進位//0 1 2 3 4 5 6 7 8 9 10 11 12 .... 99 100 101 ...//進位: "逢十進一" //二進位(對於電腦是最自然的語言)//0 1 10 11 100 101 110 111 1000 1001 1010 1011 1100 1101 1110 1111//"逢2進1"//高電平: 1 低電平 0 //5+6//機器語言//0101001010101010//0101001010101001//101
Time of Update: 2015-01-28
標籤:如何提示alertwebview.setWebChromeClient(new WebChromeClient() {@Override public boolean onJsAlert(WebView view, String url, String message, final JsResult resulta) { AlertDialog.Builder b2 = new AlertDialog.Builder(MainActivity.this)
Time of Update: 2015-01-28
標籤:2015.1.19第一天開始學習,留以之後複習。MACOS系統: 是UNIX系統圖形介面顯示, 開發工具: ide(xcode) 和 終端(terminal)快速鍵:command(windows) + c: 複製command + V : 粘貼command + x: 剪下(只在當前應用程式內有效) 在mac系統下表示剪下功能: 先command + x 然後 按option(alt)+command + v command + N :
Time of Update: 2015-01-28
標籤:Multiple annotations found at this line:- No label views point to this text field with a labelFor attribute- This text field does not specify an inputType or a
Time of Update: 2015-01-28
標籤: 當我們需要動態多介面切換的時候,就需要將UI元素和Activity融合成一個模組。在2.3中我們一般通過各種Activity中進行跳轉來實現多介面的跳轉和單個介面動態改變。在4.0或以上系統中就可以使用新的特性來方便的達到這個效果--Fragment類。Fragment類似一個嵌套Activity,可以定義自己的layout和自己的生命週期。
Time of Update: 2015-01-28
標籤:一、前言在手機中進行網路連接不僅是耗時也是耗電的,而耗電卻是致命的。所以我們就需要資料庫協助我們儲存離線資料,以便在使用者未使用網路的情況下也可以能夠使用應用的部分功能,而在需要網路連接的功能上採用提示方式,讓使用者決定是否開啟網路。而本節我們將會學習如何訪問資料庫以及提供基本的增刪改查功能,並且使他們盡量的解耦。 二、資料庫Xamarin.Android下建立本機資料庫與在Java下的方式相同,而我們必須掌握使用SQLiteOpenHelper,因為這個類會簡化我們建立資料的步
Time of Update: 2015-01-28
標籤:1:cmd+l 鎖螢幕iOS本地通知在程式運行時不會推動訊息,只有在程式進入後台時才會提醒。- (IBAction)addLocalNote { // 1.建立通知 UILocalNotification *localNote = [[UILocalNotification alloc] init]; // 2.設定屬性 // 操作標題 localNote.alertAction = @"開始玩遊戲"; // 顯示的內容
Time of Update: 2015-01-28
標籤:一、目標。 實現兩個Activity介面的動畫轉場效果。 二、代碼實現。 1、在res檔案夾下建立一個名為anim的檔案夾。 2、在建立的anim檔案夾中建立一個Android xml
Time of Update: 2015-01-28
標籤:直接雙擊執行 D:\test1.exeSystem.Diagnostics.Process.GetCurrentProcess().MainModule.FileName D:\Test1.exe System.Environment.CurrentDirectory D:\ System.IO.Directory.GetCurrentDirectory() D:\ System.AppDomain.CurrentDomain.BaseDirectory D:\ System.
Time of Update: 2015-01-28
標籤:android studio android開發 android應用 Android官方入門文檔[10]支援不同的螢幕 Supporting Different Screens支援不同的螢幕 This lesson teaches you to1.Create Different Layouts2.Create Different BitmapsYou should
Time of Update: 2015-01-28
標籤:android exception 做這樣一個頁面,下面有五個頁簽,滑動,有資料顯示listview,無資料顯示動畫,開始我看到他們好多東西是相同的,就提取出來,用include包含布局檔案:結果報一下錯誤:01-28 11:27:36.593: E/AndroidRuntime(16182): FATAL EXCEPTION: main01-28 11:27:36.593: E/AndroidRuntime(16182)
Time of Update: 2015-01-28
標籤:(1)在storyboard中使用AutoLayout。這個AutoLayout和autoResizing是衝突的,只能選其一。——不同級的控制項的相互約束是添加在高層級上。——同層級的控制項的相互約束是添加在它們的父控制項上。——不同分支控制項的相互約束是添加在它們向上追溯到的第一個共同父控制項。這3條規則在代碼建立時有用。利用storyboard時系統自動幫我們添加好了。(2)用代碼實現AutoLayout。步驟就是先建立布局約束對象,然後把這個對象添加到需要約束的控制項中。——需要先
Time of Update: 2015-01-28
標籤:http://www.cnblogs.com/yejiurui/p/3413796.html1、測試網頁<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>TestStartApp</title> </head>
Time of Update: 2015-01-28
標籤:- (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextClearRect(context, rect); CGContextSetLineWidth(context, _lineWidth); //設定畫筆寬度