Skip to content

kauramanp/SimpleViewBinding

Repository files navigation

Simple View Binding

📱 Android ViewBinding

This project demonstrates how to use ViewBinding in an Android Activity while handling coroutines safely within the activity lifecycle.

🚀 Features

✅ Implements ViewBinding to avoid findViewById()
✅ Uses lifecycleScope.launch to update UI after a delay
✅ Properly handles ViewBinding cleanup to prevent memory leaks

🛠️ Tech Stack

Kotlin
ViewBinding
Jetpack Components

📌 Key Points

ViewBinding eliminates findViewById() calls.
Edge-to-Edge Support ensures a full-screen experience.
Memory Management: _binding = null in onDestroy() prevents leaks.

🚀 A simple yet effective implementation of ViewBinding in Android!

About

This repository showcases a basic implementation of ViewBinding in an Android app. It demonstrates how to safely interact with UI components, manage memory efficiently, and implement edge-to-edge UI support.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages