Time of Update: 2014-12-29
標籤:/*** 從config.xml中擷取版本資訊以及應用id* * @param urlPath* @return* @throws Exception*/public List<String> getUpdateInfo() {Resources r = context.getResources();// 通過Resources,獲得XmlResourceParser執行個體XmlResourceParser xrp = r.getXml(R.xml.config);
Time of Update: 2014-12-27
標籤:第一講 初始類和對象c語言的超集,允許在oc中使用c語言原始碼。編譯器相容c語言程式 具備完善的物件導向特性 包含一個運行時系統 類庫豐富 物件導向編程 oop 物件導向語言:c++ java c# 概念:對象、類、封裝、繼承、多態等 面向過程:分析解決問題的步驟,實現函數,依次調用 物件導向:分析問題組成的對象,協調對象間的聯絡和通訊,解決問題
Time of Update: 2014-12-29
標籤:uiscrollview uitableview ios 下拉重新整理 下拉載入更多 IOS裡面用到的下拉重新整理、上拉載入更多控制項,開源的第三方架構很多,我們可以直接拿過來用,別人造好的輪子我們就沒有必要再造一遍了,這裡推薦幾款下拉重新整理、上拉載入更多控制項只有下拉重新整理的:一、EGOTableViewPullRe
Time of Update: 2014-12-27
標籤:如有錯漏請不吝拍磚指正,轉載請註明出處,很感謝 案頭便簽軟體是android上經常使用軟體的一種,比方比較早的Sticky Note,就曾很流行,Sticky Note的介紹能夠參見
Time of Update: 2014-12-28
標籤:ios edgesforextendedlayo uitableview uisearchbar 在IOS7以後 ViewController 開始使用全屏布局的,而且是預設的行為通常涉及到布局就離不開這個屬性 edgesForExtendedLayout,它是一個類型為UIExtendedEdge的屬性,指定邊緣要延伸的方向,它的預設Í
Time of Update: 2014-12-27
標籤:android android開發 經驗分享 軟體開發 sdk 1.6 Log列印—Log輸出工具(logcat)1.6.1
Time of Update: 2014-12-27
標籤:pull解析 listview最佳化 httpclient android訊息處理機制 布局 一、概述這是一個通過HttpClient抓取網頁新聞的demo。涉及知識點:通過HttpClient從網路擷取新聞(組織成XML格式的),pull解析XML,Android下ListView的使用及最佳化
Time of Update: 2014-12-28
標籤:android開發 螢幕適配 解析度 橫豎屏問題 New
Time of Update: 2014-12-27
標籤:為什麼有時候像android:layout_marginBottom等變數的賦值為負數?例如如下代碼:<?xml version="1.0" encoding="UTF-8"?><LinearLayout android:orientation="vertical" android:id="@id/Widget_2X4_frame"
Time of Update: 2014-12-28
標籤:Android SDK開發包(2014-12-20)
Time of Update: 2014-12-28
標籤: 編譯過程要消耗很長時間,在我的電腦上大概用五個小時左右,如果你的環境配置沒錯的話,編譯就不會出錯。編譯源碼進入到源碼目錄,然後:. build/envsetup.sh之後:lunch選擇:7. aosp_hammerhead-userdebug下面就正式開始了:make -j 5之後盡量就不要碰電腦了,8G 記憶體給虛擬機器分配了 6G,Windows 基本動不了了。來自為知筆記(Wiz)(4) 編譯 Android-5.0 源碼
Time of Update: 2014-12-28
標籤:iostream iostream.h #include <iostream.h>非標準輸入輸出資料流#include
Time of Update: 2014-12-28
標籤:1、volley 項目地址 https://github.com/smanikandan14/Volley-demo (1) JSON,映像等的非同步下載; (2) 網路請求的排序(scheduling) (3) 網路請求的優先順序處理 (4) 緩衝 (5) 多層級取消請求 (6)
Time of Update: 2014-12-27
標籤:package com.lxt008;import com.lxt008.R;import android.app.Activity;import android.os.Bundle;import android.util.Log;public class HelloAndroidActivity extends Activity{ /* 定義TAG標籤,這樣可以很好的區分列印出來的log */ private static final String TAG = "
Time of Update: 2014-12-28
標籤:代碼Activity01package com.lxt008;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import android.view.Menu;import android.view.MenuInflater;import android.view.MenuItem;public class Activity01 extends Activity{ /
Time of Update: 2014-12-28
標籤:代碼package com.lxt008;import android.app.AlertDialog;import android.app.Dialog;import android.app.TabActivity;import android.content.DialogInterface;import android.graphics.Color;import android.os.Bundle;import android.widget.TabHost;import
Time of Update: 2014-12-28
標籤:代碼package com.lxt008;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.ImageSwitcher;import android.widget.ImageView;import
Time of Update: 2014-12-27
標籤: 轉載自 :http://blog.csdn.net/cheneystudy/article/details/8115105這段代碼動態建立了一個UILabel,並且把相關常用的屬性都列舉了.- (void)viewDidLoad {//建立uilabelUILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(20, 40, 280, 80)]; //設定背景色label1.backgroundColor
Time of Update: 2014-12-28
標籤:方法一:輪訓比如主線程要等子線程在得到變數“val”值的時候開始用“val”的值來進行工作,使用輪訓的方法如下:public class SubThread extends Thread{ private boolean flag = false;//標誌位,用來標識是否應該通知主線程或者其他對象改做事情了 @Override public void run() {
Time of Update: 2014-12-28
標籤:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 這道題的難度不算特別大,主要是對鏈表技能的考察。 奉上我寫的代碼: class Solution { public: ListNode