{"id":37026391,"url":"https://github.com/kopihao/peasy-recyclerview","last_synced_at":"2026-01-14T03:04:13.965Z","repository":{"id":57720830,"uuid":"141556901","full_name":"kopihao/peasy-recyclerview","owner":"kopihao","description":"A not-so-powerful and yet easy peasy tool to setup your Android RecyclerView in a convenient way. Be practical, may not be fancy. ","archived":false,"fork":false,"pushed_at":"2021-11-04T18:23:15.000Z","size":704,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-06-30T19:05:06.594Z","etag":null,"topics":["android","gridlayout","linearlayout","linearlayoutmanager","listview","recyclerview","recyclerview-footer","recyclerview-header","recyclerviewadapter","staggeredgrid","viewholder"],"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/kopihao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-19T09:32:32.000Z","updated_at":"2021-11-04T18:23:18.000Z","dependencies_parsed_at":"2022-08-25T15:50:56.578Z","dependency_job_id":null,"html_url":"https://github.com/kopihao/peasy-recyclerview","commit_stats":null,"previous_names":[],"tags_count":14,"template":null,"template_full_name":null,"purl":"pkg:github/kopihao/peasy-recyclerview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopihao%2Fpeasy-recyclerview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopihao%2Fpeasy-recyclerview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopihao%2Fpeasy-recyclerview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopihao%2Fpeasy-recyclerview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kopihao","download_url":"https://codeload.github.com/kopihao/peasy-recyclerview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopihao%2Fpeasy-recyclerview/sbom","scorecard":{"id":567507,"data":{"date":"2025-08-11","repo":{"name":"github.com/kopihao/peasy-recyclerview","commit":"79ff6be72959c7f8dad4283b6d39197e486005ee"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":10,"reason":"no binaries found in the repo","details":null,"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt: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"}}]},"last_synced_at":"2025-08-20T15:22:43.311Z","repository_id":57720830,"created_at":"2025-08-20T15:22:43.311Z","updated_at":"2025-08-20T15:22:43.311Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["android","gridlayout","linearlayout","linearlayoutmanager","listview","recyclerview","recyclerview-footer","recyclerview-header","recyclerviewadapter","staggeredgrid","viewholder"],"created_at":"2026-01-14T03:04:13.193Z","updated_at":"2026-01-14T03:04:13.958Z","avatar_url":"https://github.com/kopihao.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Peasy RecyclerView\n============\n\n![Logo](https://raw.githubusercontent.com/kopihao/peasy-recyclerview/master/photoshop/peasy-recyclerview.png)\n\n# What's good?\n#### A not-so-powerful and yet easy peasy tool to setup your Android RecyclerView in a convenient way. Be practical, may not be fancy.\n\n#### Provides a lot override methods by handling a lot boilerplate behind the scene. \n#### Yes you can override them anytime. \n\n### Easy hands on, easy peasy!\n\n* Provides various RecyclerView presentation template:\n    1) Vertical List\n    2) Horizontal List\n    3) Basic Grid\n    4) Vertical Staggered Grid\n    5) Horizontal Staggered Grid\n\n* Provides handy way to setup RecyclerView presentation without boilerplate by using extending abstract class during compilation:\n    1) `PeasyRecyclerView.VerticalList`\n    2) `PeasyRecyclerView.HorizontalList`\n    3) `PeasyRecyclerView.BasicGrid`\n    4) `PeasyRecyclerView.VerticalStaggeredGrid`\n    5) `PeasyRecyclerView.HorizontalStaggeredGrid`\n\n* Provides handy way to setup RecyclerView presentation without boilerplate by using method calls during runtime:\n    1) `asVerticalListView()`\n    2) `asHorizontalListView()`\n    3) `asGridView()`\n    4) `asVerticalStaggeredGridView()`\n    5) `asHorizontalStaggeredGridView()`\n\n* Elimates needs of anonymous inner-classes for listeners by overriding methods intuitively:\n    1) `onItemClick(...)`\n    2) `onItemLongClick(...)`\n    3) `onViewScrolled(...)`\n    4) `onViewScrollStateChanged(...)`\n    5) `onViewReachingEndOfList(...)`\n    6) `onInterceptTouchEvent(...)`\n\n* Retains Android promoted implement in better ways, no proprietary knowledge required to start with, you will still see these:\n    1) `onCreateViewHolder(...)`\n    2) `onBindViewHolder(...)`\n    3) `getItemViewType(...)`\n\n## Intuitive, Better writability \u0026 readability:\n### Basic Template\n* Let's set up RecyclerView as Vertical List\n```java\npublic final class SampleRV extends PeasyRecyclerView.VerticalList\u003cPeasyRVInbox.ModelInbox\u003e {\n\n        public SampleRV(@NonNull Context context, RecyclerView recyclerView, ArrayList arrayList) {\n            super(context, recyclerView, arrayList);\n        }\n\n        @Override\n        protected PeasyViewHolder onCreateViewHolder(LayoutInflater inflater, ViewGroup parent, int viewType) {\n            // TODO Do Nothing but initializing view holder with layout_id\n            return null;\n        }\n\n        @Override\n        protected int getItemViewType(int position, PeasyRVInbox.ModelInbox item) {\n            // TODO Do Nothing but returning view type accordingly\n            return 0;\n        }\n\n        @Override\n        protected void onBindViewHolder(Context context, PeasyViewHolder holder, int position, PeasyRVInbox.ModelInbox item) {\n            // TODO Do Nothing but checking instance and populating item to view with view holder\n        }\n    }\n```\n\n### Comprehensive Template\n* Elimates boilerplate implementation such as listeners\n* Just override intuitively what you can find\n* Popular implementation `onItemClick`, `onViewScrolled`\n\n```java\npublic final class SampleRV extends PeasyRecyclerView.VerticalList\u003cPeasyRVInbox.ModelInbox\u003e {\n\n        public SampleRV(@NonNull Context context, RecyclerView recyclerView, ArrayList arrayList) {\n            super(context, recyclerView, arrayList);\n        }\n\n        @Override\n        protected PeasyViewHolder onCreateViewHolder(LayoutInflater inflater, ViewGroup parent, int viewType) {\n            // TODO Do Nothing but initializing view holder with layout_id\n            return null;\n        }\n\n        @Override\n        protected int getItemViewType(int position, PeasyRVInbox.ModelInbox item) {\n            // TODO Do Nothing but returning view type accordingly\n            return 0;\n        }\n\n        @Override\n        protected void onBindViewHolder(Context context, PeasyViewHolder holder, int position, PeasyRVInbox.ModelInbox item) {\n            // TODO Do Nothing but checking instance and populating item to view with view holder\n        }\n\n        @Override\n        public void onItemClick(View view, int viewType, int position, PeasyRVInbox.ModelInbox item, PeasyViewHolder viewHolder) {\n            // TODO Do Nothing but defining click action on PeasyRVInbox item\n            super.onItemClick(view, viewType, position, item, viewHolder);\n        }\n\n        @Override\n        public boolean onItemLongClick(View view, int viewType, int position, PeasyRVInbox.ModelInbox item, PeasyViewHolder viewHolder) {\n            // TODO Do Nothing but defining long click action on PeasyRVInbox item\n            return super.onItemLongClick(view, viewType, position, item, viewHolder);\n        }\n\n        @Override\n        public void onViewScrolled(RecyclerView recyclerView, int dx, int dy) {\n            // TODO Everything during RecyclerView scrolling\n            super.onViewScrolled(recyclerView, dx, dy);\n        }\n\n        @Override\n        public void onViewScrollStateChanged(RecyclerView recyclerView, int newState) {\n            // TODO Everything after RecyclerView scroll state updated\n            super.onViewScrollStateChanged(recyclerView, newState);\n        }\n\n        @Override\n        public void onViewReachingEndOfList(RecyclerView recyclerView, int threshold) {\n            // TODO Everything during RecyclerView scrolled to reach End of List \n           super.onViewReachingEndOfList(recyclerView, threshold);\n        }\n\n        @Override\n        public void onViewInterceptTouchEvent(RecyclerView rv, MotionEvent e) {\n            super.onViewInterceptTouchEvent(rv, e);\n        }\n\n    }\n```\n\nDemostration\n--------  \n## `MainActivity.java`\n### `MainActivity`\n* Activity which host  `android.support.v7.widget.RecyclerView`\n\n## `PeasyRVInbox.java`\n### `PeasyRVInbox`\n* Child class of `PeasyRecyclerView` \n* Glue provided `RecyclerView` with `RecyclerView.Adapter` with desired `PeasyRecyclerView.Presentation`\n### `ModelInbox`\n* Serves as model T to `PeasyRVInbox\u003cT\u003e`\n### `InboxHeaderViewHolder`,`InboxFooterViewHolder`,`InboxModelViewHolder`\n* Serve as view holders to `PeasyRVInbox\u003cT\u003e`\n### `PeasyHeaderContent\u003cModelInbox\u003e`,`PeasyFooterContent\u003cModelInbox\u003e`\n* Serve as Coordinator Content to `PeasyRVInbox\u003cT\u003e` \n\n##### __Please checkout [source code][3]__\n##### __Please checkout [live demo][4]__\n\nAdd to your Android project\n--------\n\n\u003cimg src=\"https://img.shields.io/bintray/v/kopihao/maven/peasy-recyclerview.svg\"\u003e \u003cimg src=\"https://img.shields.io/maven-central/v/com.github.kopihao/peasy-recyclerview.svg\"\u003e\n\n```gradle\ndependencies {\n  implementation 'com.github.kopihao:peasy-recyclerview:1.0.+'\n} \n```\n\nMore Information\n-------- \n##### For documentation and additional information please visit [official website][1]. \n##### For enquiries and solutions please visit [stackoverflow][2].\n\nLicense\n-------\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    Copyright 2013 Kopihao.MY\n\n [1]: https://github.com/kopihao/peasy-recyclerview/\n [2]: https://stackoverflow.com/questions/tagged/peasy-recyclerview?sort=frequent\n [3]: https://github.com/kopihao/peasy-recyclerview/tree/master/sample/src/main/java/com/kopirealm/peasyrecyclerview\n [4]: https://appetize.io/embed/yavqdtj6y0nnb0x6ru3p7yym2w?device=nexus5\u0026scale=75\u0026orientation=portrait\u0026osVersion=8.1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkopihao%2Fpeasy-recyclerview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkopihao%2Fpeasy-recyclerview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkopihao%2Fpeasy-recyclerview/lists"}