Time of Update: 2015-01-22
標籤:ackage com.example.helloworld;import android.os.Bundle;import android.app.Activity;import android.app.AlertDialog;import android.app.Dialog;import android.view.Menu;import android.view.View;import android.widget.Button;public class MainActivity
Time of Update: 2015-01-22
標籤:最近在用View inflate(Context context, int resource, ViewGroup root)方法時,在第三個參數root上碰到了點麻煩。一般在寫ListView的adapter時,會這樣載入自訂欄View imageLayout = inflate(getContext(),R.layout.item_album_pager,
Time of Update: 2015-01-22
標籤:記性真差,對這幾個長度單位整理一下1、dpdp和dip一樣,device independent pixels(裝置獨立像素)。不同裝置有不同的顯示效果,這個和硬體有關係,一般我們為了支援WVGA、HVGA和QVGA 推薦使用這
Time of Update: 2015-01-22
標籤:// 1.建立一個自訂的按鈕UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];// 2.添加按鈕[self.view addSubview:btn];// 3.設定按鈕的位置和尺寸btn.frame = CGRectMake(100, 100, 100, 100);// 4.監聽按鈕點擊(點擊按鈕後就會調用self的btnClick方法)[btn addTarget:self
Time of Update: 2015-01-22
標籤:Xamarin iOS編寫第一個應用程式建立工程在Xcode以及Xamarin安裝好後,就可以在Xamarin Studio中編寫程式了。本節將主要講解在Xamarin Studio中如何進行工程的建立以及編寫代碼等內容XamariniOS編寫第一個應用程式建立工程本文選自Xamarin iOS開發實戰大學霸。1.3.1 建立工程XamariniOS編寫第一個應用程式建立工程本文選自Xamarin
Time of Update: 2015-01-22
標籤: Android中在sqlite插入資料的時候預設一條語句就是一個事務,因此如果存在上萬條資料插入的話,那就需要執行上萬次插入操作,操作速度可想而知。因此在Android中插入資料時,使用批量插入的方式可以大大提高插入速度。 有時需要把一些資料內建到應用中,常用的有以下2種方式:其一直接拷貝製作好的SQLite資料庫檔案,其二是使用系統提供的資料庫,然後把資料批量插入。我更傾向於使用第二種方式:使用系統建立的資料庫,然後批量插入資料。批量插入資料也有很多方法,那麼那種方法更快呢,下面通
Time of Update: 2015-01-22
標籤:mystra android 順延強制 postdelayed handler is
Time of Update: 2015-01-22
標籤:mystra android onsaveinstancestate can not perform this action
Time of Update: 2015-01-22
標籤:字串 資源 android layout values res/drawable/映像型的資源檔;res/layout/可被編譯成螢幕布局的xml檔案;res/values/可被編譯成多種類型的資源檔:(1)array.xml 定義數組;(2)colors.xml
Time of Update: 2015-01-22
標籤:android開發 eclipse 安卓 sdk adt 忙活了兩天多的時間,終於在Eclipse中成功搭建了Android開發環境,著實不易啊!!原本我用的編譯器是MyEclipse的,但是從網上找不到如何在MyEclipse中搭建環境,於是乎就換了Eclipse,但是Eclipse的下載又費了不少勁。廢話不多說,為了讓
Time of Update: 2015-01-22
標籤:本文轉載至http://blog.csdn.net/kqygww/article/details/41277555 64-bit and iOS 8 Requirements for New Apps 新提交的iOS8 App,64位成為必選項, 2015年2月1號生效October 20, 2014Starting February 1, 2015, new iOS apps uploaded to the App Store must include 6
Time of Update: 2015-01-22
標籤:R.java中儲存了項目中所有的資源全域索引bin存放編譯後的檔案asserts存放了需要釋放到手機的檔案libs第三方庫的存放目錄 ----------------------------------------------------產生秘鑰認證D:\Program Files\Java\jdk1.8.0_25\bin>keytool 命令: -certreq 產生認證請求 -changealias 更改條目的別名 -delete
Time of Update: 2015-01-22
標籤: 看了這麼多的文章,終於看懂了。參考文獻:【1】android developer handler【2】Android中Handler作用【3】 Android Thread Looper Handler 關係【4】android的訊息處理機制(圖+源碼分析)——Looper,Handler,Message1、從定義上理解Handler 首先有一下參考文獻【1】中的一句英文句子來說明下: A
Time of Update: 2015-01-22
標籤:如果有需要跟蹤NSArray中的內容,需要重寫descriptionWithLocal 方法。首先建立一個NSArray 的Category,在建立出來的.m檔案中加入下列代碼 - (NSString *)descriptionWithLocal:(id)local { NSMutableString *string = [NSMutableString string]; [string appendString:@"("]; for (id obj in
Time of Update: 2015-01-21
標籤:ios8 swift coredata Core Data字面意思就是核心資料,但它其實並不是一個資料庫,它是一個架構,就像我們之前經常用到的Foundation一樣,我們做持久化的時候,使用Core Data非常方便。下面展示的是Core Data架構的結構圖:我們來建立一個項目進行添加core data的學習。
Time of Update: 2015-01-21
標籤:c++ pat 現給出兩人的交鋒記錄,請統計雙方的勝、平、負次數,並且給出雙方分別出什麼手勢的勝算最大。輸入格式:輸入第1行給出正整數N(<=105),即雙方交鋒的次數。隨後N行,每行給出一次交鋒的資訊,即甲、乙雙方同時給出的的手勢。C代表“鎚子”、J代表“剪刀”、B代表“布”,第1個字母代表甲方,第2個代表乙方,中間有1個空格。輸出格式:輸出第1、2行分別給出甲、乙的勝、平
Time of Update: 2015-01-21
標籤:cookie session 用戶端和伺服器 瀏覽器和伺服器 會話管理 項目前提:Client Access
Time of Update: 2015-01-21
標籤:publicclass BitMapTools {?????/**???? * 對圖片進行解碼操作???? * ???? * @param resource???? * 資源檔???? * @param resId???? * 解碼位元影像的iD???? * @param reqWidt???? * 指定輸出位元影像的寬度???? * @param reqHight???? * 制定輸出位元影像的高度?
Time of Update: 2015-01-21
標籤:1、線性布局屬性一、 linearlayout的屬性:android:background 設定整個布局畫面的背景android:orientation="horizontal" 子項目的排列隊形,是橫向排列,還是縱向排列android:gravity="bottom" 子項目在布局中的預設看齊方式android:padding 設定子項目與布局邊緣之間的空白linearlayout布局的特點是:各個子項目彼此串連,中間不留空白。二、 linearlayout的子項目屬性:android:
Time of Update: 2015-01-21
標籤:第一種:線性布局 這種布局相對是比較簡單的,要麼豎向排列,要麼橫向排列 [html] view plaincopy <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width=