{"id":13611315,"url":"https://github.com/robertlevonyan/material-expansion-panel","last_synced_at":"2025-08-21T18:33:17.999Z","repository":{"id":43909514,"uuid":"105624220","full_name":"robertlevonyan/material-expansion-panel","owner":"robertlevonyan","description":"Expansion panels contain creation flows and allow lightweight editing of an element.","archived":false,"fork":false,"pushed_at":"2023-10-27T12:28:10.000Z","size":15685,"stargazers_count":141,"open_issues_count":2,"forks_count":28,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-12-10T10:02:36.071Z","etag":null,"topics":["android","android-development","android-library","android-ui","expansion-panels","gradle","layout","layouts","material","material-design","material-ui","view"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/robertlevonyan.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":"2017-10-03T07:16:51.000Z","updated_at":"2024-11-13T10:12:06.000Z","dependencies_parsed_at":"2022-09-01T09:10:32.674Z","dependency_job_id":"f608da60-1979-4da0-96e8-3307dcef5beb","html_url":"https://github.com/robertlevonyan/material-expansion-panel","commit_stats":null,"previous_names":["robertlevonyan/materialexpansionpanel"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertlevonyan%2Fmaterial-expansion-panel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertlevonyan%2Fmaterial-expansion-panel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertlevonyan%2Fmaterial-expansion-panel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertlevonyan%2Fmaterial-expansion-panel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertlevonyan","download_url":"https://codeload.github.com/robertlevonyan/material-expansion-panel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230527866,"owners_count":18240051,"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-development","android-library","android-ui","expansion-panels","gradle","layout","layouts","material","material-design","material-ui","view"],"created_at":"2024-08-01T19:01:54.082Z","updated_at":"2024-12-20T03:09:32.709Z","avatar_url":"https://github.com/robertlevonyan.png","language":"Kotlin","funding_links":["https://www.buymeacoffee.com/robertlevonyan"],"categories":["Kotlin"],"sub_categories":[],"readme":"# Material Expansion Panel\n\n|Expansion panels contain creation flows and allow lightweight editing of an element.|\u003cimg src=\"https://github.com/robertlevonyan/material-expansion-panel/blob/master/Images/expandable.png\"  width=\"500\" /\u003e|\n|----------------------------------------------------------------------------------------------|-----------|\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Material%20Expansion%20Panel-yellow.svg?style=flat-square)](https://android-arsenal.com/details/1/6433) [![API](https://img.shields.io/badge/API-14%2B-yellow.svg?style=flat-square)](https://android-arsenal.com/api?level=14) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.robertlevonyan.view/MaterialExpansionPanel/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.robertlevonyan.view/MaterialExpansionPanel)\n\n## Setup\n\nAdd following line of code to your project level gradle file\n\n```kotlin\n  repositories {\n    mavenCentral()\n  }\n```\n\n#### Gradle:\n\nAdd following line of code to your module(app) level gradle file\n\n```groovy\n    implementation 'com.robertlevonyan.view:MaterialExpansionPanel:\u003cLATEST_VERSION\u003e'\n```\n\n#### Kotlin:\n\n```kotlin\n    implementation(\"com.robertlevonyan.view:MaterialExpansionPanel:$LATEST_VERSION\")\n```\n\n#### Maven:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.robertlevonyan.view\u003c/groupId\u003e\n  \u003cartifactId\u003eMaterialExpansionPanel\u003c/artifactId\u003e\n  \u003cversion\u003eLATEST_VERSION\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n```xml\n\u003ccom.robertlevonyan.views.expandable.Expandable\n        android:id=\"@+id/expandable\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\u003e\n\n        \u003cinclude\n            android:id=\"@+id/header\"\n            layout=\"@layout/header_view\" /\u003e\n\n        \u003cinclude\n            android:id=\"@+id/content\"\n            layout=\"@layout/content_view\" /\u003e\n\u003c/com.robertlevonyan.views.expandable.Expandable\u003e\n```\n\n|![alt text](https://github.com/robertlevonyan/material-expansion-panel/blob/master/Images/collapsed.jpg)|![alt text](https://github.com/robertlevonyan/material-expansion-panel/blob/master/Images/expanded.jpg)|\n|----------------------------------------------------------------------------------------------|-----------|\n\nMaterial Expansion Panel in action\n\n![alt text](https://github.com/robertlevonyan/material-expansion-panel/blob/master/Images/process.gif)\n\n### Attributes\n\n|Custom Atributes                |Description                                               |\n|--------------------------------|----------------------------------------------------------|\n|`app:exp_icon`                  |Icon for Expandable Header                                |\n|`app:exp_iconStyle`             |Set style for header icon: square, circle or roundedSquare|\n|`app:exp_animateExpand`         |Animate expand of layout                                  |\n|`app:exp_backgroundColor`       |Set a custom background color for layout                  |\n|`app:exp_expandIndicator`       |Select custom drawable for expand indicator               |\n\n### Setting Listeners\n\n```kotlin\n    val expandable = findViewById(R.id.expandable);\n```\n\nExpand/collapse programmatically\n\n#### Kotlin\n```kotlin\n    expandable.expand()\n```\n\n#### Java\n```java\n    expandable.expand();\n```\n\n\nSet expand listener\n\n#### Kotlin\n```kotlin\n    expandable.doOnExpand {\n        //some stuff on expand\n    }\n\n    expandable.doOnCollapse {\n        //some stuff on collapse\n    }\n```\n\n#### Java\n```java\n    expandable.setExpandingListener(new ExpandingListener() {\n            @Override\n            public void onExpanded() {\n                //some stuff on expand\n            }\n\n            @Override\n            public void onCollapsed() {\n                //some stuff on collapse\n            }\n        });\n```\n\n### Customizing Expandable from code\n\n```java\n    expandable.icon = myIconDrawable // Icon for Expandable Header\n    expandable.iconStyle = ExpandableIconStyles.SQUARE // Set style for header icon: square, circle or roundedSquare\n    expandable.animateExpand = true // Animate layout expanding\n    expandable.backgroundColor = myBackgroundColor // Set a custom background color for layout\n    expandable.expandIndicator = myExpandDrawable // Select custom drawable for expand indicator\n```\n\n## Versions\n\n### 2.1.1 - 2.1.3\n\nUpdate to Java 11\nSDK 31 ready\nMinor updates\n\n#### 2.1.0\n\nMigration to mavenCentral\n\n#### 2.0.1 - 2.0.10\nSeveral bug fixes and small features\n\n### 2.0.0\nNew version of the library. Fully rewritten with Kotlin and AndroidX ready 🤩\n\n#### 1.2.0\n\nRecyclerView issue fixed\n\n#### 1.1.0\n\nNew version with bug fixes\n\n### 1.0.0\n\nFirst version of library\n\n## Contact\n\n- **Email**: me@robertlevonyan.com\n- **Website**: https://robertlevonyan.com/\n- **Medium**: https://medium.com/@RobertLevonyan\n- **Twitter**: https://twitter.com/@RobertLevonyan\n- **Facebook**: https://facebook.com/robert.levonyan\n- **Google Play**: https://play.google.com/store/apps/dev?id=5477562049350283357\n\n\u003ca href=\"https://www.buymeacoffee.com/robertlevonyan\"\u003e\n  \u003cimg src=\"https://github.com/robertlevonyan/material-expansion-panel/blob/master/Images/coffee.jpeg\"  width=\"300\" /\u003e\n\u003c/a\u003e\n\n## Licence\n\n```\n    Material Expansion Panel©\n    Copyright 2017 Robert Levonyan\n    Url: https://github.com/robertlevonyan/materialExpansionPanel\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertlevonyan%2Fmaterial-expansion-panel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertlevonyan%2Fmaterial-expansion-panel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertlevonyan%2Fmaterial-expansion-panel/lists"}