{"id":13642881,"url":"https://github.com/laobie/RecyclerViewDivider","last_synced_at":"2025-04-20T21:31:48.659Z","repository":{"id":90174539,"uuid":"77687200","full_name":"laobie/RecyclerViewDivider","owner":"laobie","description":"Setting divider for RecyclerView.","archived":false,"fork":false,"pushed_at":"2017-01-04T14:29:26.000Z","size":1104,"stargazers_count":68,"open_issues_count":0,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T14:41:46.539Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/laobie.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}},"created_at":"2016-12-30T13:15:51.000Z","updated_at":"2023-04-14T01:15:04.000Z","dependencies_parsed_at":"2024-01-14T11:09:43.986Z","dependency_job_id":"f1cf5e7c-60e7-4619-8788-210a09aa3238","html_url":"https://github.com/laobie/RecyclerViewDivider","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/laobie%2FRecyclerViewDivider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laobie%2FRecyclerViewDivider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laobie%2FRecyclerViewDivider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laobie%2FRecyclerViewDivider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laobie","download_url":"https://codeload.github.com/laobie/RecyclerViewDivider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249965544,"owners_count":21352924,"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":[],"created_at":"2024-08-02T01:01:37.606Z","updated_at":"2025-04-20T21:31:48.127Z","avatar_url":"https://github.com/laobie.png","language":"Java","funding_links":[],"categories":["RecyclerView"],"sub_categories":[],"readme":"## RecyclerViewDivider\n\nSetting divider for RecyclerView.\n\n![](img/logo.png)\n\n### Usage\n\n1. Add the dependencies to your build.gradle file, RecyclerViewDivider is avaiable in JCenter:\n\n   ```groovy\n   compile 'com.jaeger.recyclerviewdivider:library:1.0.1'\n\n   ```\n\n2. Use `RecyclerViewDivider.Builder`\n\n   ```java\n   RecyclerViewDivider divider = new RecyclerViewDivider.Builder(this)\n       .setStyle(RecyclerViewDivider.Style.BETWEEN)\n       .setDrawableRes(R.drawable.divider)\n       .setMarginLeft(72)\n       .setMarginRight(8)\n       .build();\n   mRvList.addItemDecoration(divider);\n   ```\n\n### Feature\n\n1. Style\n\n   - START\n   - END\n   - BETWEEN\n   - BOTH\n\n   ![](img/style.jpg)\n\n2. Set margin\n\n   ```java\n    RecyclerViewDivider divider = new RecyclerViewDivider.Builder(this)\n               .setOrientation(RecyclerViewDivider.VERTICAL)\n               .setStyle(RecyclerViewDivider.Style.BETWEEN)\n               .setColorRes(R.color.divider_gray)\n               .setSize(1.5f)\n               .setMarginLeft(72)\n               .setMarginRight(8)\n               .build();\n   ```\n\n   ![](img/set_margin.png)\n\n3. Set drawable\n\n   ```java\n   RecyclerViewDivider divider = new RecyclerViewDivider.Builder(this)\n       .setStyle(RecyclerViewDivider.Style.BETWEEN)\n       .setDrawableRes(R.drawable.divider)\n       .setMarginLeft(72)\n       .setMarginRight(8)\n       .build();\n   mRvList.addItemDecoration(divider);\n   ```\n\n   ![](img/set_drawable.png)\n\n4. Set skip count \n\n   ```java\n   RecyclerViewDivider divider = new RecyclerViewDivider.Builder(this)\n       .setOrientation(RecyclerViewDivider.VERTICAL)\n       .setStyle(RecyclerViewDivider.Style.BETWEEN)\n       .setColorRes(R.color.divider_gray)\n       .setSize(1.5f)\n       .setStartSkipCount(2)\n       .setMarginLeft(72)\n       .setMarginRight(8)\n       .build();\n   ```\n\n   ![](img/set_skip.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaobie%2FRecyclerViewDivider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaobie%2FRecyclerViewDivider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaobie%2FRecyclerViewDivider/lists"}