Time of Update: 2015-04-15
標籤: 以水平方向進度條為例,介紹如何自訂進度條。 1.在drawable檔案夾下建立自己的進度條模版,右鍵drawable→new→Android XML file→layer list→自己起個名字(如progressBar_horizontal_1)代碼如下<?xml version="1.0" encoding="UTF-8"?><layer-list
Time of Update: 2015-04-15
標籤:cacti nagios [[email protected]]# mysql -u root -pmysql> use cacti;mysql> select * from user_auth;mysql> update user_auth set password=md5("cactipasswd") where
Time of Update: 2015-04-15
標籤: 1、 三角函數 double sin (double);正弦 double cos (double);餘弦 double tan (double);正切 2 、反三角函數 double asin (double); 結果介於[-PI/2, PI/2] double acos (double); 結果介於[0, PI] double atan (double); 反正切(主值),
Time of Update: 2015-04-15
標籤:March 11 message, the reporter discovered that a couple of days ago, men‘s brand Sea Orchid Residence announced the 2014 Annual Report - income of 12.338 billion yuan, a rise of 72.56%. The report shows that in 2015 Sea Orchid Residence will
Time of Update: 2015-04-15
標籤:一:是為了國際化,當需要國際化時,只需要再提供一個string.xml檔案,把裡面的漢子資訊都修改為對應的語言(如,English),再運行程式時,android作業系統會根據使用者手機的語言環境和國家來自動選擇相應的string.xml檔案,這時手機介面就會顯示出英文。這樣做國際化非常的方便。二:為了減少應用的體積,降低資料的冗餘。假設在應用中要使用”我們一直在努力”這段文字1000次,如果在每次使用時直接寫上這幾個字,這樣下來程式中將有70000個字,這7000
Time of Update: 2015-04-15
標籤:ios開發 多線程 線程 ios 非同步 NSOperation 依賴關係,就像你和女友,互相需要對方一樣。非常有意思。#import "ViewController.h"@interface ViewController ()@end@implementation ViewController-
Time of Update: 2015-04-15
標籤:Duang!
Time of Update: 2015-04-15
標籤:android 資料庫 總結第一步:自己編寫一個類 繼承 SQLiteOpenHelper,如下package com.example.wxj2048;import android.content.ContentValues;import android.content.Context;import android.database.Cursor;import android.database.sqlite.SQLiteDatabase;import
Time of Update: 2015-04-15
標籤:splash 使用者介面 執行個體 開發 顯示 Focus on technology, enjoy life!—— QQ:804212028 瀏覽連結:http://blog.csdn.net/y18334702058/article/details/44624305主題:使用者介面之Splash(閃屏啟動)
Time of Update: 2015-04-15
標籤:觸屏 事件 touch 事件傳遞 Android觸屏事件傳遞一:前言
Time of Update: 2015-04-15
標籤:先看看performClick()源碼:public boolean performClick() { sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_CLICKED); if (mOnClickListener != null) { playSoundEffect(SoundEffectConstants.CLICK);
Time of Update: 2015-04-15
標籤:NSTimer類的使用建立一個 TimerscheduledTimerWithTimeInterval: invocation: repeats:-(NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti invocation:(NSInvocation *)invocation repeats:(BOOL)yesOrNo;scheduledTimerWithTimeInterval: target: selector:
Time of Update: 2015-04-15
標籤:對於UIActivityIndicatorView的使用,我們一般會建立一個背景View,設定一定的透明度,然後將UIActivityIndicatorView貼在背景View上,在我們需要的時候將這個view呼出。 初始化UIActivityIndicatorView - (instancetype)initWithActivityIndicatorStyle:(UIActivityIndicatorViewStyle)style; 這個風格是一個枚舉,如下
Time of Update: 2015-04-15
標籤:android當我們在一個A(Activity)跳轉到另外一個B(Activity)時,再由B返回A時,A如何接受返回的資料。我們在B頁面加了一個輸入框和按鈕,當輸入資料,點擊按鈕返回資訊到A頁面,先來看B頁面Activity代碼package com.example.testapp;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import
Time of Update: 2015-04-15
標籤:app開發 操作 顯示 軟體 資訊 在上一節中我們學習了資料繫結,因為我個人對上一篇還是比較滿意的,至少相對於前面的那些而言(我也知道前面寫的太差了,後面還會繼續修改的,部落格也像軟體一樣嘛)。這一節開始我們將陸續看到Windows
Time of Update: 2015-04-15
標籤:elasticsearch nested 嵌套 Setting up a nested field is simple—where you would normally specify type object, make it type&nb
Time of Update: 2015-04-15
標籤:android studio 報錯 1、Rendering Problems Missing styles 設計介面布局時顯示的錯誤:[plain] view
Time of Update: 2015-04-15
標籤:Back鍵是手機上的後退鍵,一般的軟體不捕獲相關資訊可能導致你的程式被切換到後台,而回到案頭的尷尬情況,在Android上有兩種方法來擷取該按鈕的事件。 1.直接擷取按鈕按下事件,此方法相容Android 1.0到Android 2.1 也是常規方法,直接重寫Activity的onKeyDown方法即可,代碼如下:@Overridepublic boolean onKeyDown(int keyCode, KeyEvent event) { if
Time of Update: 2015-04-15
標籤:為了看代碼方便,一邊在網上google資料,一邊看Android java
Time of Update: 2015-04-15
標籤:xml控制項代碼重用:include如果我們定義一個控制項,需要在不同的layout中重複使用,或者在同一個layout中重複使用,可以採用include的方式。例如定義my_button.xml如下<?xml version="1.0" encoding="utf-8"?> <Button xmlns:android="http://schemas.android.com/apk/res/android"