bazelbuild / bazelbuild/rules_android

Android ViewBinding support

Open
#309 7 comments 0 reactions 0 assignees View on GitHub
P2
Dominant language
Java
Stars
203
Forks
95
PR merge metrics
No merged PRs in 30d

Description

### Description of the problem / feature request:

Support [Android ViewBinding](https://developer.android.com/topic/libraries/view-binding) for Android apps.

### Feature requests: what underlying problem are you trying to solve with this feature?

ViewBinding allows generating at build-time a Java class with accessors for different views in a layout, without having to rely on `findViewById` etc. It's similar to the DataBinding talked about in bazelbuild/bazel#2694, but more recent, simple and less feature-heavy (it's only giving bindings to the view, no data updates or anything).

### Have you found anything relevant by searching the web?

bazelbuild/bazel#2694, which is about a similar Jetpack feature, but not the same, and https://github.com/bazelbuild/rules_kotlin/issues/401, which is asking about ViewBinding support in Bazel (arguably in the wrong repo though).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.