Time of Update: 2014-07-19
標籤:ios ios開發 color #define DEFAULT_VOID_COLOR [UIColor whiteColor]+ (UIColor *)colorWithHexString:(NSString *)stringToConvert{ NSString *cString = [[stringToConvert
Time of Update: 2014-07-19
標籤:android 對話方塊 如何?點擊按鈕,彈出“正在載入資料,請稍候...”對話方塊,載入完了之後,對話方塊自動消失呢?其實也是很簡單的看下面代碼:<pre name="code" class="java">import java.util.List;import com.farsunset.ichat.example.R;import
Time of Update: 2014-07-19
標籤:android layoutinflater LayoutInflater的inflate方法,在fragment的onCreateView方法中經常用到: public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
Time of Update: 2014-07-19
標籤:諾基亞 微軟 裁員 三星 Google 微軟日前正式宣布,公司會在未來一年內裁員1.8萬人,其中今年4月剛剛併購過來的諾基亞裝置與服務部門將約有1.25萬名員工被裁。需要指出的是,本次的裁員人數占該公司全球12多萬名員工總數的14%,同時這也是微軟公司39年歷史上最大規模的一次裁員。微軟方面表示,此次裁員主要是
Time of Update: 2014-07-19
標籤:cocos2d-x-3.0 android 環境部署 網上一大堆講述coco2d-x 3.0 版本的android環境搭建,真是不忍直視。講的不清不楚,真是不知道他們自己有沒有測試過。今天正好忙完項目有點時間去部署了下android環境。cocos2d-x 3.0 版本大大簡化了android環境的部署,簡單到只需一條命令就可以了。好了廢話不多說開始進入正題。(我用的引擎是cocos2d-x 3.0
Time of Update: 2014-07-19
標籤:android 日期 日曆 控制項 timessquare 先看:使用說明:在布局檔案中:<com.squareup.timessquare.CalendarPickerView android:id="@+id/calendar_view" android:layout_width=
Time of Update: 2014-07-19
標籤:ios CGAffineTransform matrix = CGAffineTransformMake(1, 0, tanf(15 * (CGFloat)M_PI / 180), 1, 0, 0); UIFontDescriptor *desc =
Time of Update: 2014-07-19
標籤:android 開源 架構 在上一篇文章Android 最火的快速開發架構XUtils中簡單介紹了xUtils的基本使用方法,這篇文章說一下xUtils裡面的註解原理。 先來看一下xUtils裡面demo的代碼:@ViewInject(R.id.tabhost) private
Time of Update: 2014-07-19
標籤:android adb eclipse android開發 問題:The connection to adb is down, and a severe error has occured. You must restart adb and EclipseError:遠程主機強迫關閉了一個現有的串連adb locked!adb.exe not
Time of Update: 2014-07-19
標籤:android iphone 日期 時間先看如何使用import java.text.DateFormat;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Calendar;import android.app.Activity;import android.app.AlertDialog;import
Time of Update: 2014-07-19
標籤:android中怎麼把自己需要的app啟 android對話方塊 自訂lancher 先看這個是我們自己的apk點擊之後的效果下邊是布局檔案activity_main.xml主布局檔案<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Time of Update: 2014-07-19
標籤:android style blog http java color :這裡只簡單做了兩個按鈕的。首先是兩個按鈕的背景:res/drawable/seg_left.xml<?xml version="1.0" encoding="utf-8"?
Time of Update: 2014-07-19
標籤:style http color 使用 os art 使用NSDictionaty來設定文本的屬性:NSDictionary * attributes = @{NSFontAttributeName: [UIFont fontWithName:@"Heiti SC"
Time of Update: 2014-07-19
標籤:qt on android android 今早群裡有個盆友問如何將 Qt 開發的 Android 應用的名字設定為中文,實驗了一下,有兩個辦法。博文大賽決賽了,請給我投票:Qt Quick 影像處理執行個體之美圖秀秀(附源碼下載),謝謝。 原文連結:Qt Quick 影像處理執行個體之美圖秀秀(附源碼下載)直接修改 AndroidManifest.xml
Time of Update: 2014-07-19
標籤:安全執行緒 thread ui 介面 Android中實現view的更新有兩組方法,一組是invalidate,另一組是postInvalidate,其中前者是在UI線程自身中使用,而後者在非UI線程中使用。 Android提供了Invalidate方法實現介面重新整理,但是Invalidate不能直接線上程中調用,因為他是違背了單執行緒模式:A
Time of Update: 2014-07-19
標籤:android style blog http java color package com.example.helloworld; import android.os.Bundle;import android.app.Activity;import
Time of Update: 2014-07-19
標籤:android 使用 art 問題 re c Android開發的過程中,每次調用startService(Intent)的時候,都會調用該Service對象的onStartCommand(Intent,int,int)方法,然後在onStartCommand方法中做一些處理。然後我們注意
Time of Update: 2014-07-19
標籤:android style blog http 檔案 問題 首先是repo的安裝,參考網上的文章都過時了,原因是下載伺服器位址變動了。最好參考Google官方地址:http://source.android.com/source/downloading.html。下載好repo要配置環境變
Time of Update: 2014-07-19
標籤:os 檔案 io cti html re 關於lnmp架構整合cacti+nagios中,nginx的設定檔是最難搞的,個人感覺nginx.conf的設定檔##裡面用重寫server { listen 80; server_name laimai365.org
Time of Update: 2014-07-19
標籤:android style blog color 使用 strong 先說說我的遇到的問題:1. 我在activity裡寫一個 fragment2.這個fragment裡有個 imageView ,用於顯示圖片。我使用 asyncTask獲得圖片,並準備在這個imageView