{"id":3480,"url":"https://github.com/LeonardoCardoso/Animated-Expanding-ListView","last_synced_at":"2025-08-03T20:32:32.798Z","repository":{"id":14663161,"uuid":"17381694","full_name":"LeonardoCardoso/Animated-Expanding-ListView","owner":"LeonardoCardoso","description":"Animated Expanding ListView provides a fancy animation on expanding or collapsing the content of a listview item.","archived":true,"fork":false,"pushed_at":"2016-09-13T13:39:53.000Z","size":624,"stargazers_count":130,"open_issues_count":1,"forks_count":52,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-16T14:34:33.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"3dcl/activerecord-spatialite-adapter","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeonardoCardoso.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}},"created_at":"2014-03-03T22:01:13.000Z","updated_at":"2024-05-29T18:25:15.000Z","dependencies_parsed_at":"2022-08-29T21:21:34.090Z","dependency_job_id":null,"html_url":"https://github.com/LeonardoCardoso/Animated-Expanding-ListView","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonardoCardoso%2FAnimated-Expanding-ListView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonardoCardoso%2FAnimated-Expanding-ListView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonardoCardoso%2FAnimated-Expanding-ListView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonardoCardoso%2FAnimated-Expanding-ListView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeonardoCardoso","download_url":"https://codeload.github.com/LeonardoCardoso/Animated-Expanding-ListView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228567009,"owners_count":17937983,"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-01-05T20:16:42.697Z","updated_at":"2024-12-07T05:30:35.144Z","avatar_url":"https://github.com/LeonardoCardoso.png","language":"Java","funding_links":[],"categories":["Libraries"],"sub_categories":["GUI"],"readme":"For more details, visitAnimated-Expanding-ListView\n===========================\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Animated--Expanding--ListView-green.svg?style=true)](https://android-arsenal.com/details/1/2778)\n\nDeveloped by \u003ca href='https://github.com/LeonardoCardoso' target='_blank'\u003e@LeonardoCardoso\u003c/a\u003e. \n\nAnimated Expanding ListView provides a fancy animation on expanding or collapsing the content of a listview item.\n\nIt works in all version of Android and it's very easy to adapt to your project.\n\n## How to use with Gradle\n\nSimply add the repository to your build.gradle file:\n```groovy\nrepositories {\n\tjcenter()\n\tmaven { url 'https://github.com/leonardocardoso/mvn-repo/raw/master/maven-deploy' }\n}\n```\n\nAnd you can use the artifacts like this:\n```groovy\ndependencies {\n\tcompile 'com.leocardz:aelv:1.1@aar'\n\t// ...\n}\n```\n\n\n## Important\n\u003cul\u003e\n    \u003cli\u003e Your list adapter must extend \u003cb\u003eArrayAdapter\u0026lt;? yourListItem ?\u0026gt;\u003c/b\u003e \u003c/li\u003e\n    \u003cli\u003e Your listview item must extend from AelvListItem\n        \u003cul\u003e\n            \u003cli\u003e Right after you create your listview item, you need to call \u003cb\u003eyourItem.setUp(int collapsedHeight, int expandedHeight, boolean isOpen);\u003c/b\u003e to setup the dimensions.\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e Your listview item view holder must extend from AelvListViewHolder\n        \u003cul\u003e\n            \u003cli\u003e Right after you instantiate your view holder you need to call \u003cb\u003eyourHolder.setViewWrap(viewWrap)\u003c/b\u003e; and tell adapter that you are updating the item size calling \u003cb\u003eholder.getViewWrap().setLayoutParams(new AbsListView.LayoutParams(AbsListView.LayoutParams.MATCH_PARENT, listItem.getCurrentHeight()));\u003c/b\u003e.\u003c/li\u003e\n            \u003cli\u003e Right before you return the view on your custom adapter, you must call \u003cb\u003eyourItem.setHolder(yourHolder)\u003c/b\u003e;\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003eYou need to instantiate \u003cb\u003eAelv aelv = new Aelv(isAccordion, animationDuration, yourListItems, yourListView, yourAdapter);\u003c/b\u003e right after you setup your listview.\u003c/li\u003e\n    \u003cli\u003eLast thing: your must implement \u003cb\u003elistview.setOnItemClickListener();\u003c/b\u003e and insert this \u003cb\u003eaelv.toggle(view, position);\u003c/b\u003e inside the listener and voilà!\u003c/li\u003e\n\u003c/ul\u003e\n\nJust check the app example to see it clearly.\n\n\n| Normal | Accordion |\n:--:|:--:\n|![Normal](http://i.imgur.com/j8KK5yh.gif) | ![Accordion](http://i.imgur.com/rVmezyp.gif) |\n\n\nContact\n=================================\n\nContact me either by Twitter [@leocardz](https://twitter.com/leocardz) or emailing me to [contact@leocardz.com](mailto:contact@leocardz.com).\n\n\nLicense\n=================================\n\n    Copyright 2014 Leonardo Cardoso\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeonardoCardoso%2FAnimated-Expanding-ListView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLeonardoCardoso%2FAnimated-Expanding-ListView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeonardoCardoso%2FAnimated-Expanding-ListView/lists"}