Android ApiDemos示例解析(16) App->Activity->Translucent
Activity分類示例的最後幾個例子是來顯示半透明Activity。例子大同小異。實現Activity的半透明效果主要是通過Style和 Theme來實現的。看看Tra
Android ApiDemos示例解析(17) App->Activity->Translucent Blur
這個例子和Translucent不同的一點是Blur,也就是顯示在當前Activit背後的其它Activity以模糊方式顯示。這是通 過window對象Flag來設置的。
Android ApiDemos示例解析(20) App->Alarm->Alarm Service
Alarm Service和Alarm Controller 例子非常類似,只是Alarm Service是用來Schedule一個Service,而前面的例子是來 Sc
Android ApiDemos示例解析(24) App->Launcher Shortcuts
Android 操作系統對於<intent-filter>含有下列屬性的Activity會在應用程序管理器(Launcher)顯示一項,一般這 個Activi
Android ApiDemos示例解析(29):App->Notification->Status Bar
這個例子的Icons Only 和 Icons and marquee 沒有什麼特別好說明的。而Use Remote views in balloon 介紹了可 以自定
Android ApiDemos示例解析(31):App->Preferences->Launching preferences
前給例子介紹了如何使用PreferenceActivity 來顯示修改應用偏好,用戶對Preferences的修改自動存儲在應用對應的 Shared Preferenc
Android ApiDemos示例解析(32):App->Preferences->Preference dependencies
Preferences之間可以定義依賴關系,在第一個例子中已有說明。對應定義了依賴關系的Preferences,依賴指向的 Preference可以稱為Parent p
Android ApiDemos示例解析(35):App->Preferences->Advanced preferences
前篇文章Android ApiDemo示例解析(31):App->Preferences->Launching preferences 中用到了Advance
Android ApiDemos示例解析(39):App->Service->Local Service Binding
本例和下列Local Service Controller 的Activity代碼都定義在LocalServiceActivities.Java 中,作為 LocalS
Android ApiDemos示例解析(41):App->Service->Messenger Service
前面LocalService 主要是提供同一Application中組件來使用,如果希望支持不同應用或進程使用Service。可以通過 Messenger。使用Mess
Android ApiDemos示例解析(42):App->Service->Remote Service Binding
本例和下個例子Remote Service Controller 涉及到的文件有RemoteService.java ,IRemoteService.aidl, IR
Android ApiDemos示例解析(45):App->Text-To-Speech
從Android1.6(API Level 4)開始,Android平台開始支持文字到語音(TTS)功能,也就是“合成語音”,支持以聲音方式讀
Android ApiDemos示例解析(46):App->Voice Recognition
這個例子需要Android系統中安裝了支持RecognizerIntent.ACTION_RECOGNIZE_SPEECH的應用,比如Google的 Voice Sear
Android ApiDemos示例解析(47):Content->Assets->Read Asset
android.Content包定義了一些類,這些類主要用於在設備上訪問或是發布數據,主要有三個包構成。Content 共享 (android.content) 主要用於
Android滑動效果入門篇(二) Gallery
Gallery 是Android官方提供的一個View容器類,繼承於AbsSpinner類,用於實現頁面滑動效果。從上面的繼承關系可 以看出,AbsSpinner類繼承自
Android滑動效果進階篇(六) 倒影效果
上篇介紹了使用Animation實現3D動畫旋轉翻頁效果,現在介紹圖片倒影實現,先看效果圖本示例主要通過自定義Gallery和ImageAdapter(繼承自BaseAd
Android滑動效果高級篇(八) 自定義控件
自定義控件,較常用View、ViewGroup、Scroller三個類,其繼承關系如下:本示例自定義控件,實現一個Gallery效果,並添加了一個顯示View個數和位置的
Android AsyncTask異步處理
在開發Android應用時必須遵守單線程模型的原則: Android UI操作並不是線程安全的並且這些操作必須在UI線程中執行。 在單線程模型中始終要記住兩條法則:1.
Android Context詳解
Android中context可以作很多操作,但是最主要的功能是加載和訪問資源。在android中有兩種context,一種是application context,一種
Android VideoView播放視頻
Android 利用自帶VideoView控件播放視頻Activitypublic class Activity01 extends Activity {