InDcard Tech Blogby黃德銘·Jul 13, 2023Dcard Android FragmentResult 架構介紹 (2) — 使用 Kotlin Class Delegation 自動產生 FragmentTag 並註冊 Callback上一篇介紹了我們如何使用 Kotlin Property Delegation 減少許多重複的 code 並讓取得 callback 簡化許多,最後也提出 3 個可以優化的方向,這次就要介紹我們如何利用 Kotlin Class Delegation 來達成這個目標。A response icon1A response icon1
InDcard Tech Blogby黃德銘·May 30, 2023Dcard Android FragmentResult 架構介紹 (1) — 使用 Kotlin Property Delegation 讓 DialogFragment 取得 CallbackConfiguration change 對於 Android Developer 來說一直是個重要的議題,手機畫面旋轉、後來推出的 Dark Mode 以及在 Android 13 推出個別應用程式語言偏好,這些變動都增加 configuration change…
Morris Kushwaha·Aug 22, 20194 Ways of Communicating between Fragment in AndroidThere are several ways of communicating between Fragment and Activity in Android. But I would like to explain a popular one.