Time of Update: 2015-01-22
標籤:package com.example.dialog4;import android.os.Bundle;import android.app.Activity;import android.app.AlertDialog;import android.app.Dialog;import android.content.DialogInterface;import android.view.Menu;import android.view.View;import
Time of Update: 2015-01-23
標籤:使用原因 iOS開發中我們會遇到程式拋出異常退出的情況,如果是在調試的過程中,異常的資訊是一目瞭然,但是如果是在已經發布的程式中,擷取異常的資訊有時候是比較困難的。好處與缺點 iOS提供了異常發生的處理API,我們在程式啟動的時候可以添加這樣的Handler,這樣的程式發生異常的時候就可以對這一部分的資訊進行必要的處理,適時的反饋給開發人員。
Time of Update: 2015-01-23
標籤:Reveal作為分析APP UI的利器確實非常好用,用來查看任意UI布局也很方便一.模擬器進行分析 1.開啟Reveal(http://revealapp.com下載) 2.開啟Xcode 3.Reveal——Help——Show Reveal Library in
Time of Update: 2015-01-23
標籤:Implicitly unwrapped optionals:// an implicitly unwrapped optional variablevarmaybeString:String!maybeString=nilmaybeString="fish"// methods invoked directly, failing at runtime// if the optional is
Time of Update: 2015-01-22
標籤:4.0後,建立android工程,會自動產生drawable,drawalbe-ldpi,drawable-mdpi,drawable-hdpi,drawable-xhdpi,drawable-xxhdpi六個檔案夾,除drawable外,其他5個檔案夾對應四種層級的density:120dip(low),160dip(medium),240dip(high),320dip(xhigh),480dip(drawable-xxhdpi)。目前主流做法都是把圖片檔案放在drawable-hdp
Time of Update: 2015-01-23
標籤:SlidingMenu簡介: SlidingMenu的是一種比較新的設定介面或配置介面效果,在主介面左滑或者右滑出現設定介面,能方便的進行各種操作.目前有大量的應用都在使用這一效果。如Evernote、Google+、Foursquare等,國內的豌豆夾,人人,360手機小幫手等都使用SlidingMenu的介面方案。項目: http://pan.baidu.com/s/1hq7NQmCSlidingMenu 常用屬性介紹: menu.setMode(
Time of Update: 2015-01-23
標籤:android三個屬性都用來適應視圖的水平或垂直大小,一個以視圖的內容或尺寸為基礎的布局比精確地指定視圖範圍更加方便。1)fill_parent設定一個構件的布局為fill_parent將強制性地使構件擴充,以填充布局單元內儘可能多的空間。這跟Windows控制項的dockstyle屬性大體一致。設定一個頂部布局或控制項為fill_parent將強制性讓它布滿整個螢幕。2)
Time of Update: 2015-01-22
標籤:1 如果Activity頁面有EditText,為了不影響使用者體驗,我們需要在進入該頁面時不彈出軟鍵盤。如何設定呢?在mainifest.xml檔案中配置Activity時,設定這兩句即可: android:configChanges="orientation|keyboardHidden" android:windowSoftInputMode="adjustUnspecified|stateHidden"2 如果在對話方塊中有EditText,
Time of Update: 2015-01-22
標籤:android開發 介面ui 對手機App的瀑布流效果一直有所耳聞,卻從未自己親自動手實踐,趁著這幾天還有些時間,做了些研究,也參考了網路上很多大神的部落格,終於寫出來自己的瀑布流效果了,先上一圖。
Time of Update: 2015-01-23
標籤:android遊戲 源碼 app 天天數錢遊戲Android源碼,很有意思的一款遊戲,廢話不多說,上源碼!Android天天數錢遊戲源碼 天天數錢。基於Android遊戲代碼模仿Flash遊戲http://www.4399.com/flash/145326_4.htm源碼下載 :http://pan.baidu.com/s/
Time of Update: 2015-01-23
標籤:android android應用 android開發 android emulator android studio Android官方入門文檔[2]運行你的應用程式 Running Your App運行你的應用程式 This lesson teaches you to1.Run on a Real
Time of Update: 2015-01-22
標籤:1.前言 目前市場主流APP裡,二維碼/條碼整合主要分兩種表現形式來整合:a. 一種是調用手機網路攝影機並開啟系統照相機全屏去拍攝b. 一種是自訂照相機視圖的frame,自己控制並添加相關掃碼指南 今天我就用ZBarSDK來實現上訴兩種主流整合方式,與大家共同交流學習/ 2.第一步匯入ZBarSDK 可以從github上下載好ZBarSDK,匯入項目,並且匯入相關iOS.framework
Time of Update: 2015-01-23
標籤:android架構picasso的使用簡IntroductionImages add much-needed context and visual flair to Android applications. Picasso allows for hassle-free image loading in your application—often in one line of
Time of Update: 2015-01-23
標籤:擷取螢幕亮度int getScreenBrightness(Activity activity) { int value = 0; ContentResolver cr = activity.getContentResolver(); try { value = Settings.System.getInt(cr, Settings.System.SCREEN_BRIGHTNESS); } catch
Time of Update: 2015-01-23
標籤: iOS 認證與簽名 解惑詳解分類: iPhone2012-06-06 19:57 9426人閱讀 評論(1) 收藏 舉報iosxcodecryptographyappleiphone測試 目錄(?)[+] 教程: 下面是一篇有澳洲墨爾本的一名全職iOS開發人員提供的文章。他在論壇上是一個很摩登的年輕人 – Adam Eberbach。 &
Time of Update: 2015-01-22
標籤:android 自訂群組件 canvas 本例實現了一個簡單的柱狀統計圖,如下:
Time of Update: 2015-01-22
標籤:簡介Phonegap PhoneGap是一個用基於HTML,CSS和JavaScript的,建立移動跨平台行動裝置
Time of Update: 2015-01-23
標籤:android studio 環境配置 一: JDK配置。 配置環境變數,可參考http://blog.csdn.net/u013670933/article/details/41623865 資源(jdk-7u17-windows-x64) 連結: http://pan.baidu.com/s/1pJ2Z419&
Time of Update: 2015-01-22
標籤:ios 遠程推送 維護一個程式,當手機升級到ios8之後就不能接收到遠程推送,顯示註冊失敗,查了下資料,原來是沒有擷取使用者許可,加了個方法試了下,okif ([[[UIDevice currentDevice]systemVersion ]integerValue] >= 8) { UIUserNotificationSettings*setting =
Time of Update: 2015-01-23
標籤:android開發 android android應用 android 3.0 action bar Android官方入門文檔[5]建立操作欄 Setting Up the Action Bar建立操作欄This lesson teaches you to1.Support Android 3.0 and