The demo Android app resembles YouTube Shorts and TikTok. 仿造 YouTube Shorts and TikTok 的範例程式
- TS-1: 建立 APP 的基礎架構
- TS-2: 以傳統 XML 實作滑動影音播放的功能
- TS-3: 修正 Compose-navigation 在 navigation 時會重複呼叫,導致畫面重複前往的問題 (Reference)
- TS-4: 以 Compose 實作滑動影音播放的功能
- TS-5: 改善 PlayerManger 搭配 Compose 的效能問題
AndroidStudio = Android Studio Giraffe | 2022.3.1 Patch 2
kotlin = 1.8.10
compileSdk = 34
minSdk = 29
targetSdk = 34
jvmTarget = 17
- Kotlin
- Coroutines
- Flow
- Kotlin DSL in build.gradle.kts
- Coroutines
- Single Activity Architecture
- Dark theme support
- Compose and XML View
- Dark theme is recommended
- XML
- Fragment
- View binding
- ViewPager2
- Jetpack Compose
- Compose navigation
- Can navigate to Compose or XML View
- Pager
- Compose navigation
- MVVM architecture
- ViewModel
- Dependency Injection
- Hilt
- Assisted injection in ViewModel
- Hilt
- Android.media3
- ExoPlayer
- Implement with lifecycle-aware components
- ExoPlayer