Time of Update: 2015-07-16
標籤: http://blog.csdn.net/yy1300326388/article/details/450744471.強制使用http替換https連結Tools》選擇Options,勾選上”Use Download Cache”和”Force https://… sources to be fetched using http://…” 和use download
Time of Update: 2015-07-15
標籤:隱藏標題列需要使用預定義樣式:android:theme=”@android:style/Theme.NoTitleBar”. 隱藏狀態列:android:theme=”@android:style/Theme.NoTitleBar.Fullscreen”. <?xml version="1.0" encoding="utf-8"?> <manifest
Time of Update: 2015-07-15
標籤:擷取網路連接狀態隨著3G和Wifi的推廣,越來越多的Android應用程式需要調用網路資源,檢測網路連接狀態也就成為網路應用程式所必備的功能。Android平台提供了ConnectivityManager 類,用於網路連接狀態的檢測。Android開發文檔這樣描述ConnectivityManager的作用:Class that answers queries about the state of network connectivity. It also notifies
Time of Update: 2015-07-15
標籤:android 在這篇文章中,主要解決一個在Java或者Android開發中第一步需要解決的問題,那就是環境變數的配置。由於這部分在網上有很多教程,參差不齊。我這裡主要是對JDK與adb/android兩者的環境變數進行匯總,並且針對每一類配置提供幾種不同的實現方式。【1】JDK環境變數配置 JDK的安裝目錄為:C:\Program Files
Time of Update: 2015-07-15
標籤: 單個Activity: 應用開啟時調用:onCreate(),onStart(),onResume(); 按下返回鍵:onPause(),onStop(),onDestory();多個Activity之間互動時: 跳轉至第二個Activity時:FirstActivitySecondActivityonPause() onCreate()&
Time of Update: 2015-07-15
標籤:<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.miz.heapsize" android:versionCode="1" android:versionName=&
Time of Update: 2015-07-15
標籤:1. 定製Logcat調試日誌字型顏色 Logcat是Android開發調試中最常用的一個工具,Android Studio 1.2.2中預設對Logcat調試的顏色已經有所區分,但如果你想要定製自己的調試日誌對應的字型顏色,以便更好地區分verbose、debug、error、info、warning等分類資訊,那麼下面看看如何來自訂Logcat的提示資訊。
Time of Update: 2015-07-15
標籤: 題目連結:A. Lala Land and Apple Trees題面:A. Lala Land and Apple Treestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAmr lives in Lala Land. Lala Land is a very beautiful country that is
Time of Update: 2015-07-15
標籤:項目用到了,記錄下,返回鍵什麼的物理按鍵使用onKeyDown監聽就可以了,但是鎖屏鍵、Home鍵不可以,這裡使用廣播監聽兩者狀態變化IntentFilter片段: mFilter.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);//home鍵 mFilter.addAction(Intent.ACTION_SCREEN_ON); //開屏
Time of Update: 2015-07-16
標籤:在使用android stdio的時候 由於匯入了兩個第三方的包,出現了Error:Execution failed for task ‘: :dexDebug‘. > com.android.ide.common.process.ProcessException這樣的錯誤。解決方案很簡單首先在module的build.gradle檔案中,刪除引用的語句,如下:compile
Time of Update: 2015-07-15
標籤:首先,在res下面建立一個檔案夾drawable,在drawable下面建立三個xml檔案:shape_corner_down.xml、shape_corner_up.xml和shape_corner.xml,分別是下面兩個角是圓角邊框,上面兩個角是圓角邊框,四個角全部是圓角邊框。shape_corner_down.xml:1234567<?xml version="1.0" encoding="utf-8"?><shape
Time of Update: 2015-07-15
標籤:開發工具中的快速鍵是必不可少了,AS中在Help菜單中單擊 Default Keymap Reference瀏覽器會串連到官網,開啟對應你作業系統的快速鍵頁面,這是一個pdf檔案。Mac系統獨立一份,Windows和Linux一份。想要修改熱鍵的話,可以點擊設定按鈕,在參數面板中找到Keymap選項,右側就是預設的熱鍵。 預設常用的熱鍵:注釋和移除注釋Windows:Ctrl + /Mac : Cmd + / 使用代碼模板Windows:Ctrl +
Time of Update: 2015-07-16
標籤: 轉自:i‘m Allen的部落格 先給代碼:https://github.com/allenhsu/CRNavigationController 1. 問題的表現相信很多人在 iOS 7 的適配過程中遇到了類似這樣的問題。當你試圖通過設定 navigationBar.barTintColor 的時候,你陷入了一個兩難的困境,假設你的預期是這樣的:設計稿但當 navigationBar.translucent 為 YES 時,你的
Time of Update: 2015-07-16
標籤: 我們經常在做自訂控制項的時候,有些控制項是需要圖文一起顯示的,顯示文字就肯定要用到drawText 方法,而drawText(str, x, y, paint)有兩個參數x 和 y是繪製的座標,我們必須確定這個座標之後,才能知道從哪裡繪製,有時候我們繪製完一個字串,而想在這個字串的後面重新進行一些繪製的時候,就需要重新擷取繪製座標,這個時候首先想到的就是得到前一個字串的繪製寬度 + 前一個字串的繪製座標就可以推算我們現在繪製的座標了。String str =
Time of Update: 2015-07-15
標籤:今天做一個app時發現一個問題,應用html5中的video標籤載入視頻,在Android手機上預設播放大小,但是換成iPhone手機上出問題了,預設彈出全屏播放,尋找了好多論壇,都沒有談論這個的。然後幾經波折終於找到其解決的方法了,在video標籤下的source中加入這個-webkit-playsinline=true完美解決全屏問題。 例如:<video width="100%" loop="loop" autoplay>
Time of Update: 2015-07-15
標籤: 1 Android手機目前常見的解析度1.1 手機常見解析度:4:3VGA 640*480 (Video Graphics Array)QVGA 320*240 (Quarter VGA)HVGA 480*320 (Half-size VGA)SVGA 800*600 (Super VGA)5:3WVGA 800*480 (Wide VGA)16:9FWVGA 854*480
Time of Update: 2015-07-15
標籤:tableview footerview headerview ios 蘋果方法給我提供TableView的FooterView和HeaderView停留在頂部的很不錯效果,有時候我們不需要這些FooterView和HeaderView停留在底部或者上部,現在就以FooterView為例,說一下我開發中的解決方案:(目前兩種)第一種方法:在初始化Table
Time of Update: 2015-07-16
標籤:This article will explain how to use GitHub with Android Studio.Firstly, let’s login to github.com and create a new repository. From the top right corner of the screen, click the +sign and select New repository.Now
Time of Update: 2015-07-16
標籤:Have you tried this?CGFloat val = 37.777779;CGFloat rounded_down = floorf(val * 100) / 100; /* Result: 37.77 */CGFloat nearest = floorf(val * 100 + 0.5) / 100; /* Result: 37.78 */CGFloat rounded_up = ceilf(val * 100) / 100; /* Result: 37.7
Time of Update: 2015-07-15
標籤:gradle so jni 首先在Android