Time of Update: 2015-01-05
標籤:gridview 移動 自訂 改變位置 移動位置
Time of Update: 2015-01-05
標籤:iamlaosong發現一個現象,當Application.Calculation為自動計算狀態時,如果工作表中存有公式,2003版似乎並不降低VBA的運行速度,但2007版則影響很大,速度降低的特別明顯,尤其是資料量大時,速度降低的令人難以忍受。為此,必須將Application.Calculation狀態改為人工模式,等運行結束再還原。另一個影響VBA速度的因素是螢幕重新整理,為提高速度,可以臨時關閉螢幕重新整理。即:VBA通常在程式開始加兩句:Application.S
Time of Update: 2015-01-05
標籤: //使用輪播圖展示一組圖片資訊 //定時器 使迴圈 [NSTimer scheduledTimerWithTimeInterval:3 target:self selector:@selector(runTimePage) userInfo:nil repeats:YES]; //初始化scrollview self.scrollview =
Time of Update: 2015-01-04
標籤:打算做個自己在部落格園的部落格APP,首先要能訪問首頁擷取資料擷取首頁的文章列表,第一步抓取部落格首頁文章列表內容的功能已實現,在小米2S上的如下: 思路是:通過編寫的工具類訪問網頁,擷取頁面原始碼,通過Regex得到匹配的資料進行處理顯示到ListView上 簡單說明下要點:1. 使用Apache HttpClient庫實現GET請求。2. 非同步請求處理。3. Regex抓取自己需要的資料。 使用Apache
Time of Update: 2015-01-05
標籤:前提:之前配置好的android開發環境;重裝系統;壓縮了android目錄 配置:安裝java環境 安裝; 建立JAVA_HOME變數;JAVAHOME添加到path變數 JAVA_HOME=C:\Program
Time of Update: 2015-01-04
標籤:乾貨相機拍照的回調/** * Equivalent to takePicture(shutter, raw, null, jpeg). * * @see #takePicture(ShutterCallback, PictureCallback, PictureCallback, PictureCallback) */ public final void takePicture(ShutterCallback shutter,
Time of Update: 2015-01-04
標籤:android 滑動 側邊欄 從網上的一些資料整理過來的,記錄下來,希望能幫到跟我一樣臨時抱佛腳的童鞋。(*^__^*) 。先來個650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/58/1C/wKiom1SpBLfy8cu9AAJTqZjbsOM228.jpg" style="float:none;" title="QQ20
Time of Update: 2015-01-05
標籤:ios把圖片切成小片(IOS)by 伍雪穎#import <Foundation/Foundation.h>#import <AppKit/AppKit.h>int main(int argc, const char * argv[]) { @autoreleasepool{ if (argc < 2) {
Time of Update: 2015-01-04
標籤:之前寫的部落格都被移除了,也不知道什麼原因,可能是字型太少了,我不喜歡怎麼說,直接上源碼比較好一點我相信程式員都這樣,除非代碼難懂就會去解說一下,先看下: 看下java代碼public class MainActivity extends Activity {private ListView lv;private BluetoothAdapter adapter;private MyReciver myReciver;private
Time of Update: 2015-01-04
標籤:前端開發 瀏覽器 手機 判斷是否為手機:function isMobile(){ var sUserAgent= navigator.userAgent.toLowerCase(), bIsIpad= sUserAgent.match(/ipad/i) == "ipad", bIsIphoneOs=
Time of Update: 2015-01-05
標籤:下面的方法返回false表示網路不通// 檢測網路public static boolean checkNetworkAvailable(Context context) {ConnectivityManager connectivity = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);if (connectivity == null) {return false;} else {
Time of Update: 2015-01-05
標籤:(1)無緣無故出現“The file * couldn‘t be opened because you don‘t have permission to view it”錯誤資訊。解決辦法:Window -> Organizer -> 在下面框框左面選擇你的項目名字 ->
Time of Update: 2015-01-05
標籤:通常重新整理整個列表 我們都使用[self.tableView reloadData];有的時候,有變化更新的只是某一行 row 或者是某個section 所以只更新這一行就好了//一個section重新整理int section_index=10;//更新第11個sectioin[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:section_index]
Time of Update: 2015-01-05
標籤:(一) 通過包名、類名開發有時需要在一個應用中啟動另一個應用,比如Launcher載入所有的已安裝的程式的列表,當點擊表徵圖時可以啟動另一個應用。一般我們知道了另一個應用的包名和MainActivity的名字之後便可以直接通過如下代碼來啟動:[java] view
Time of Update: 2015-01-04
標籤:最近在調研市面上的一些android db架構,需要經常重複的輸入一堆比如adb shellcd /data/data/com.example.testandroiddb/databasessqlite3 demo.dbcreate table xxx;insert xxx;select * from xxx;... 很不方便,就想寫個指令碼來做這些重複的工作。主要的問題就是要多個shell之間執行命令。解決的辦法就是shell提供的輸入資料流功能"<"先編寫sqlite3
Time of Update: 2015-01-05
標籤: 1 UIButton *tempBtn = [UIButton buttonWithType: UIButtonTypeCustom]; 2 tempBtn.frame = CGRectMake(50, 250, 80, 40); 3 4 NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"忘記密碼"]; 5 NSRange
Time of Update: 2015-01-04
標籤:iOS中的資料存放區常用方式:1、xml屬性列表(plist);2、preference喜好設定;3、NSKeyedArchiver歸檔(需要遵守NSCodeing協議);4、SQLite 3;5、Core
Time of Update: 2015-01-05
標籤:jni java c android ndk javap 轉載請註明出處:http://blog.csdn.net/allen315410/article/details/41862479
Time of Update: 2015-01-04
標籤:android audiorecord第一次安卓開發,初次體會到如此深刻的版本差異。 我的AudioRecord代碼在三星S5670測試成功。 小米,朵唯D210T測試失敗。錯誤資訊如下: 04-01 12:58:44.368: E/AudioRecord(19808): Could not get audio input for record source 104-01 12:58:44.368: E/AudioRecord-JNI(19808):
Time of Update: 2015-01-05
標籤:Notification可以用來在狀態列上顯示表徵圖和資訊、使LED燈閃爍、震動手機、鈴聲或者音樂提醒、顯示額外的資訊、使用可互動的控制手段。Notification Manager是用來管理Notification,包括觸發一個新的Notification、修改存在的、取消Notifications。NotificationManager常用方法介紹:顯示方法public void notify(int id,