Time of Update: 2015-06-16
標籤:android textview 格式化 本例主要研究一下如何在TextView中顯示網頁連結和改變特定文字顏色1.main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.
Time of Update: 2015-06-16
標籤:從昨天開始準備從Objective-C Programming: The Big Nerd Ranch Guide這本書入手,從頭紮實地學習一下OC,順便提高一下英文閱讀能力。今天的知識重點在於類方法和執行個體方法的區別:NSDate *now = [NSDate date];We say that the date method is a class method. That is, you cause the method to
Time of Update: 2015-06-16
標籤:一、Adapter介紹An Adapter object acts as a bridge between an AdapterView and the underlying data for that view. The Adapter provides access to the data items. The Adapter is also responsible for making aView for each item in the data
Time of Update: 2015-06-16
標籤: 載入最佳化 合并css javascript 合并小圖片 使用雪碧圖 緩衝一切可快取的資源 使用長的cache 使用外鏈式引用css,javascript 壓縮HTML,CSS,JAVASCRPT 啟用GZip 使用首屏載入 使用按需載入 使用滾屏載入 通過Media
Time of Update: 2015-06-17
標籤:<script type="text/javascript">function browserRedirect() { var sUserAgent= navigator.userAgent.toLowerCase(); var bIsIpad= sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs= sUserAgent.match(/iphone os/i) == "iphone os"; var bIsMidp=
Time of Update: 2015-06-16
標籤:先看下整個項目的目錄,每個目錄都有特定的作用,分別如下: src目錄,存放原始碼檔案。 gen目錄,由ADT外掛程式自動產生的R.java檔案。 assets目錄,存放資源檔目錄。此目錄的檔案不會在R.java中產生資源ID,不會被編譯為二進位,必須使用/assets開始的相對路徑按照檔案的方式進行訪問,可以使用AssetManager 結合其他類進行訪問。 res目錄,存放資源檔目錄,這裡面的每個檔案或值都會在R.java中產生一個ID(變數);
Time of Update: 2015-06-17
標籤:下面的題目都是樓主在android交流群大家面試時遇到的,如果大家有好的題目或者好的見解歡迎分享,樓主將長期維護此帖。 1、請解釋下在單執行緒模式中Message,Handler,Message Queue,Looper之間的關係。拿主線程來說,主線程啟動時會調用Looper.prepare()方法,會初始化一個Looper,放入Threadlocal中,接著調用Looper.loop()不斷遍曆Message
Time of Update: 2015-06-16
標籤:1:IOS7狀態列覆蓋頁面問題:前後當然這也是臨時解決方案,最好還是相容狀態列UI更美觀代碼如下:if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) { CGRect viewBounds = [self.webVie
Time of Update: 2015-06-16
標籤:wwdc 蘋果 開發人員 swift 從網上開到一篇分析蘋果WWDC背後深意的一篇文章,這篇文章的作者對於蘋果今年“無亮點”的WWDC大會作了一個總結,從開發人員的角度,從整個蘋果公司的戰略角度去分析了這次蘋果WWDC大會的深意,作者的觀點不一定完全是正確的,但是其中的一些想法,卻是引人深思。(至少,小湯我想到了很多)。。。所以這裡,小湯把原文貼出來給大家
Time of Update: 2015-06-16
標籤:geolocation ongeolocationpermiss webchromeclient <uses-permission android:name="android.permission.INTERNET" /> <uses-permission
Time of Update: 2015-06-16
標籤:dexdebug出現上述問題 檢查下是否多次引用同一個jar包 有以下情況 1. module下jar包版本不同 2. 同一個module 在libs中包含了.jar,而在src下又把相應的source頁加入了 3. gradle中是否重複編譯,比如 已經加了compile fileTree(include: [‘*.jar’], dir: ‘libs’) 然而在下面又加一句compile files(‘libs/xxx.jar’)參考 Error:Execution failed
Time of Update: 2015-06-16
標籤:appcompatappcompat_v7\res\values-v21\themes_base.xml:191: error: Error: No resource found that matches the given name: attr ‘android:XXX’建立Android項目時,ADT會自動的建立一個名為appcompat_v7的 Support Library
Time of Update: 2015-06-16
標籤:src: 存放java代碼gen: 存放自動組建檔案的. R.java 存放res檔案夾下對應資源的idproject.properties: 指定當前工程採用的開發套件的版本libs: 當前工程所依賴的jar包.assets: 放置一些程式所需要的媒體檔案.bin: 工程的編譯目錄. 存放一些編譯時間產生的臨時檔案和當前工程的.apk檔案.res(resources): 資源檔.drawable: 存放程式所用的圖片.layout: 存放android的布局檔案.menu:
Time of Update: 2015-06-16
標籤:android ui layout Android-基本布局一 LinearLayout線性布局:水平和垂直布局的層次最好小於5層必須會二 FrameLayout通常顯示一個單一的元素的布局,也可以方多個元素元素小於等於3三
Time of Update: 2015-06-16
標籤:ios uiview 跳轉 UIView是iOS開發中所有視圖的基類, 表示螢幕上的一塊矩形地區, 同時可以處理該地區的繪製和觸摸事件. UIViewController是視圖控制器的基類, 用來處理螢幕之間的切換等操作, 提供視圖管理模型. 一個UIViewController管理一個層級的UIView.
Time of Update: 2015-06-16
標籤:很簡單的調用 首先在工程引入MediaPlayer.framework#import <MediaPlayer/MediaPlayer.h>1. 擷取系統音量// 擷取系統音量 MPVolumeView *volumeView = [[MPVolumeView alloc] init]; UISlider *volumeViewSlider= nil; for (UIView
Time of Update: 2015-06-16
標籤:android開發中圖片最佳化方法 1.圖片載入方法,方便使用者載入圖片 /*** * 載入本地圖片 * @param context:主運行函數執行個體 * @param bitAdress:圖片地址,一般指向R下的drawable目錄 * @return */ public final Bitmap CreatImage(Context context, int bitAdress) { Bitmap bitmaptemp =
Time of Update: 2015-06-16
標籤:android 日期對話方塊 開發人員都知道驗證表單裡的資料是令人厭煩而且容易出錯的,日期輸入框的驗證也是如此。我們可以開發出一個外觀看起來與EditText相同Button,點擊該Button後,會顯示一個DatePicker控制項。要實現上面的想法,需要將Button控制項的預設背景改成EditText的背景。看一下main.xml:<LinearLayout xmlns:android="http:/
Time of Update: 2015-06-16
標籤:android webview webviewclient shouldoverrideurlloa 在 AndroidManifest.xml中添加網路許可權<uses-permission
Time of Update: 2015-06-16
標籤:ios 錯誤 1. 首先介紹如何解決裝置一欄現實“My mac 64-bit”問題:童鞋們都知道Xcode會根據當前SDK在Run按鈕旁邊的選項欄中顯示適合的Simulator供開發人員選擇,如:X但是有時候則錯誤顯示“My mac 64-bit”