標籤:這篇教程的主要目的是解釋怎麼樣在你的iOS工程中建立並使用一個SDK,俗稱.a檔案。所以,不像其他網站上的教程只說一點比較吊的東西(就是我們這些新手看不懂的東西,這篇教程將只使用一小部分Objective-C代碼,本文主要講解從開始到應用的詳細步驟。環境:xcode 7.3(網上的demo大多數都是老版本的,發現很多東西跟現在的不一樣)下面我們開始操作: 建立一個靜態庫工程 開啟Xcode,點擊File\New\Project,選擇iOS\Framework and
標籤:源碼分析public class HandlerThread extends Thread { int mPriority;// 指定線程優先順序 int mTid = -1; Looper mLooper; public HandlerThread(String name) { super(name); mPriority = Process.THREAD_PRIORITY_DEFAULT; } public
標籤: 在Android開發中,比較流行的開發架構模式採用的是MVC架構模式,採用MVC模式的好處是便於UI介面部分的顯示和商務邏輯,資料處理分開。那麼問題來了,在Android項目的開發中哪些代碼來充當M,V,C角色呢?下面結合Android項目的具體結構對MVC for Android 做簡要剖析。M(Model)模型層
標籤:ListView相關功能1.android:fastScrollEnabled="true" ListView出現快速滾動的按鈕,資料不多的時候,不會出現,只要資料足夠多,會自動出現2.android:drawSelectorOnTopWhen set to true, the selector will be drawn over the selected item. Otherwise the selector is drawn behind the
標籤: 嚴重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerjava.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener at
標籤:在android開發過程中,耗時操作我們會放在子線程中去執行,而更新UI是要主線程(也叫做:UI線程)來更新的,自然會遇到如何更新主線程UI的問題。如果在主線程之外的線程中直接更新頁面顯示常會報錯。拋出異常:android.view.ViewRoot.CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its