Time of Update: 2013-12-11
LisView列表視圖是Android開發中非常常用的一種視圖組件,它是以垂直列表的方式列出需要顯示的清單項目。
Time of Update: 2013-12-11
看到網上流行的一種使用方法是 Java代碼 public class Utility { public static void setListViewHeightBasedOnChildren(ListView listView) {
Time of Update: 2013-12-11
使用過 SQLite 資料庫的童鞋對 Cursor 應該不陌生,如果你是搞.net 開發你大可以把Cursor理解成 Ado.net 中的資料集合相當於dataReader。今天特地將它單獨拿出來談,加深自己和大家對Android 中使用 Cursor 的理解。關於 Cursor在你理解和使用 Android Cursor 的時候你必須Crowdsourced Security Testing道關於 Cursor 的幾件事情:Cursor 是每行的集合。使用 moveToFirst()
Time of Update: 2013-12-11
HTTP 協議可能是現在 Internet 上使用得最多、最重要的協議了,越來越多的 Java 應用程式需要直接通過 HTTP 協議來訪問網路資源。http的主要功能包括:1. 實現了所有 HTTP 的方法(GET,POST,PUT,HEAD 等)2. 支援自動轉向3. 支援 HTTPS 協議4. 支援Proxy 伺服器等使用 HttpClient 需要以下 6 個步驟:1. 建立 HttpClient 的執行個體2. 建立某種串連方法的執行個體,在這裡是 GetMethod。在
Time of Update: 2013-12-11
I use the MediaStore.ACTION_VIDEO_CAPTURE intent class to capture the video, the video stored in default location(gallery),i want to store the video in specific location with specific name.I use MediaStore.EXTRA_MEDIA_TITLE and
Time of Update: 2013-12-11
還是接上一篇,這次妖精們說了,不要用RadioButton控制項了,不好看,還佔地方,抓一個人,要佔四個地方,那我抓一個人只要佔一個地方就行了,於是用了Spinner控制項,還是一次抓一個main.xml如下view plain</pre><pre class="html" name="code"><?xml version="1.0"
Time of Update: 2013-12-11
今天來看看AudioEffect中enable相關的介面。 *****************************************源碼************************************************* //Test case 1.3: test getEnabled() failure when called on released effect
Time of Update: 2013-12-11
Ioc配置依賴:@InjectView (R.id.hello) TextView helloLabel;@InjectResource(R.drawable.icon) Drawable
Time of Update: 2013-12-11
雖然自己還在初級的學習中,但是還是冒昧在知乎上發表了點學習推薦。-----------------------拷貝到此----------------------------------------------------------------我推薦(先聲明我是學習中的新手,我的意見供大家批評,誤導莫怪):1、隨便找本書,看個大概,或者mars的視頻,或傳智播客的視頻,也是看一個大概;2、瀏覽http://developer.android.com,裡面有個trainning,還有demo,簡
Time of Update: 2013-12-11
本例介紹了WebView的最簡單的用法,顯示HTML 連結, 其實WebView的功能遠不止如此,你基本上可以使用WebView實現你自己的瀏覽器。WebView內部使用了WebKit 實現網頁的前翻和後退,放大,縮小,網頁搜尋等,如果要開啟內建的縮放控制,可以調用WebSettings.setBuiltInZoomControls(boolean)。此外,如果WebView需要訪問Internet,需要在 AndroidManifest.xml 中添加INTERNET
Time of Update: 2013-12-11
Android中的TextView,本身就支援部分的Html格式標籤。這其中包括常用的字型大小顏色設定,文本連結等。使用起來也比較方便,只需要使用Html類轉換一下即可。比如:textView.setText(Html.fromHtml(str));一、實現TextView裡的文字有不同顏色[plain] import android.text.Html; TextView t3
Time of Update: 2013-12-11
Android 程式調試工具 Google為我們提供的代碼調試工具的亮點:traceview和 dmtracedump 。有了這兩個工具,我們偵錯工具分析bug就非常得心應手了。traceview協助我們剖析器效能,dmtracedump產生函數調用圖。遺憾的是,google提供的dmtracedump是個失敗的工具,並不能繪圖,本文會詳細介紹解決方案,實現繪圖。 產生.trace檔案
Time of Update: 2013-12-11
開發環境: windows 2008 R2 x64, JDK 7u10, ADT v21.0.1-543035一.啟動 Nexus 7 模擬器失敗模擬器啟動出現如下錯誤:Starting emulator for AVD 'nexus7'Failed to allocate memory: 8This application has requested the Runtime to terminate it in an unusual way.Please contact
Time of Update: 2013-12-11
關鍵詞:android 4.0預設語言藍芽名稱 MTP名稱預設時區關於平板電腦 核心版本號碼平台資訊:核心:linux2.6/linux3.0系統:android/android4.0 平台:S5PV310(samsungexynos4210) 1、開關機logo; 2、使用者模式、工程模式; 3、更改預設語言; 5、更改藍芽名稱; 6、更MTP名稱; 7、更改“關於平板電腦”中的資訊; 8、
Time of Update: 2013-12-11
利用下面這個Utility 類的靜態方法setListViewHeightBasedOnChildren()即可實現: 在listview.setAdapter()之後調用Utility.setListViewHeightBasedOnChilren(listview)就Okay 了。public class Utility {public static void setListViewHeightBasedOnChildren(ListView
Time of Update: 2013-12-11
Time of Update: 2013-12-11
[java] <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"
Time of Update: 2013-12-11
系統內建的SeekBar組件的樣式較為老土,已經不能滿足廣大開發人員的需求了,這裡給大家介紹一個簡單快捷的定製自己的SeekBar樣式的方法,不必重寫哦! 1.準備幾張個人化的圖片,一張是拖動條背景圖,一張是進度條圖,一張是拖動條圖。 這裡給幾張示範圖: :拖動條背景圖 :進度條圖 :拖動條圖 2.在res/drawable
Time of Update: 2013-12-11
OpenGL ES軟體層次棧,本章介紹了Android系統中OpenGL ES的調用層次棧,詳細分析了庫之間如何通過鉤子(hook)實現API調用關聯,讓我們明白各個庫之間的依賴關係。本節為Android中的OpenGL ES簡介。 Android中的OpenGL ES簡介 Android支援使用OpenGL(Open Graphics Library)API進行2D和3D圖形的繪製 ,尤其使用OpenGL ES(Embedded System)
Time of Update: 2013-12-11
使用XML來定義Tween Animation 動畫的XML檔案在工程中res/anim目錄,這個檔案必須包含一個根項目,可以使<alpha><scale> <translate>