Skip to content

Architecture Review: ViewBindings#44

Closed
david-allison wants to merge 96 commits intomainfrom
view-binding-2
Closed

Architecture Review: ViewBindings#44
david-allison wants to merge 96 commits intomainfrom
view-binding-2

Conversation

@david-allison
Copy link
Copy Markdown
Owner

This exists so maintainers can see the type of changes I'm performing for ViewBinding and set patterns before I split them out into reviewable chunks. This should not be merged

@david-allison david-allison force-pushed the view-binding-2 branch 3 times, most recently from 45b872e to 61078f3 Compare September 12, 2025 03:08
@david-allison
Copy link
Copy Markdown
Owner Author

The following is causing Deck name gravity issues in the DeckPicker:

chore: convert DeckAdapter.ViewHolder to ViewBinding - 9b9ce78

handled as ViewBindings in parent class

Issue 11116
@david-allison
Copy link
Copy Markdown
Owner Author

setViewBinding is currently needed in NavigationDrawerActivity, and it felt sensible to have a 'standard' pattern for all activities

We only override setContentView(R.layout), and it feels like the point of ViewBindings is to move away from R.layout references where possible

@lukstbit
Copy link
Copy Markdown

I understand, I saw the method and how it was used and went to the commit to comment on it without scrolling a bit below to see the actual usage:)

it feels like the point of ViewBindings is to move away from R.layout references where possible

I don't see any issues with that, the only reason I would use view binding is for the null safety.

@lukstbit
Copy link
Copy Markdown

Another lib example, not maintained but maybe it could be useful.

@david-allison
Copy link
Copy Markdown
Owner Author

Zhuinden is still active

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants