{"id":13645458,"url":"https://github.com/zagum/Android-ExpandIcon","last_synced_at":"2025-04-21T14:30:56.224Z","repository":{"id":143504858,"uuid":"77375695","full_name":"zagum/Android-ExpandIcon","owner":"zagum","description":"Nice and simple customizable implementation of Google style up/down expand arrow.","archived":false,"fork":false,"pushed_at":"2020-05-22T11:45:44.000Z","size":268,"stargazers_count":865,"open_issues_count":0,"forks_count":82,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-08T15:07:12.954Z","etag":null,"topics":["android","arrow","expandable","google-pixel","material","ui-components"],"latest_commit_sha":null,"homepage":"","language":"Java","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/zagum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-26T10:10:03.000Z","updated_at":"2025-03-25T02:01:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"8553806c-4382-4541-80d2-eb7401e65f53","html_url":"https://github.com/zagum/Android-ExpandIcon","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zagum%2FAndroid-ExpandIcon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zagum%2FAndroid-ExpandIcon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zagum%2FAndroid-ExpandIcon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zagum%2FAndroid-ExpandIcon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zagum","download_url":"https://codeload.github.com/zagum/Android-ExpandIcon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250070173,"owners_count":21369839,"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","arrow","expandable","google-pixel","material","ui-components"],"created_at":"2024-08-02T01:02:35.456Z","updated_at":"2025-04-21T14:30:55.849Z","avatar_url":"https://github.com/zagum.png","language":"Java","readme":"Android-ExpandIcon\n================\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Android--ExpandIcon-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/4966)\n[![JitPack](https://jitpack.io/v/zagum/Android-ExpandIcon.svg)](https://jitpack.io/#zagum/Android-ExpandIcon)\n[![API](https://img.shields.io/badge/API-15%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=15)\n\nNice and simple customizable implementation of Google style up/down arrow.\n\n![image](https://github.com/zagum/Android-ExpandIcon/blob/master/art/expand_icon_demo.gif)\n\nAnother nice example of using this library: [Pixel Slide by hearsilent](https://github.com/hearsilent/PixelSlide)\n\nCompatibility\n-------------\n\nThis library is compatible from API 15 (Android 4.0.3).\n\nDownload\n--------\n\nAdd it in your root build.gradle at the end of repositories:\n\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven { url \"https://jitpack.io\" }\n    }\n}\n```\n\nAdd the dependency\n\n```groovy\ndependencies {\n    implementation 'com.github.zagum:Android-ExpandIcon:1.3.0'\n}\n```\n\nUsage\n-----\n\nDefault implementation:\n\n```xml\n    \u003ccom.github.zagum.expandicon.ExpandIconView\n        android:layout_width=\"24dp\"\n        android:layout_height=\"24dp\"/\u003e\n```\n\nFully customized implementation:\n\n```xml\n    \u003ccom.github.zagum.expandicon.ExpandIconView\n        android:layout_width=\"48dp\"\n        android:layout_height=\"48dp\"\n        android:layout_gravity=\"center_horizontal\"\n        android:layout_marginTop=\"56dp\"\n        app:eiv_animationDuration=\"300\"\n        app:eiv_color=\"#000\"\n        app:eiv_colorLess=\"#f00\"\n        app:eiv_colorMore=\"#00f\"\n        app:eiv_colorIntermediate=\"#0f0\"\n        app:eiv_roundedCorners=\"false\"\n        app:eiv_switchColor=\"true\"\n        app:eiv_padding=\"8dp\"/\u003e\n```\n\nPublic methods: \n\n```java\n    expandIconView.switchState();\n    \n    expandIconView.setState(ExpandIconView.LESS, true);\n    \n    expandIconView.setFraction(.3f, true);\n    \n    expandIconView.setAnimationDuration(2000);\n```\n\nSee [sample](https://github.com/zagum/Android-ExpandIcon/tree/master/expandicon-sample) project for more information.\n\nLicense\n-------\n\n    Copyright 2016 Evgenii Zagumennyi\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","funding_links":[],"categories":["其他"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzagum%2FAndroid-ExpandIcon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzagum%2FAndroid-ExpandIcon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzagum%2FAndroid-ExpandIcon/lists"}