{"id":21770779,"url":"https://github.com/gouravkhunger/accolib","last_synced_at":"2026-03-08T18:32:28.860Z","repository":{"id":46618885,"uuid":"363770668","full_name":"gouravkhunger/AccoLib","owner":"gouravkhunger","description":"Amazing and easy to use Accordion Library for Android built with kotlin","archived":false,"fork":false,"pushed_at":"2023-12-19T09:28:11.000Z","size":1772,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T07:35:50.608Z","etag":null,"topics":["android","android-library","android-ui","hacktoberfest","java","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gouravkhunger.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,"governance":null}},"created_at":"2021-05-02T23:23:18.000Z","updated_at":"2025-02-02T15:58:07.000Z","dependencies_parsed_at":"2022-09-18T11:02:24.750Z","dependency_job_id":"63aaa192-cc9a-4104-b0ce-67ae43e2f60b","html_url":"https://github.com/gouravkhunger/AccoLib","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gouravkhunger%2FAccoLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gouravkhunger%2FAccoLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gouravkhunger%2FAccoLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gouravkhunger%2FAccoLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gouravkhunger","download_url":"https://codeload.github.com/gouravkhunger/AccoLib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248746966,"owners_count":21155361,"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","android-ui","hacktoberfest","java","kotlin"],"created_at":"2024-11-26T14:13:46.658Z","updated_at":"2026-03-08T18:32:23.840Z","avatar_url":"https://github.com/gouravkhunger.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AccoLib\n\n[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)]()\n[![API](https://img.shields.io/badge/API-21%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=15)\n[![](https://jitpack.io/v/gouravkhunger/AccoLib.svg)](https://jitpack.io/#gouravkhunger/Accolib)\n\n\u003cimg alt = \"AccoLib Logo\" src=\"https://raw.githubusercontent.com/gouravkhunger/AccoLib/main/art/logo.png\" height=\"150px\" width=\"150px\" align=\"right\"/\u003e\n\nAn easy-to-use, amazing Accordion Library for Android built with kotlin.\n\nIt reduces the amount of code needed to make Accordions in android, way less\nthan what was needed before ✨\n\n## Demo\n![Image of Preview](./art/demo.gif)\n\n## Requirements\n- Android `minSDKVersion` 21\n\n## Usage\nAdd it in your root build.gradle at the end of repositories\n```Groovy\nallprojects {\n    repositories {\n        ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\nAdd the dependency\n```Groovy\ndependencies {\n    implementation 'com.github.gouravkhunger:AccoLib:1.1.2'\n}\n```\n\n## How to use this library\nAdd the `AccoLib` widget to your xml layout\n```xml\n\u003ccom.gouravkhunger.accolib.widget.Accordion\n            android:id=\"@+id/accordion\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            app:layout_constraintEnd_toEndOf=\"parent\"\n            app:layout_constraintStart_toStartOf=\"parent\"\n            app:layout_constraintTop_toTopOf=\"parent\"\n            app:title=\"@string/small_title\"\n            app:text=\"@string/small_text\"\n            app:titleSize=\"18sp\"\n            app:textSize=\"16sp\"\n            app:titleColor=\"@android:color/black\"\n            app:textColor=\"@android:color/darker_gray\"/\u003e\n```\n\n## Available attributes\n\nCurrently, the AccoLib widget supports only these attributes and \ncustomizations, more functionality to be shipped soon 🚀.\n\n| Name         | Type        | Description                                                             |\n|--------------|-------------|-------------------------------------------------------------------------|\n| `title`      | `string`    | Title of the accordion.                                                 |\n| `text`       | `string`    | Text to be displayed in the accordion.                                  |\n| `titleSize`  | `dimension` | Size of the Title(input in any format but is applied as raw pixel)      |\n| `textSize`   | `dimension` | Size of the Text(input in any format works but is applied as raw pixel) |\n| `titleColor` | `color`     | Color to be applied to the Title of the accordion.                      |\n| `textColor`  | `color`     | Color to be applied to the text of the accordion.                       |\n\n# License\n```\nMIT License\n\nCopyright (c) 2021 Gourav Khunger\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgouravkhunger%2Faccolib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgouravkhunger%2Faccolib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgouravkhunger%2Faccolib/lists"}