內容簡介
完整介紹各種Android開發所需要必備的能力,Kotlin、架構、非同步、儲存、連線、依賴注入、測試,一本書全部都給你!
本書改編自第11屆iT邦幫忙鐵人賽,Mobile Development組佳作同名系列文章——《Android十全大補》,完整收錄了Android App開發的各種領域之最佳實踐,包含架構、非同步、儲存、連線、依賴注入、測試等不同主題,除了介紹基本使用方法以外,也包含深入分析的部分,希望除了讓讀者知道如何使用外,也能更完整的理解Android App開發的方方面面。
精彩教學
你將學會Android官方推薦的開發架構
- MVP、MVVM分析比較
- 為何使用ViewModel
- LiveData深入探討
你將學會如何在Android使用依賴注入
- Dagger深入探討
- 為什麼有了Dagger還要學習Hilt
- 純Kotlin的解決方案 - Koin
你將學會多種不同領域的最佳實踐
- Retrofit
- Room、DataStore
- RxJava、Coroutine
- Espresso、Mockito、MockK
- DiffUtil、ListAdapter、SortedList
- ConcatAdapter
目錄
第00章 Kotlin
➔Variable
➔Function
➔Class
第01章 Architecture 架構篇
➔MVP
➔MVVM
ViewModel
➔SavedInstanceState vs ViewModel
➔ViewModelStore & ViewModelStoreOwner
➔ViewModelProviderFactory
➔ViewModelProvider
➔ViewModels
➔Lifecycle
LiveData
➔Lifecycle & LifecycleOwner
➔Observe
➔LiveData vs MutableLiveData
➔Transformations
➔Custom LiveData
第02章 Asynchronous 非同步篇
RxJava
➔Observable
➔Observer
➔Operator
➔Scheduler
➔Subject
Coroutine
➔Suspend
➔CoroutineScope
➔Cancel
➔CoroutineScope Builder
➔Dispatchers
➔Flow
第03章 Network 網路篇
Retrofit
➔Service Interface
➔Create Retrofit Instance
➔Execute & Enqueue
➔CallAdapter
➔Logging
➔Dynamic Proxy
➔How Retrofit works
第04章 Data Storage 資料存取篇
SharePreferences
➔AndroidX SharePreferences
➔KTX
➔PreferenceFragmentCompat
DataStore
➔Preference usage
➔Protocol buffer usage
Room
➔Entity
➔DAO
➔Database
➔Migration
➔Test
第05章 Dependency Injection 依賴注入篇
Dagger
➔Inject
➔Component
➔Module & Provide & Binds
➔Scope
➔Lazy & Provider
➔Qualifier & Named
➔Subcomponent
➔Dependencies
➔MultiBinding
Hilt
➔Scope & Component
➔InstallIn
➔Context
Koin
➔Module
➔StartKoin
➔Inject & Get
➔ViewModel
➔Named
➔KoinComponent
➔Test
➔Pros & Cons
第06章 View 視圖篇
➔Rendering
ViewBinding
RecyclerView
➔DiffUtil
➔ListAdapter
➔SortedList
➔Myers's Difference Algorithm
➔ConcatAdapter
第07章 Test 測試篇
➔TDD
Unit Test
➔Threading
Mockito
➔Mock
➔When
➔Verify
➔Annotation
MockK
➔Mockk
➔Every
➔Verify
➔Match
➔Coroutine
➔Static & Object
➔Spy
Espresso
➔ActivityScenarioRule
➔OnView
第08章 Annotation Processing 篇
➔Annotation
➔Annotation Processing
訂購/退換貨須知
購買須知:
使用金石堂電子書服務即為同意金石堂電子書服務條款。
電子書閱讀方式分為金石堂(線上閱讀)及Readmoo(兌換碼)兩種方式
- 您所購買的電子書,將儲存於會員中心→我的交易紀錄「我的e書櫃」,點選線上閱讀直接開啟閱讀。
- 最佳瀏覽載體: 建議使用Chrome、Microsoft Edge 有較佳的線上瀏覽效果, iOS 14.2 或以上版本,Android 6.0 以上版本,建議裝置有6GB以上的記憶體,至少有 30 MB以上的容量。
- 您所購買的電子書,請至會員中心→我的交易紀錄「我的e書櫃」領取複製『兌換碼』至電子書服務商Readmoo進行兌換。
退換貨須知:
- 因版權保護,您在金石堂所購買的電子書僅能以金石堂專屬的閱讀軟體開啟閱讀,無法以其他閱讀器或直接下載檔案。
- 依據「消費者保護法」第19條及行政院消費者保護處公告之「通訊交易解除權合理例外情事適用準則」,非以有形媒介提供之數位內容或一經提供即為完成之線上服務,經消費者事先同意始提供。(如:電子書、電子雜誌、下載版軟體、虛擬商品…等),不受「網購服務需提供七日鑑賞期」的限制。為維護您的權益,建議您先使用「試閱」功能後再付款購買。
商品評價