編輯:關於 Android 開發
Android 提供了豐富的內置控件,其中有一些並不常被提及,但在特定場景下能省下不少功夫。下面盤點幾個:
AutoCompleteTextView:與 EditText 類似(實際是它的子類),在用戶輸入時會自動彈出補全建議列表。

<AutoCompleteTextView
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
TimePicker:可按 24 小時或 AM/PM 模式選擇時間。

<TimePicker
android:id="@+id/timePicker"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
DatePicker:用於選擇指定日期。

<DatePicker
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
DigitalClock:以數字方式顯示時鐘。

<DigitalClock
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
AnalogClock:顯示帶時針與分針的模擬時鐘。

<AnalogClock
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
ImageSwitcher:圖片選擇器,可實現圖片切換動畫。

基本使用見:https://www.cnblogs.com/zzw1994/p/5082870.html
GridView:在二維滾動網格中顯示項,例如九宮格展示。

基本使用見:https://www.cnblogs.com/zzw1994/p/5082591.html
原生 App、移動 Web App 與混合 App 的區別解讀
原生 App、移動 Web App 與混合 App 的區別解讀 很多人常聽到「原生開發」「混合式開發」,卻不太清楚它們的具體含義。本文將為大家釐清這幾類應用的概念與特點。
《第一行代碼》學習筆記(一):Android 四層系統架構全解析
從一段收購史說起 2013 年 10 月,Andy Rubin 創辦了 Android 公司;2005 年 8 月 Google 將其收購,並在 2008 年推出 And
Notification 寬視圖實作:用 InboxStyle 一次列出多行訊息
Notification 的定位 Notification 是用來在 App 常規介面之外展示訊息的機制。當 App 請系統發送通知時,訊息會先以圖示形式出現在通知欄;要
重新思考 Android Activity 設計:從常見抱怨到優化方向
Activity 設計帶來的開發痛點 Android 的 Activity 設計強調執行期獨立性。每個 Activity 都必須在 AndroidManifest.xml