{"id":15633889,"url":"https://github.com/winseyli/architecturecomponentsexamples","last_synced_at":"2026-04-30T10:39:37.140Z","repository":{"id":123751409,"uuid":"493859965","full_name":"winseyli/ArchitectureComponentsExamples","owner":"winseyli","description":"This Android project demos the use of view binding and data binding.","archived":false,"fork":false,"pushed_at":"2022-05-25T23:10:24.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-04T20:31:17.597Z","etag":null,"topics":["android","data-binding","jetpack","view-binding"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/winseyli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-18T23:51:27.000Z","updated_at":"2022-07-17T21:23:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"a60fa79b-16cd-4717-ac46-bce8a59252fb","html_url":"https://github.com/winseyli/ArchitectureComponentsExamples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winseyli%2FArchitectureComponentsExamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winseyli%2FArchitectureComponentsExamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winseyli%2FArchitectureComponentsExamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winseyli%2FArchitectureComponentsExamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winseyli","download_url":"https://codeload.github.com/winseyli/ArchitectureComponentsExamples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246237418,"owners_count":20745348,"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","data-binding","jetpack","view-binding"],"created_at":"2024-10-03T10:50:32.120Z","updated_at":"2026-04-30T10:39:32.121Z","avatar_url":"https://github.com/winseyli.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ViewBinding vs DataBinding\n\nThe ViewBinding only generates the ViewBinding of your layout files, so you can refer to the views without using `findViewById`.\n\nThe DataBinding provides you the same but with extra functionalities like data-binding expressions (putting common Java logic in XML), common data variable for whole xml, annotations, etc.\n\n## So when to use these?\n\nIn case you just need to access views in your Java code without any complex/repeating view logic (eg: change visibility of multiple views on basis of one data variable), then you should use ViewBinding as it is lighter and faster.\n\nBut in case you need more than just accessing the views like binding expressions, binding adapters, etc. (which is general requirement of big projects). You should use DataBinding as it provide more features.\n\nFor more info, please have a look at\n- https://developer.android.com/topic/libraries/view-binding#data-binding - Comparison by AndroidDeveloper\n- https://proandroiddev.com/new-in-android-viewbindings-the-difference-from-databinding-library-bef5945baf5e - Comparison by ProAndroidDev\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinseyli%2Farchitecturecomponentsexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinseyli%2Farchitecturecomponentsexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinseyli%2Farchitecturecomponentsexamples/lists"}