{"id":16648530,"url":"https://github.com/w2sv/viewboundcontroller","last_synced_at":"2026-04-29T12:37:02.416Z","repository":{"id":63663689,"uuid":"551400548","full_name":"w2sv/ViewboundController","owner":"w2sv","description":"Small Android library for the usage of ViewBindings in your Activities and Fragments without the usual boilerplate code","archived":false,"fork":false,"pushed_at":"2023-04-07T17:20:31.000Z","size":103,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T02:53:24.930Z","etag":null,"topics":["android","android-library","kotlin","viewbinding","viewbinding-android"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/w2sv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-14T10:28:22.000Z","updated_at":"2024-04-23T07:43:28.000Z","dependencies_parsed_at":"2023-01-22T12:15:34.879Z","dependency_job_id":null,"html_url":"https://github.com/w2sv/ViewboundController","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w2sv%2FViewboundController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w2sv%2FViewboundController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w2sv%2FViewboundController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w2sv%2FViewboundController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/w2sv","download_url":"https://codeload.github.com/w2sv/ViewboundController/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243204912,"owners_count":20253416,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-library","kotlin","viewbinding","viewbinding-android"],"created_at":"2024-10-12T09:04:39.257Z","updated_at":"2025-12-24T13:02:10.716Z","avatar_url":"https://github.com/w2sv.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ViewboundController\n\n![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/w2sv/ViewboundController?include_prereleases)\n[![](https://jitpack.io/v/w2sv/ViewboundController.svg)](https://jitpack.io/#w2sv/ViewboundController)\n[![Build](https://github.com/w2sv/Viewboundcontroller/actions/workflows/workflow.yaml/badge.svg)](https://github.com/w2sv/ViewboundController/actions/workflows/workflow.yaml)\n![GitHub](https://img.shields.io/github/license/w2sv/ViewboundController)\n\nSmall Android library for the usage of ViewBindings in your Activities and Fragments without the usual boilerplate code\n\n## Usage\n\nSimply pass the respective `ViewBinding` subclass both as type and constructor argument during the initialization of your UI controller class. The boilerplaty stuff will subsequently be taken care of and you can just use the binding in your code.\n\nThe retrieval of the respectively required `inflate` method is carried out by means of reflection. \n\n- Activity\n  ```kotlin\n  class YourActivity: ViewBoundActivity\u003cYourActivityBinding\u003e(YourActivityBinding::class.java)\n  ```\n  `YourActivityBinding` will be inflated in the `onCreate` lifecycle method and is thereupon accessible via the `binding` property\n\n- Fragment\n\n  ```kotlin\n  class YourFragment: ViewBoundFragment\u003cYourFragmentBinding\u003e(YourFragmentBinding::class.java)\n  ```\n  Same goes for Fragments, only that here the binding inflation happens in `onCreateView`. Also, the binding will be nulled in `onDestroyedView` to prevent memory leaks.\n\n## Installation with gradle \u0026 jitpack\n\n```gradle\nimplementation 'com.github.w2sv:viewboundcontroller:x.y.z'\n```\n\nor get the latest snapshot from a certain branch:\n\n```gradle\nimplementation 'com.github.w2sv:viewboundcontroller:\u003cBRANCH-NAME\u003e-SNAPSHOT'\n```\n\n## License\n\n[GPL-3.0](https://github.com/w2sv/ViewboundController/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fw2sv%2Fviewboundcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fw2sv%2Fviewboundcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fw2sv%2Fviewboundcontroller/lists"}