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
一、設定部分字型的顏色通過SpannableStringBuilder style = new SpannableStringBuilder(CharSequence cs);style.setSpan(new ForegroundColorSpan(color), begin, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);tv.setText(style);設定,由於此種方法比較複雜,我實現了一個輔助類,能夠快速實現部分字型的顏色;final class
Time of Update: 2018-12-05
文章目錄 1. android:focusable2.android:maxLength3.android:singleLine4.android:inputType5.android:hint6.android:drawableLeft/android:drawableRight
Time of Update: 2018-12-05
一、進入DDMS perspective進入DDMS視圖後,出現如所示:1.Devices:顯示現在能夠使用的裝置,比如虛擬機器或真機 ; 以及每個裝置存在的程式;2.Emulator Control:能夠給裝置打電話,發簡訊;3.Logcat:類似於Java程式的Console,報錯、顯示資訊都在此處顯示;4.File
Time of Update: 2018-12-05
文章目錄 1.監聽器 一、Button的繼承結構java.lang.Object|-android.view.View|-android.widget.TextView|-android:widget.Button二、Button使用1.監聽器android.view.View.OnClickListener btn.setOnClickListener(new
Time of Update: 2018-12-05
第一種:使用KSOAP2庫原帖例子來自 http://www.cnblogs.com/ghj1976/archive/2011/04/26/2028904.html這東西看起來好是好,可我最終還是以失敗告終。第一次崩潰是因為版本問題,首頁上下載的最新2.5.7不知怎麼搞的,編譯沒問題,一運行就程式崩潰。後來換成2.4的總算成功了。第二次也不知道什麼原因。例子能跑通,我自己的程式卻死活不行,再次崩潰。 原帖分析的不錯,copy一下。1、指定 WebService 的命名空間和調用方法import
Time of Update: 2018-12-05
sencha如果不做設定,是一個framework頁面,當點擊瀏覽器返回或者Android的返回鍵的時候會跳出頁面或整個程式所以需要實現route路徑網上麼有特別詳細的說明,研究了很久分享一個首先,需要在main的地方開始就加入曆史路徑。在app.jslaunch: function() {//增加曆史路徑,設定main為homethis.getApplication().getHistory().add(Ext.create('Ext.app.Action', {
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
1. 對於Jeallybean 4.2.2 來說, 許可權列表的位置 ./frameworks/base/core/res/AndroidManifest.xml 編譯apk時,./out目錄下, 有的會根據apk的AndroidManifest.xml裁剪上述xml產生Manifest.java檔案。目前正跟蹤./build中與Manifest.java相關的規則, 很有趣。 2. 加入以下許可權, Eclipse打包會產生問題,
Time of Update: 2018-12-05
使用arm-eabi-addr2line工具跟蹤Android呼叫堆疊作者:liangshengyang轉自:http://www.linuxidc.com/Linux/2011-01/31803.htm在通常的C/C++代碼中,可以通過響應對記憶體操作不當引起的Segmentation
Time of Update: 2018-12-05
在android系統中,內建的只有三種字型---"sans","serif"和"monospace",你只要在xml檔案中的android:typeface android:typeface屬性使用它們:<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="