MB_Coder Newsletter

Share this post

How easy is it to Integrate Jetpack Compose into an app which uses View binding?

martinbaraya.substack.com

How easy is it to Integrate Jetpack Compose into an app which uses View binding?

Jetpack Compose VS View binding

Martin Baraya
Feb 2, 2022
Share this post

How easy is it to Integrate Jetpack Compose into an app which uses View binding?

martinbaraya.substack.com

You couldn't use View binding with Jetpack Compose like on Jetpack Compose UI

  • If you wanted to use View binding with Jetpack Compose, such as on the Jetpack Compose UI, you couldn't because View binding is designed to eliminate the need for that findViewById type call, which Compose really doesn't have.

Use the two side by side

  • If you wanted to use the two side by side and sort of migrate slowly over to Compose while some of your UI is still using XML layouts and View binding, then that all works fine, And that incremental migration path is extremely important.

Share this post

How easy is it to Integrate Jetpack Compose into an app which uses View binding?

martinbaraya.substack.com
Comments
TopNew

No posts

Ready for more?

© 2023 Martin Baraya
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing