Time of Update: 2018-12-05
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent"> <TextView android:id="@+id/instruction" android:layout_width="fill_parent" android:layout_weight="0.8" /> <TextView
Time of Update: 2018-12-05
Android 4.0.1 源碼下載,模擬器編譯和運行http://blog.csdn.net/rambo2188/article/details/6943382http://www.linuxidc.com/Linux/2011-11/47808.htm轉注:本文由rambo2188在CSDN上首發,linuxidc上的貌似該文的轉載----------------------------------------------------------------[1] Android ICS
Time of Update: 2018-12-05
1.自訂一個view檔案MyView.java2.定義自訂屬性檔案values/attrs.xml<?xml version="1.0" encoding="utf-8" ?><resources> <declare-styleable name="MyAtrr"> <attr name="textcolor" format="color"/> <attr name="textsize"
Time of Update: 2018-12-05
public String convertStreamToString(InputStream is) { /* * To convert the InputStream to String we use the BufferedReader.readLine() * method. We iterate until the BufferedReader return null which means *
Time of Update: 2018-12-05
package com.android.httppost;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.net.HttpURLConnection;import java.net.URL;import android.app.Activity;import
Time of Update: 2018-12-05
package com.lxl.demo;import android.app.Activity;import android.os.Bundle;import android.view.Window;import android.view.WindowManager;public class DemoActivity extends Activity {/** Called when the activity is first created. */@Overridepublic void
Time of Update: 2018-12-05
轉自:http://lizanhong2011.blog.163.com/blog/static/18028516720115255556461/ Android手機模擬器的速度太慢了,慢到讓人無法忍受,不僅僅是啟動慢,運行時也是一卡一卡的,簡直讓人崩潰,一個字——囧。 如果您手上有一部Android手機,那就太好了,我們可以將手機通過資料線與電腦相連,直接使用真機進行調試,速度慢的問題也就迎刃而解。筆者手頭有一部魅族M9手機(20所示),和其他Android手機一樣,同樣可以通過USB介面調
Time of Update: 2018-12-05
1. View.onDraw( ) method is a very performance-criticalpiece of code, so it’s best to do as little as possible there.• If possible, avoid doing any object allocations in the method onDraw( ).• Prefetch things such as color constants elsewhere (for
Time of Update: 2018-12-05
Android Studio 1.0的前瞻版發布了,今早馬上下載嘗下鮮。如下:https://developer.android.com/sdk/installing/studio.html很顯然的IntelliJ IDEA的樣貌,下面是一些:選擇了“New
Time of Update: 2018-12-05
1.用到的jar包為:ksoap2-android-assembly-2.4-jar-with-dependencies.jar2.效果3.代碼:注意:a.因為android4.0以後不能在主線程中進行http請求,所以需要在Acitivity的onCreate函數中添加以下代碼 if (Build.VERSION.SDK_INT >= 11) { StrictMode.setThreadPolicy(new
Time of Update: 2018-12-05
(啊,一不小心把這篇文章刪了,沒有備份,只能重來了。)在API Demo的View->Animation下可以找到四個Animation的Demo,第一個3D
Time of Update: 2018-12-05
Android高手進階教程(二)之----Android Launcher抽屜類SlidingDrawer的使用!Android高手進階教程(三)之----Android 中自訂View的應用.Android高手進階教程(四)之----Android 中自訂屬性(attr.xml,TypedArray)的使用!Android高手進階教程(五)之----Android 中LayoutInflater的使用!Android高手進階教程(七)之----Android
Time of Update: 2018-12-05
## 檢驗sqlite3是否可用#sqlite3ver=`sqlite3 --version > /dev/null 2>&1`sqlite3_ok="yes"if [ $? -ne 0 ]; then sqlite3_ok="no" echo -e "\033[31m Not found\033[1;34m sqlite3\033[31m in host, verify failed ! \\033[0m ***"else sqlite3ver=`sqlite3 --
Time of Update: 2018-12-05
Android裡merge和include標籤的使用參考android文檔:《Layout Tricks:Merging》先得說下關於<merge />標籤的第一個比較簡單的用法。如果我們使用FrameLayout作為activity's content view的父元素(也就是在main.xml裡把它寫在最外層),那麼可以考慮用<merge />替換<FrameLayout
Time of Update: 2018-12-05
1:下載SDL2.0的版本2:r8下編譯的,還好,這個版本可以直接在windows下用了3:把sdl目錄裡的sdl_config.h改成android的。4:一開始運行ndk-build,提示 EGL/egl.h 找不到,原來需要在 jni目錄裡的Application.mk指定9以上的版本像下面的APP_ABI := armeabiAPP_PLATFORM := android-94:ndk-build就OK了不過現在SDL2的文檔似乎還不怎麼完善,改起來有點小痛苦
Time of Update: 2018-12-05
一、Android Apk簽名 Apk簽名首先要有一個keystore的簽名用的檔案。 keystore是由jdk內建的工具keytool產生的。 具體產生方式參考: 開始->運行->cmd->cd到你安裝的jdk的目錄裡,我的是C:/Program Files/Java/jdk1.6.0_10/bin 然後輸入: keytool -genkey -alias asaiAndroid.keystore -keyalg RSA -validity 20000 -keystore
Time of Update: 2018-12-05
安裝Ubuntu Android應用程式開發環境需要如下幾個軟體Java開發包:JDK 1.5/1.6開發Integration Environment(IDE): Eclipse 3.5.2Android開發環境:ADTAndroid SDK一.安裝JDK 根據ubuntu官方網站的 java安裝配置 ,我們在中端中輸入如下命令:view plaincopy to
Time of Update: 2018-12-05
設定TextView預設字型的辦法:Java代碼 textView.setTypeface(Typeface.DEFAULT, Typeface.NORMAL); 設定字型為預設粗體,粗體字型Java代碼 textView.setTypeface(Typeface.DEFAULT_BOLD, Typeface.BOLD); 設定字型為等寬字型,斜體字型Java代碼 textView.setTypeface(Typeface.MONOSPACE,
Time of Update: 2018-12-05
自Android 2.3 SDK發布後,Google便在Android SDK Tools裡加入了proguard,proguard是一個可以對.java檔案進行一定程度上的代碼混淆,使用proguard是一件極方便工作,在你項目中沒有其他外部Jar包的情況下,在“project.properties”檔案裡,添加一行:proguard.config=proguard.cfg複製代碼 代碼即可,然後通過Android
Time of Update: 2018-12-05
< activity android:allowTaskReparenting=["true" | "false"]android:alwaysRetainTaskState=["true" | "false"]android:clearTaskOnLaunch=["true" | "false"]android:configChanges=["mcc", "mnc", "locale", "touchscreen", "keyboard", "keyboardHidden",