如何更換皮膚

要想做一個好的程式,皮膚也是很重要的額一部分,因為它是直接吸引使用者的部分。像QQ,MSN,搜狗IME等成功軟體都有大量的皮膚供使用者選擇。 我們可以通過設定程式的主題和風格。但更換皮膚往往不止這些,它可能要更換更多的resources資源。這個程式只是說明更換皮膚的方法,代碼很簡單。包括兩個工程,一個主工程,一個皮膚工程,負責更換皮膚。 代碼介紹如下: 1.主程式: package com.D_skinMain; import android.app.Activity; import

又一個反編譯利器Apktool

上周蛋蛋給了我一個神奇的東西Apktool。神在他能把加密的XML文檔轉化為可見可編輯的形式。但一時我的電腦也沒有裝linux,前幾天拿到本本後,一直到今天才把ubuntu配置好。順手開啟google

新興XML處理方法VTD-XML介紹

問題通常當我們提起XML的使用時,最頭痛的部分便是XML的verbosity與XML的解析速度,當需要處理大XML檔案時這個問題便變得格外嚴重。我在這裡提及的,便是如何最佳化XML處理速度的話題。當我們選擇處理XML檔案的時候,我們大致上有兩種選擇:DOM,這是W3C的標準模型,它將XML的結構資訊以樹形的方式構建,提供了遍曆這顆樹的介面與方法。 SAX,一種低級的parser,逐元素的向前唯讀處理,不含有結構資訊。以上兩種選擇都各有利弊,但是都不是特別好的解決方案,它們的優缺點如下:DOM優點

Create Password Protected Zip containing a Single File

 from(http://www.example-code.com/java/zip_passwordProtect1.asp) trueZIP library https://truezip.dev.java.net/     Create a password-protected .zip containing a single file. (This uses the older Zip 2.0 encryption scheme, which is weaker and not as

Track memory allocations

Despite the impressive hardware of the first Android phones (T-Mobile G1 and ADP1) writing efficient mobile applications is not always straightforward. Android applications rely on automatic memory management handled by Dalvik's garbage collector

Verify a Zip’s Password(trueZip library)

Demonstrates how to verify the password for an encrypted or password-protected zip archive. Download Chilkat Java Library Download Chilkat Java x64 Libraryimport com.chilkatsoft.*;public class ChilkatExample { static { try {

簡單的聊天室代碼

簡單的聊天室應用程式(用戶端和服務端)服務端:import java.io.*;import java.net.*;public class chatSvr{    public static void main(String[] str)    {        ServerSocket soc;        Socket svrSoc;        ObjectOutputStream objOut=null;        ObjectInputStream objIn=null;  

Avoiding memory leaks

ndroid applications are, at least on the T-Mobile G1, limited to 16 MB of heap. It's both a lot of memory for a phone and yet very little for what some developers want to achieve. Even if you do not plan on using all of this memory, you should use

iphone異常捕獲

iphone object_c 也支援異常捕獲,用過沒有呀。 在處理UITableView, MKMapView等,你可以加一些異常捕獲,因為顯示資料常常出錯。下面是範例程式碼:@try{Statements}@catch (NSException *ex) { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:[ex name] message:[ex reason] delegate:self

iPhone 可有設計哲學?

by  newkhonsou@twitter ,iPhone 4G 出來之前,註定會有更多強大,快速,激動人心的新裝置來挑戰智能手機的巔峰 : 3GS 。但也總會有文章出現,指出 : 這還不是 iPhone Killer 。無能人威脅 iPhone 。 打倒 3G 的,仍然是 iPhone 自己。 Jobs 領先 5 年的狂言,正在慢慢應驗。移動計算的市場代表未來沒人懷疑。Nokia ,Handspring , RIM , Palm , Google , Moto 等等公司前赴後繼。

實現contacts中電話號碼字型變化的效果

連絡人(contacts)學習一如何?contacts中電話號碼字型變化的效果:效果如下:變化為以下效果:實現方法:1、Activity 實現 TextWatcher 該 interface2、重寫以下3個方法:private EditText mDigits;public void beforeTextChanged(CharSequence s, int start, int count, int after) {     }public

串連lotus代碼

//需要把lotus裡的notes.jar,ncso.jar放入classpath** * <p>Title: 圖形化設計</p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2004</p> * <p>Company: </p> * @author zhongweihai  newwei2001@yahoo.com.cn *

從相簿的列表中選擇頭象,並將其裁剪

  從相簿的列表中選擇頭象,並將其裁剪 步驟如下: 1、觸發一個單擊事件,在單擊時間中發送一個 Intent Intent intent = new Intent(Intent.ACTION_GET_CONTENT, null);intent.setType(image/*);intent.putExtra(crop, true);intent.putExtra(aspectX, 1);intent.putExtra(aspectY, 1);intent.putExtra(outputX, 96

Post方式發送UIImage資料到伺服器

//This example send email with attachment using server side//So iPhone will fill form and send proper request to web server using POST method//For test you can use attached sendEmail.php-(NSMutableData *)generateDataFromText:(NSString *)dataText

zip file unzip file demo

 some demo here (http://www.example-code.com/java/zip.asp)make zip

非同步載入圖片

(http://www.javaeye.com/topic/743672)    前幾天記得說要分享一下非同步下載載入圖片的經驗,最近一直在研究Cocos2d,把這事耽誤了。今天就寫了寫  如果不怕圖片那個記憶體溢出的bug的話。可以使用ListView,GridView等等,如果擔心這個問題,可以使用ImageView 既然是非同步載入,那就採用多線程下載吧。

classes.dex漢化

dex的漢化相比arsc和xml麻煩了不止一點點,我也摸索了挺久才弄會的吧~首先感謝lxe@opda 告訴我的反編譯方法classes.dex是程式編譯後的[程式名].java檔案。其中包含了軟體所有activity編譯後的代碼。JesusFreke寫了一個反編譯dex檔案的java程式,並發布在google

對檔案壓縮加密,解密解壓縮,對稱式加密,DES演算法

 from(http://hi.baidu.com/yezongbo/blog/item/f79b6000823a8c82e850cd16.html) package koal.project.xdxx.ra.admin.util;import java.io.DataOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import

自己動手寫JDBC驅動來監視SQL語句(1)

Author 正正 Date  2011.01.26 21:30:00  

通過重寫Adapter實現多選的ListView

下面這個是需要現實在ListView中的布局檔案:<?xml version="1.0" encoding="utf-8"?><LinearLayout android:id="@+id/row"        xmlns:android="http://schemas.android.com/apk/res/android"        android:orientation="horizontal"       

總頁數: 61357 1 .... 20586 20587 20588 20589 20590 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.