Time of Update: 2015-07-21
標籤:import android.app.Activity;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;import android.content.IntentFilter;import android.os.Bundle;import android.util.Log;import android.widget.Toast;
Time of Update: 2015-07-22
標籤:14.04 ubuntu android eclipse adt 1.首先到orcale官網 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 下載jdk2
Time of Update: 2015-07-22
標籤: 安卓,在小編實習之前的那段歲月裡面,小編都沒有玩兒過,如果說玩兒過,那就是安卓手機了,咳咳,敲登入的時候有種特別久違的熟悉,這種熟悉的感覺就和當時敲機房收費系統一樣,那叫一個艱難啊,不過小編相信,在小編的IT成長之路上,正是因為有了這些艱難險阻陪伴著小編一起成長,才讓小編更加勇敢堅強,勇敢的面對一個又一個bug,堅強的敲完一行行代碼,經過了幾天的研究登入一條線的功能已經實現,現在小編就來簡單的總結一下,還請小夥伴們多多指教哦`(*∩_∩
Time of Update: 2015-07-22
標籤:伺服器經常伺服器返回的資料,有null,還有nil,如果在模型層不處理的話,到時候資料展現時,一定會崩啊,最近決心要解決這個問題,所以查看了一些資料後,有答案了:- (id) setNoNull:(id)aValue{ if (aValue == nil) { aValue = @"";//為null時,直接賦空 } else if ((NSNull *)aValue == [NSNull null]) { aValue = @&
Time of Update: 2015-07-22
標籤:android 事件處理 教程 監聽 基礎 Android基礎入門教程——3.1.1 基於監聽的事件處理機制標籤(空格分隔): Android基礎入門教程本節引言:
Time of Update: 2015-07-22
標籤:KVO == Key Value Observing作用: 可以監聽某個對象屬性的改變 一、使用KVO Person *p = [Person new]; p.name = @"chg"; p.age = 30; // 給p這個對象添加一個監聽 , 監聽p對象的age屬性的改變, 只要age屬性改變就通知self [p addObserver:self forKeyPath:@"age"
Time of Update: 2015-07-22
標籤:#import "ViewController.h"@interface ViewController ()@property (nonatomic,strong)CALayer *imageLayer;@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad];&
Time of Update: 2015-07-22
標籤:不知道為什麼android的ndk開發資料在網上很少,還有的資料基本上無法完成入門學習demo,根本無法運行,小弟用了三天三夜的時間來弄helloworld,極盡失眠的程度。一開始是在android studio上配置ndk開發幻鏡,然後是進行hello world的開發,但是android studio支援ndk開發相對較晚,沒有elipse成熟,在編譯的時候遇到很多問題,最終放棄(我知道這不是一個好習慣,但是等以後我還會回來的)註:ndk在gradle上的配置http://gradle
Time of Update: 2015-07-21
標籤:/** * 用CALayer定製下載進度條控制項 * 1.單獨建立出CALayer * 2.直接修改CALayer的frame值,執行隱式動畫,實現進度條效果 * 3.用定時器(NSTimer)類比網路下載時提供的百分比資料 * 4.將CALayer封裝進UIView子類中定製進度條控制項 */ 自訂一個UIView,建立CALayer
Time of Update: 2015-07-21
標籤:第一種HashMap<String, String> map = new HashMap<String,
Time of Update: 2015-07-21
標籤: 效果如下: 代碼編寫如下:Crize_demo\app\src\main\res\layout\activity_main.xml1 <!--定義一個線性布局-->2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"3
Time of Update: 2015-07-22
標籤:android-studio1,在build.grandle添加,其中規則寫在proguard-rules.pro中,也可以自訂一個檔案,將其代替,比如eclipse常用的 proguard-project.txtbuildTypes { release { signingConfig signingConfigs.release minifyEnabled true proguardFiles
Time of Update: 2015-07-21
標籤:ios;icon首先,要準備好一張圖片,最好是png格式的,匯入項目中,也就是複製進來啦。尺寸大小自己注意啦。然後,開啟Info.plist檔案,在根節點Information Property List 下新添一項為Icon files,這是一個array類型,裡面的item就是icon圖片的名字,不同item可以放不同尺寸的圖片。that‘s all!本文出自 “靈哥筆記” 部落格,請務必保留此出處http://kinghacker.blog.51cto.com/7767090/167
Time of Update: 2015-07-21
標籤:jquery 朋友 文字框 蘋果 觸摸 今天分享一款很棒的外掛程式touchSwipe,估計很多朋友都在找手機全屏滾動的效果,因為好多企業的微官網是或是專題都在用這樣的效果,那麼今天touchSwipe
Time of Update: 2015-07-22
標籤:File這是檔案基類,抽象地代表一個檔案實體,它有四個不同的構造方法: File(File dir, String name) File(String path) File(String dirPath, String name) File(URI
Time of Update: 2015-07-21
標籤:三星智能手錶今天發布
Time of Update: 2015-07-21
標籤:studio android 開發 google 由於Google官方已經明確表示不再支援Eclipse,這就意味著後面的開發使用Android Studio來進行開發是少不了的了,為了能跟上Google的腳步,小巫打算使用Android Studio重新錄製新的課程,從零開始教大家如何來學習Android核心知識,最佳化之前使用Eclipse的課程,
Time of Update: 2015-07-21
標籤:網路請求 get 同步 非同步 ios 同步的 get 請求#pragma mark - 同步的 get 請求- (IBAction)GETSynButtonDidClicked:(UIButton *)sender { // 1、網址裡面必須寫 http:// NSString *urlString = @"
Time of Update: 2015-07-22
標籤:感覺記不住,代碼貼上以免以後難找 在proj.android\src\org\cocos2dx\cpp\AppActivity.java 中的 public class AppActivity extends Cocos2dxActivity 裡面添加以下代碼 public Cocos2dxGLSurfaceView onCreateView() {
Time of Update: 2015-07-22
標籤:static function SetShortArrayElement (array : IntPtr, index : int, val : Int16) : voidDescription描述Sets the value of one element in a primitive array.設定一個基本數組一個元素的值。This function is a special case of SetShortArrayRegion(), called with region size