viewbinding-patterns

Installation
SKILL.md

ViewBinding Patterns in Java

Instructions

ViewBinding replaces findViewById with a generated, null-safe, type-safe binding class per layout. findViewById is legacy and should only remain in code explicitly marked for deletion.

1. Enable ViewBinding

In app/build.gradle:

android {
    buildFeatures {
        viewBinding true
    }
}

For a file named fragment_article_list.xml, Android Studio generates FragmentArticleListBinding in your module's package.

Installs
1
GitHub Stars
1
First Seen
Jul 10, 2026
viewbinding-patterns — almasumdev/awesome-java-android-agent-skills