Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gouravkhunger/accolib
Amazing and easy to use Accordion Library for Android built with kotlin
https://github.com/gouravkhunger/accolib
android android-library android-ui hacktoberfest java kotlin
Last synced: 3 months ago
JSON representation
Amazing and easy to use Accordion Library for Android built with kotlin
- Host: GitHub
- URL: https://github.com/gouravkhunger/accolib
- Owner: gouravkhunger
- License: mit
- Created: 2021-05-02T23:23:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T09:28:11.000Z (about 1 year ago)
- Last Synced: 2024-05-01T17:06:00.662Z (10 months ago)
- Topics: android, android-library, android-ui, hacktoberfest, java, kotlin
- Language: Kotlin
- Homepage:
- Size: 1.69 MB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AccoLib
[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)]()
[![API](https://img.shields.io/badge/API-21%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=15)
[![](https://jitpack.io/v/gouravkhunger/AccoLib.svg)](https://jitpack.io/#gouravkhunger/Accolib)
An easy-to-use, amazing Accordion Library for Android built with kotlin.
It reduces the amount of code needed to make Accordions in android, way less
than what was needed before ✨## Demo
![Image of Preview](./art/demo.gif)## Requirements
- Android `minSDKVersion` 21## Usage
Add it in your root build.gradle at the end of repositories
```Groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```Add the dependency
```Groovy
dependencies {
implementation 'com.github.gouravkhunger:AccoLib:1.1.2'
}
```## How to use this library
Add the `AccoLib` widget to your xml layout
```xml```
## Available attributes
Currently, the AccoLib widget supports only these attributes and
customizations, more functionality to be shipped soon 🚀.| Name | Type | Description |
|--------------|-------------|-------------------------------------------------------------------------|
| `title` | `string` | Title of the accordion. |
| `text` | `string` | Text to be displayed in the accordion. |
| `titleSize` | `dimension` | Size of the Title(input in any format but is applied as raw pixel) |
| `textSize` | `dimension` | Size of the Text(input in any format works but is applied as raw pixel) |
| `titleColor` | `color` | Color to be applied to the Title of the accordion. |
| `textColor` | `color` | Color to be applied to the text of the accordion. |# License
```
MIT LicenseCopyright (c) 2021 Gourav Khunger
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```