Time of Update: 2016-09-07
標籤:1.1 Genymotion安裝及使用Genymotion是 android的模擬器,比起Android Virtual Device,genymotion的速度很快的。1.1.1 Genymotion的安裝官網為:http://www.genymotion.com/個人網盤地址: http://pan.baidu.com/s/1bZYmcA下載完成後,點擊genymotion-2.5.3-vbox.exe下一步下一步直接安裝,見安裝的:&
Time of Update: 2016-09-07
標籤: Go support for Android David Crawshaw June 2014 Abstract We propose to introduce Go support for the Android platform. The focus will be on supporting games written in Go. The APIs will be those defined in the Android NDK. Background Android is
Time of Update: 2016-09-07
標籤:我們平時建立項目有些朋友可能當時就是隨意寫的一個包名,然後在項目過程中, 又感覺這個包名不太好,所以就要對包名進行修改,根據我們正常的修改方式,是這樣的。在種情況是只能修改最外層的那個名稱, 如果我們現在是需要修改中間的某一個,這裡就行不通了。 那麼我們來看一下如何修改成你最終要的包名。 操作圖如下: 看到沒有,我們只需要在setting裡面,把 compact empty middle packages
Time of Update: 2016-09-07
標籤:最近想弄一個雙導航功能,查看了許多資料,總算是實現了功能,這邊就算是給自己幾個筆記吧!先來看看效果那麼就開始實現了!底部導覽列我選擇用FragmentTabHost+Fragment來實現,這個方法我覺得挺好用的,代碼量也不多首先是開始的activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Time of Update: 2016-09-07
標籤:本篇文章已授權公眾號 guolin_blog
Time of Update: 2016-09-07
標籤:SVG向量圖在圖片表現力方面遠遠優於PNG位元影像,同時在可維護性和修改性方面也比位元影像要方便很多。儘管Android在5.0版本就引入了SVG圖片的解決方案:Vector。然而,相容性和效能方面卻是差強人意,以至於至今都未能廣泛使用。本篇部落格給大家帶來一套較為不錯的解決方案:SVG-Android(作者是本人。。。),相比於Vector,其在相容性方面能夠相容到2.3以上,同時在效能方面,也有了質的提升。開源庫地址:https://github.com/MegatronKing/SV
Time of Update: 2016-09-07
標籤:介紹NSNumberFormatter 應該可以滿足你對資料形式的一般需求,值得瞭解一下. NSNumber *num1 = [NSNumber numberWithDouble:1234567.8369]; // ==================== 類方法 ==================== // 四捨五入的整數 NSString *numberNoStyleStr = [NSNumberFormatter
Time of Update: 2016-09-07
標籤:程式進入後台,延遲指定時間退出正常程式退出後,會在幾秒內停止工作;要想申請更長的時間,需要用到beginBackgroundTaskWithExpirationHandlerendBackgroundTask一定要成對出現{ NSTimer *_timer; int aa; __block UIBackgroundTaskIdentifier _backIden;}-
Time of Update: 2016-09-07
標籤:最近做的一個網站頁面中需要根據使用者的訪問裝置的不同來顯示不同的頁面樣式,主要是判斷行動裝置還是電腦瀏覽器訪問的。下面給出js判斷處理代碼,以作參考。<script type="text/javascript"> function browserRedirect() { var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad =
Time of Update: 2016-09-07
標籤:shape和selector是Android UI設計中經常用到的,比如我們要自訂一個圓角Button,點擊Button有些效果的變化,就要用到shape和selector。可以這樣說,shape和selector在美化控制項中的作用是至關重要的。1.Shape簡介作用:XML中定義的幾何形狀位置:res/drawable/檔案的名稱.xml使用的方法:Java代碼中:R.drawable.檔案的名稱XML中:Android:background="@drawable/檔案的名稱"屬性:&
Time of Update: 2016-09-07
標籤:原文連結:http://liuyanwei.jumppo.com/2015/07/17/ios-BLE-1.htmliOS藍芽開發(一)藍芽相關基礎知識:藍芽常見名稱和縮寫MFI ======= make for ipad ,iphone, itouch 專們為蘋果裝置製作的裝置BLE ==== buletouch low energy,藍芽4.0裝置因為低耗電,所以也叫做BLEperipheral,central ==
Time of Update: 2016-09-07
標籤:http://stackoverflow.com/questions/5730412/error-when-running-the-nuget-exe-commandOk, so this turned out to be a really weird error which I still don‘t know why it happened. But I do know the solution. What I had done was put
Time of Update: 2016-09-07
標籤:1.擷取app的info.plist詳細資料版本號碼:Bundle version NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];應用標識:Bundle identifierNSString *bundleId = [[[NSBundle mainBundle] infoDictionary]
Time of Update: 2016-09-07
標籤:ClipDrawableClipDrawable代表從其他位元影像上截取一個“圖片片段”在XML檔案中定義ClipDrawable對象使用<clip.../>元素,該元素的文法為:以上文法格式中可指定如下三個屬性:1.android:drawable:指定截取的源Drawable對象2.android:clipOrientaton:指定截取方向,可設定水平或垂直截取3.android:gravity:指定截取時的對齊註:使用ClipDrawable對象是
Time of Update: 2016-09-07
標籤:申請加急網址:https://developer.apple.com/appstore/contact/appreviewteam/index.html 提交加急審核需要理由,一般涉及到銀行資訊,或者崩潰打不開這種的比較容易通過。反正蘋果很苛刻,一般不給處理。如果處理第二天就可以下載最新了,省去了漫漫的等待。一個成功加急審核的借口--We found a serious security problem, Our application
Time of Update: 2016-09-07
標籤:這是一個小坑, 看看你的BaseModel的便利構造器的方法:+ (__kindof BaseModel *)modelWithDic:(NSDictionary *)dic { return [[self alloc] initWithDic:dic];}self 一定要寫成self, 這樣才會調用子類的setvalue的方法. 不要寫成BaseModel. BaseModel.m中的代碼如下:-
Time of Update: 2016-09-07
標籤:LinearLayout和RelativeLayout共有屬性:java代碼中通過btn關聯次控制項android:id="@+id/btn"控制項寬度:android:layout_width="80px" //"80dip"或"80dp"android:layout_width =“wrap_content”android:layout_width =“match_parent” 控制項高度:
Time of Update: 2016-09-07
標籤:下面是一些iOS項目中常用的plist檔案的相關設定:1.定位為題: 調用定位時在target裡設定兩個屬性:NSLocationAlwaysUsageDescription NSLocationWhenInUseUsageDescription2. 網路請求: Xcode升級後不支援http訪問的解決辦法:在Info.plist中添加NSAppTransportSecurity類型Dictionary。
Time of Update: 2016-09-07
標籤: Android之垂直顯示TextView
Time of Update: 2016-09-07
標籤:eclipse建立android項目時,預覽layout.xml檔案時提示: This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT