Time of Update: 2015-05-26
標籤: Android手機和iPhone有很多相比較的地方。我們無法做出哪個更好的結論,但是我們都知道Android手機圖片的品質是比iPhone差的。無論你是用Facebook、Twitter甚至是Instagram,拍完照片,加個濾鏡,然後分享到社交平台,Android手機產生的圖片總是很粗糙。為什麼呢?
Time of Update: 2015-05-25
標籤:android broadcastreceiver 接收廣播訊息四大組件之一,其本質上是一個全域的監聽器,用於監聽系統全域的廣播訊息,接收程式所發出的BroadcastResiver Intent因此可以非常方便的實現系統中不同組件之間的通訊。Android中的廣播主要可以分為兩種類型:標準廣播和有序廣播。標準廣播(Normal
Time of Update: 2015-05-26
標籤:給Android ListView添加刪除item動畫 給listview刪除一個item的時候加上一個摺疊動畫,感覺效果會好一點。 步驟是當刪除一個view,先用動畫把view的高度改變,看上去就是摺疊的效果。當動畫完成的時候,再真正把item移除。 private void deletePattern(final View view, final int position) { Animation.AnimationListener al = new
Time of Update: 2015-05-26
標籤:注釋要添加的按鈕的總個數為total -(void)addScrollAndButton{ int COLUMN=4;//列數 int total = self.listArray.count; //int rows = (total / COLUMN) + ((total % COLUMN) > 0 ? 1 : 0); &
Time of Update: 2015-05-26
標籤:測試service中使用了一個Toast來列印log。 提示無法調用Looper.prepare() 加入後代碼正常執行。 Looper.prepare(); Toast.makeText(getApplicationContext(), "Services Thread", Toast.LENGTH_LONG).show() Looper.loop();
Time of Update: 2015-05-26
標籤:最近項目有需求, 需要模態初一個半透明的視圖, 好多人都碰到這個問題吧, 在目標視圖中設定背景顏色然後發現模態動作結束後變成了黑色或者不是半透明的顏色。所以今天來告訴大家解決方案- (IBAction)Avtion1:(id)sender { TestViewController * testVC = [TestViewController new]; self.definesPresentationContext = YES; //self is presenting
Time of Update: 2015-05-26
標籤:ios 字串 nsmutableattributeds 最近寫代碼需要根據不同的內容顯示不同的顏色。在這裡mark一下。設定顏色: NSString *contentStr = @"簡介:hello world"; NSMutableAttributedString *str = [[NSMutableAttributedString
Time of Update: 2015-05-25
標籤: application PhoneApp既沒有被Broadcast喚醒,也沒有被其他service調用,那麼是android是通過什麼方式來啟動PhoneApp,所以就發現了屬性android:persistent。
Time of Update: 2015-05-26
標籤:eclipseAndroid-eclipse提示一
Time of Update: 2015-05-26
標籤:android edittext屬性總 android edittext android android customview IME 接下來老於就總結一下 EditText屬性吧!android:inputType="none" 這個就不要解釋了吧 android:inputType=&
Time of Update: 2015-05-25
標籤:安裝ADT具體安裝可以查看這個地址 http://jingyan.baidu.com/article/b0b63dbfa9e0a74a4830701e.htmladt地址:http://dl-ssl.google.com/android/eclipse/ 建立一個Android應用程式選擇File-New-Android Application
Time of Update: 2015-05-26
標籤:昨天修改<manifest 檔案中activity 的 模式為單例模式:android:launchMode="singleTask" ,發現我的onActivityResult 無法觸發了,後來修改回來又可以觸發了。 例如:Activity1 中有onActivityResult 方法 ,在Activity2 中有setResult 方法 ,Activity2 關閉後 應該觸發Activity1的 onActivityResult
Time of Update: 2015-05-25
標籤:文章轉載:http://blog.sina.com.cn/s/blog_7b9d64af0101b8nh.html在iOS中動畫實現技術主要是:Core Animation。 Core Animation負責所有的滾動、旋轉、縮小和放大以及所有的iOS動畫效果。其中UIKit類通常都有animated:參數部分,它可以允許是否使用動畫。 Core Animation主要是使用我們知道每個UIView都關聯到一個CALayer對象,CALayer是Core
Time of Update: 2015-05-26
標籤:更新studio之後遇到這個問題,這個問題的原因是studio的values目錄下的style.xml錯誤造成的。錯誤的style.xml檔案如下: <resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
Time of Update: 2015-05-26
標籤:WebView可以使得網頁輕鬆的內嵌到app裡,還可以直接跟js相互調用。webview有兩個方法:setWebChromeClient 和
Time of Update: 2015-05-26
標籤:objective-c string ios swift 要從一個字串中解析得到準確的時間,必須要指定正確的格式字串,以及對應的時區標示1、日期格式1.年y 將年份 (0-9)
Time of Update: 2015-05-26
標籤:本文主要討論一種非常方便的抓取Android和iphone行動數據包的辦法,以及介紹wireshark最常用的技巧抓包工具介紹(1).網頁抓包工具 Chrome瀏覽器外掛程式 FireBug 外掛程式 HttpWatch Fiddler
Time of Update: 2015-05-25
標籤:ruby gem taobao ios cocoapods 一、簡介開發IOS應用時,經常會用到一些第三方開源類庫,如JSONKit、AFNetWorking、QRCode等。一個類庫可能還會引用其它類庫。手動去一個個載入就顯得比較麻煩。而CocoaPods就是用來解決類庫引用總是的,它類似於PHP上的Com
Time of Update: 2015-05-25
標籤:uitableview uitableviewheaderfoo cgaffinetransform ios 怎樣設定包括第一欄在內相同高度的section(小技巧,雖然容易但容易忽略) *第一步,在viewdidload裡將尾部設為0,table.sectionFooterHeight =
Time of Update: 2015-05-25
標籤:android第三方 eclipse android工程匯入 android項目依賴 android 在Android開發中,有時需要應用第三方架構,那麼就需要把第三方項目匯入到Eclipse中,並完成依賴。接下來詳細講一下該過程