DEV Community

Cover image for AndroidBites | Deepest Dive into View-Binding
Chetan garg
Chetan garg

Posted on

1 1

AndroidBites | Deepest Dive into View-Binding

carbon (6) (1).png

I'm pretty late to the party but here is my blog on view-binding,
It's pretty much more in-depth than others you would find in the community.

Glossary

  • Is data binding not working in all the modules? Why your fields are not getting generated?
  • How to view the source code of your generated binding classes?
  • Generated classes are Kotlin or Java? and why?
  • Do View-binding views are never null?
  • How to access included views? and tags?
  • How to bind Activities, Fragments, Adapters, and CustomViews?
  • When to use bind and Inflate?
  • Controlling ViewBinding Generation?
  • Reducing boilerplate code with Delegates and Base-Class for ViewBinding in Activity and Fragments?
  • Common mistakes and Anti-patterns in ViewBinding?

Hope to see you on the other side...

👉 AndroidBites | View-Binding

Until next time. Happy Hacking! 👩‍💻

Stalk Me đź‘€ :

LinkedIn | Medium | Twitter | StackOverflow | CodeWars | WorkX | Github | Instagram | Youtube

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️