{"id":13642742,"url":"https://github.com/radzio/android-data-binding-recyclerview","last_synced_at":"2026-01-22T10:08:28.843Z","repository":{"id":32956859,"uuid":"36559554","full_name":"radzio/android-data-binding-recyclerview","owner":"radzio","description":"Using Recyclerview with the new Android Data Binding framework","archived":false,"fork":false,"pushed_at":"2018-06-24T16:02:56.000Z","size":117,"stargazers_count":563,"open_issues_count":10,"forks_count":95,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-04-20T20:36:01.622Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/radzio.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":"2015-05-30T13:40:24.000Z","updated_at":"2025-02-17T07:42:31.000Z","dependencies_parsed_at":"2022-08-19T12:40:40.108Z","dependency_job_id":null,"html_url":"https://github.com/radzio/android-data-binding-recyclerview","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/radzio/android-data-binding-recyclerview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radzio%2Fandroid-data-binding-recyclerview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radzio%2Fandroid-data-binding-recyclerview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radzio%2Fandroid-data-binding-recyclerview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radzio%2Fandroid-data-binding-recyclerview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radzio","download_url":"https://codeload.github.com/radzio/android-data-binding-recyclerview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radzio%2Fandroid-data-binding-recyclerview/sbom","scorecard":{"id":758050,"data":{"date":"2025-08-11","repo":{"name":"github.com/radzio/android-data-binding-recyclerview","commit":"0e5fc0dc5a3e2d7146d606c46de446b8564e5ff0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T22:22:24.450Z","repository_id":32956859,"created_at":"2025-08-22T22:22:24.450Z","updated_at":"2025-08-22T22:22:24.450Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28661175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-08-02T01:01:35.721Z","updated_at":"2026-01-22T10:08:28.825Z","avatar_url":"https://github.com/radzio.png","language":"Java","funding_links":[],"categories":["RecyclerView"],"sub_categories":[],"readme":"# Android Data Binding + RecyclerView\nUsing Recyclerview with the new Android Data Binding framework.\n\n![demo](https://cloud.githubusercontent.com/assets/469111/7898771/36df1504-070b-11e5-95d5-d8ca0aaf50dd.gif)\n\n\n## How to start?\n\nJust clone this repository and start playing with it! If you want to use some parts of this repository in your project read below.\n\n\n### Change your gradle file\n\n- In your main  build.gradle add:\n \n```gradle\nclasspath 'com.android.tools.build:gradle:1.5.0'\n```\n\n- In your app build.gradle add:\n    \n    \n```gradle\n    dataBinding {\n        enabled = true\n    }\n```\n\n\n\n### Modify your layout\n\nRemember to use your classes and packages ;-).\n\n ```xml\n \u003c!-- layout.xml --\u003e\n \u003clayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n     xmlns:app=\"http://schemas.android.com/apk/res-auto\"\u003e\n     \u003cdata\u003e\n               \u003cvariable\n                   name=\"usersViewModel\"\n                   type=\"net.droidlabs.mvvmdemo.viewmodel.UsersViewModel\"/\u003e\n     \u003c/data\u003e\n\n \u003candroid.support.v7.widget.RecyclerView\n             android:id=\"@+id/activity_users_recycler\"\n             android:scrollbars=\"vertical\"\n             android:layout_width=\"match_parent\"\n             android:layout_height=\"match_parent\"\n             app:items=\"@{usersViewModel.users}\"\n             app:itemViewBinder=\"@{usersViewModel.itemViewBinder}\"\n             /\u003e\n \u003c/layout\u003e\n ```\n\n### Modify your activity\n\n```java\n\t// your activity\n\t@Override\n    protected void onCreate(Bundle savedInstanceState)\n    {\n        super.onCreate(savedInstanceState);\n        usersViewModel = new UsersViewModel();\n        usersViewModel.users.add(new SuperUserViewModel(new User(\"Android\", \"Dev\")));\n\n        binding = DataBindingUtil.setContentView(this, R.layout.users_view);\n        binding.setUsersViewModel(usersViewModel);\n        binding.activityUsersRecycler.setLayoutManager(new LinearLayoutManager(this));\n    }\n```\n\n### Modify your ViewModel class\n\n```java\n    public class UsersViewModel extends BaseObservable\n    {\n        public ObservableArrayList\u003cUserViewModel\u003e users;\n\n        public ItemBinder\u003cUserViewModel\u003e itemViewBinder()\n            {\n                return new ItemBinderBase\u003cUserViewModel\u003e(BR.user, R.layout.item_user);\n            }\n    }\n```\n\n### Some details\n\nYour ViewModel (__UsersViewModel__  in my example) should have field of __ObservableArrayList\u003cYourClass\u003e__ type which will be bind to  recycler view. \n\nNext thing is __ItemViewBinder__. This class is used in  __BindingRecyclerViewAdapter__ for creating ViewHolders and it's item views bindings. In my example I've created __CompositeItemBinder__ in order to support two different item types with separate layouts. If you want to display list with one data type you can use ItemBinderBase:\n\n```java\n\tpublic ItemBinder\u003cYourClass\u003e itemViewBinder()\n    {\n          return new ItemBinderBase\u003cYourClass\u003e(BR.your_variable_name, R.layout.your_item_layout);\n    }\n```\n\nPlease look at **UsersView.java** and **UsersViewModel.java** if something is unclear.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradzio%2Fandroid-data-binding-recyclerview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradzio%2Fandroid-data-binding-recyclerview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradzio%2Fandroid-data-binding-recyclerview/lists"}