Time of Update: 2015-05-05
標籤:1:統一修改導覽列的樣式,在 AppDelegate.m中- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point
Time of Update: 2015-05-05
標籤:這個現象在高亮狀態時最為明顯 連續觸碰button 高亮狀態會不顯示。 處理方案是關掉scrollView的延遲代碼: 在建立tableView的地方加下面這行 _tableView.delaysContentTouches =NO; 在tableView代理方法 cellForRow 裡加入下面代碼
Time of Update: 2015-05-05
標籤:android typeface 字型 zite 控制項的字型設定的兩種方式常用的字型類型名稱還有:Typeface.DEFAULT //常規字型類型Typeface.DEFAULT_BOLD //黑體字型類型Typeface.MONOSPACE //等寬字型類型Typeface.SANS_SERIF //sans
Time of Update: 2015-05-05
標籤://// ViewController.m// 0426//// Created by apple on 15/4/26.// Copyright (c) 2015年 gense. All rights reserved.//#import "ViewController.h"@interface ViewController ()<UIScrollViewDelegate>{ UIPageControl * pageControl;
Time of Update: 2015-05-05
標籤:問題 出現的異常為:java.lang.IllegalArgumentException: File /mnt/sdcard/crazyit.bin contains a pathseparator。 主要是由於在開啟檔案的輸出資料流時使用的openFileOutput()方法的第一參數用於指定檔案名稱,不能包含路徑分隔字元“/”
Time of Update: 2015-05-05
標籤:近期在下載android4.0的代碼,下列操作下載Repo$ mkdir ~/bin $ PATH=~/bin:$PATH$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod a+x ~/bin/repo 建立原始碼檔案夾:$ mkdir ANDROID_SOURCE$ cd
Time of Update: 2015-05-05
標籤:在Android四大組件中,Service和Activity兩個比較相似,區別是Activity用於前台,Service用於後台。當你的程式不需要用組件呈現介面時,這時候用Service。典型範例就是播放音樂,介面退出後仍需播放音樂,這時需要的就是Service後台運行了。Service建立1、定義一個繼承Service的子類2、在AndroidMainifest.xml檔案中配置該Service。 這個過程是不是跟建立Activity有點相Ê
Time of Update: 2015-05-05
標籤:android環境搭建 sdkjdkeclipseadt關係 jdk配置java環境變數 sdk更新失敗且進度條靜止 adt-bundle-windows-x 初學者進行Android開發離不開開發工具和環境。Android安裝環境的配置是這樣的:下載安裝Android
Time of Update: 2015-05-05
標籤:relativelayout android 相對布局要比前面講的線性布局和表格布局要靈活一些,所以平常用得也是比較多的。相對布局控制項的位置是與其周圍控制項的位置相關的,從名字可以看出來,這些位置都是相對的,確定出了其中一個控制項的位置就可以確定另一個控制項的位置了。
Time of Update: 2015-05-05
標籤:掌握Android Touch事件機制DaveSmith@devunwired要點涵蓋l Touch系統概述l Framwork層的Touch事件l Touch事件的處理l 系統提供的TouchHandlersl 系統提供的GestureHandlersAndroid系統怎麼處理Touch事件?l 每一個touch事件都被封裝成一個MotionEvent對象l 這個對象描述了使用者當前的動作–
Time of Update: 2015-05-05
標籤:webview android開發 js互動 webapp 最近公司再添加功能的時候,有一部分功能是用的html,在一個瀏覽器或webview中展示出html即可。當然在這裡我們當然用webview控制項嘍 WebApp的好處:在應用裡嵌套web的好處有這麼幾點,1,跨平台,不僅可以在Android上運行,也可以在ios上運行,而且樣式什麼的絕對
Time of Update: 2015-05-05
標籤:工具 application android package 1、擷取application中指定key的meta-data值 public static String getApplicationMetadata(Context context,String metaDataKey) { ApplicationInfo info =
Time of Update: 2015-05-05
標籤:monkeyrunner Mobile Testing 自動化測試 選自:http://yuedu.baidu.com/ebook/d4d8b6121eb91a37f0115c1d Monkeyrunner是由Google開發、用於Android系統的自動化測試載入器,由Android系統內建,存在於Android SDK中(SDK:Software Development
Time of Update: 2015-05-05
標籤:在expandListView的group中如果包含imageview發現,報錯。提示無法將imageview轉換成TextView.查看源碼發現,SimpleExpandableListAdapter中有如下方法:private void bindView(View view, Map<String, ?> data, String[] from, int[] to) { int len = to.length; for (int i = 0;
Time of Update: 2015-05-06
標籤:android eclipse svn 今天從svn上匯出一個android項目,到eclipse中。匯出之後目錄結構顯示不正常,沒有Android Private Libraries,也沒有Android版本,比如 Android
Time of Update: 2015-05-06
標籤:1. 試了Hide during application launch的勾選選項,不可以2. 試了ViewController中用函數,還是不可以- (BOOL)prefersStatusBarHidden{ return YES;//隱藏為YES,顯示為NO} 後邊找到這個方法,終於可以了,Mark一下!在Info.plist添加一個新的row,"View controller-based status bar
Time of Update: 2015-05-06
標籤:Android之WebViewClient與WebChromeClient的區別2012-05-05 0 個評論
Time of Update: 2015-05-06
標籤: -(NSString *)filterHTML:(NSString *)html{ NSScanner * scanner = [NSScanner scannerWithString:html]; NSString * text = nil; while([scanner isAtEnd]==NO)
Time of Update: 2015-05-05
標籤: 1 private void exitDialog() { 2 Dialog dialog = new AlertDialog.Builder(this).setIcon(R.drawable.pic_m) 3 .setTitle("程式退出? ").setMessage("您確定要退出本程式嗎?") 4 5 .setNegativeButton("取消", new DialogInterface.
Time of Update: 2015-05-05
標籤: 官網 http://framework7.taobao.org/ framework7 開發IOS風格的WebApp