Skip to main content
  • About me
  • Some Thing
  • 首頁

Archive for 7 月 2025

  • fun GameScreen(gameViewModel: GameViewModel = GameViewModel()) 這樣寫有啥問題?

    2025-07-14

    直接 new GameViewModel() Kotlin class GameViewModel : ViewModel() { var score by mutableStateOf(0) ini…

    read more
  • inline, noinline, crossinline:存在即合理

    老樣子,存在必合理,有這樣的 Keyword ,那肯定是前人有過不去的坎,所以才設計出這個要想一想的概念 問題:優雅的 Lambda,不堪重負的 GC Kotlin 的高階函數與 Lambda 是偉大…

    read more
  • 麻煩 ViewModelProvider.Factory 你了,因為系統不讓我直接 new 一個 ViewModel

    這個規範是為了解決 Android 元件生命週期不一致所帶來的大問題。 ## 生活比喻:政府管理的保管箱 開發者 Activity/Fragment (UI 控制器):是您的「錢包」。您隨身帶著它,但…

    read more
  • id(“org.kotlin.xxxx”) version “2.1.0” apply false 這不要你還特地寫上去啊?.

    好的,我們直接來看一個實際的 Android 專案,看看 apply false 在真實世界中是如何運作的。 假設我們的專案 MyPlayerApp 是一個音樂播放器,它有三個模組: app: 主應用…

    read more
« Previous
1 2
  • analyze
  • android
  • Camera
  • dagger
  • debug
  • Facebook
  • FMRadio
  • Funny Vote
  • greendao
  • ios
  • java
  • kotlin
  • lib
  • MVP
  • overlay
  • plug
  • react native
  • retrofit2
  • SLAM
  • software
  • 整理
  • 書本
  • 未分類
  • 爛裝置也想跑AI
  • 老文
  • 2025 年 7 月
  • 2025 年 6 月
  • 2025 年 5 月
  • 2025 年 4 月
  • 2025 年 3 月
  • 2025 年 2 月
  • 2025 年 1 月
  • 2024 年 4 月
  • 2022 年 3 月
  • 2021 年 9 月
  • 2021 年 5 月
  • 2017 年 4 月
  • 2017 年 2 月
  • 2016 年 12 月
  • 2016 年 11 月
  • 2016 年 10 月
  • 2016 年 9 月
  • 2016 年 8 月
  • 2016 年 7 月
  • 2016 年 6 月
  • 2016 年 4 月
  • 2016 年 3 月
  • 2016 年 2 月
  • 2016 年 1 月
  • 2015 年 11 月
  • 2015 年 10 月
  • 2015 年 9 月
  • 2015 年 8 月
  • 2015 年 7 月
  • 2015 年 6 月
  • 2015 年 5 月
  • 2015 年 3 月
  • 2015 年 2 月
  • Thread 和 Coroutine 的理解
  • Difference between constructors and init in kotlin
  • Jetpack Compose: 何時該用 derivedStateOf?
  • Modifier 效能 Draw 啥比較好:drawBehind , drawWithContent
  • kotlin init 前初始化屬性會發生啥事
Select a menu in the customizer
Blog Layouts WordPress Theme created by Rico