r/android_devs • • Nov 26 '20

Coding Plant Shop Android Studio UI 2020

https://youtu.be/Ex7BMfZTeEs
12 Upvotes

18 comments sorted by

2

u/[deleted] Nov 26 '20

[removed] — view removed comment

1

u/droid_ui Nov 26 '20

Sure subsequent UI will handle view-binding easy as possible

1

u/[deleted] Nov 26 '20

[removed] — view removed comment

0

u/droid_ui Nov 26 '20

My next video will use data binding

1

u/sc00ty Nov 26 '20

view binding or data binding?

1

u/[deleted] Nov 26 '20

[removed] — view removed comment

1

u/yaaaaayPancakes Nov 30 '20

ViewBinding is the future, Databinding is just dragons ahead.

1

u/[deleted] Nov 30 '20

[removed] — view removed comment

1

u/yaaaaayPancakes Nov 30 '20

Yes. In all my years of android dev I've never used it till my current job (where the boss liked it and used it extensively).

I'm of the opinion that code should stay in java/kotlin, and layout should remain in xml. Databinding mixes code between java/kotlin and xml. Viewbinding does not.

Before Viewbinding existed, I used butterknife to achieve the same thing that Viewbinding provides.

With Databinding, you will constantly have to check if changes are happening due to code in xml, or code in your fragment/activity. And when errors occur in code in xml, the error messages are obtuse.

I hate having to deal with Databinding and look forward to never dealing with it again (new code uses Viewbinding).