Part 5. 要來介紹呈現電影列表的套件 Epoxy,主要是用這個套件來呈現比較複雜的列表,像是我們的首頁,穿插夾雜了橫滑和直滑的列表,用嵌套的 RecyclerView 來實作技術上來說一定做得到,只是你要多花時間和心力,而 Epoxy 套件提供一個更容易的實作方式,讓我們來看 Epoxy 如何簡化我們的列表實作。
Continue reading “Android App 開發實戰系列 Part 5. Epoxy on RecyclerView”Android App 開發實戰系列 Part 4. ViewModel + View
Part 4. 我們要來講解 ViewModel + View,同時會講解 MVVM 的大原則和核心概念。
Continue reading “Android App 開發實戰系列 Part 4. ViewModel + View”Android App 開發實戰系列 Part 3. Paging + Repository
Part 2. 我們講解資料來源和 API,而 Part3. 則是要開始講解 Model 層,裡面會提到如何實作資料提供者 Repository、如何宣告 Model 以及介紹 Paging 基本原理和導入使用。
Continue reading “Android App 開發實戰系列 Part 3. Paging + Repository”Android App 開發實戰系列 Part 2. 資料來源 API
Part1. 我們從專案的起源、需求、設計和架構以及套件講起,Part2. 我們就開始來實作,首先先從「資料來源 API」開始講解和實作。
Continue reading “Android App 開發實戰系列 Part 2. 資料來源 API”Android App 開發實戰系列 Part 1. 概述
這「Android App 開發實戰系列」一系列的文章,我們將會實作一個完整的電影 App – MovieHunt(且開源和大家一同切磋學習),這專案使用 The Movie Database API 當作資料來源,講解裡面使用到的技術、套件。
Continue reading “Android App 開發實戰系列 Part 1. 概述”Gradle Kotlin DSL
在 Gradle 5.0 之後就可以開始支援在 *.gradle 檔案裡面使用 Kotlin DSL,這篇文章將會講解如何把 Android 專案的 Gradle build script 轉換為使用 Kotlin DSL,讓你可以直接無痛使用 Kotlin 撰寫 *.gradle,而捨棄(超難用)的 Groovy 語法。
Continue reading “Gradle Kotlin DSL”實作 Android 客製化相簿選擇器
最近專案上要做一個 App 內部使用的媒體選擇器,要可以列出手機目前的照片或影片,也要可以列出手機的相簿,使用者選擇相簿後,列表顯示該相簿的媒體。
Continue reading “實作 Android 客製化相簿選擇器”整合 Android Paging Library: Part 2
繼 上一篇 Part 1 講解 Paging 單純使用 Remote 當作資料來源後,我們這篇要來講解另一種常見的資料架構:Remote + Local,我們會先從 Remote 拉資料到 Local 端,然後 App 統一使用 Local 當作資料來源,讓我們來看看是如何實作這樣的資料架構。
Continue reading “整合 Android Paging Library: Part 2”整合 Android Paging Library: Part 1
今天我們來介紹如何使用 Paging Library,以及看這個套件是如何幫助我們更快地開發列表顯示的需求。
Continue reading “整合 Android Paging Library: Part 1”使用 Android 資料庫: Room
我們今天來介紹如何導入使用 Android 的資料庫 Room,Android Jetpack 套件元件之一,如何融入 MVVM 架構,並且善用一些特性減少開發上的困難。
Continue reading “使用 Android 資料庫: Room”Background tasks on Android: Using WorkManager
WorkManager is for deferrable background task that needs a guaranteed execution, let’s get started an example to explan how to use it
Continue reading “Background tasks on Android: Using WorkManager”Android Studio productivity tips: Part1
As a developer, the better you understand your tools, the more productive you get.
In the series, I’m going to cover some essential and helpful tips and tricks based on our daily usage scenarios, to help you to get the most out of Android Studio.
Make an Android custom view and publish it. (Part 2)
In this part, I will demostrate how to publish the custom view so that other developers can use it by just simply adding dependency like this:
Continue reading “Make an Android custom view and publish it. (Part 2)”Make an Android custom view and publish it. (Part 1)
Today I’m going to introduce several fundamental concepts of Android custom view. I will create an Android custom view to implement circular SeekBar
like the mockup below, make it as a widget library, open source at Github, and publish it to JCenter so that other developers can download and use it.