---
title: "Discussion on \"Using viewBinding in Android\" | Hashnode"
description: "Discussion on \"Using viewBinding in Android\". In the app/build.gradle. Add this line inside the android{} block.\nandroid {\n    buildFeatures {\n        viewBinding true \n    }\n//other lines\n}\n\nclass MyActivity: AppcompactActivity(){\n    //This is a new thing. I want to know about it. \n}"
url: "https://hashnode.com/posts/using-viewbinding-in-android/6616cd1e3928370e1ae439b9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using viewBinding in Android](https://codekotlin.com/using-viewbinding-in-android?utm_source=hashnode&utm_medium=feed)

In the app/build.gradle. Add this line inside the android{} block. android { buildFeatures { viewBinding true } //other lines } class MyActivity: AppcompactActivity(){ //This is a new thing. I want to know about it. }

Apr 10, 2024 · 1 min read · codekotlin.com  
Read the article

## Written by

[codekotlin](https://hashnode.com/@codekotlin)

@codekotlin

  
[View profile](https://hashnode.com/@codekotlin)

Android Knowledge

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
