ViewBinding vs Kotlin Android Extensions with synthetic views

問題:

How does the new ViewBinding compare with the Kotlin Android Extensions with synthetic views bindings?新的ViewBinding與具有合成視圖綁定的Kotlin Android 擴展相比如何?

Apart from the NullSafety and TypeSafety provided by new ViewBindings, why should we consider ditching the Kotlin way of using synthetic bindings on Views?除了新的 ViewBindings 提供的 NullSafety 和 TypeSafety 之外,我們爲什麼要考慮放棄 Kotlin 在 Views 上使用合成綁定的方式?

Is the new ViewBinding more performant since it generates the Binding class beforehand?由於新的 ViewBinding 預先生成了 Binding 類,因此它的性能是否更高?


解決方案:

參考: https://stackoom.com/en/question/3wpp1
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章