{"id":13395895,"url":"https://github.com/keklikhasan/LDrawer","last_synced_at":"2025-03-13T22:31:06.275Z","repository":{"id":21796791,"uuid":"25119308","full_name":"keklikhasan/LDrawer","owner":"keklikhasan","description":"Android drawer icon with material design animation","archived":false,"fork":false,"pushed_at":"2019-10-25T16:14:28.000Z","size":921,"stargazers_count":1400,"open_issues_count":8,"forks_count":398,"subscribers_count":80,"default_branch":"master","last_synced_at":"2024-05-22T09:05:52.326Z","etag":null,"topics":[],"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/keklikhasan.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-10-12T12:53:48.000Z","updated_at":"2024-04-26T08:30:05.000Z","dependencies_parsed_at":"2022-08-19T20:40:49.711Z","dependency_job_id":null,"html_url":"https://github.com/keklikhasan/LDrawer","commit_stats":null,"previous_names":["ikimuhendis/ldrawer"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keklikhasan%2FLDrawer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keklikhasan%2FLDrawer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keklikhasan%2FLDrawer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keklikhasan%2FLDrawer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keklikhasan","download_url":"https://codeload.github.com/keklikhasan/LDrawer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243493361,"owners_count":20299640,"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-07-30T18:00:35.253Z","updated_at":"2025-03-13T22:31:06.258Z","avatar_url":"https://github.com/keklikhasan.png","language":"Java","funding_links":[],"categories":["Index `(light-weight pages)`","Java","Index"],"sub_categories":[],"readme":"LDrawer\n=======\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-LDrawer-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1042)\n\nAndroid drawer icon with material design animation\n\nNote\n--------\nBasically same as appcompat_v7 version 21, you can use appcompat_v7\n```groovy\ncompile 'com.android.support:appcompat-v7:21.0.+'\n```\n```xml\n\u003cstyle name=\"AppTheme\" parent=\"Theme.AppCompat.Light\"\u003e\n    \u003citem name=\"actionBarStyle\"\u003e@style/ActionBar\u003c/item\u003e\n\u003c/style\u003e\n\n\u003cstyle name=\"ActionBar\" parent=\"Theme.AppCompat.Light.DarkActionBar\"\u003e\n    \u003citem name=\"drawerArrowStyle\"\u003e@style/AppTheme.DrawerArrowToggle\u003c/item\u003e\n\u003c/style\u003e\n\n\u003cstyle name=\"AppTheme.DrawerArrowToggle\" parent=\"Base.Widget.AppCompat.DrawerArrowToggle\"\u003e\n    \u003citem name=\"color\"\u003e@android:color/white\u003c/item\u003e\n\u003c/style\u003e\n```\n\n\n\nDownload\n--------\n\nvia Maven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.ikimuhendis\u003c/groupId\u003e\n  \u003cartifactId\u003eldrawer\u003c/artifactId\u003e\n  \u003cversion\u003e0.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\nor Gradle:\n```groovy\ncompile 'com.ikimuhendis:ldrawer:0.1'\n```\n\n![alt tag](https://raw.githubusercontent.com/IkiMuhendis/LDrawer/master/images/animated.gif)\n\n##Usage\n\nYou can use like using [normal drawer][2], instead of using `android.support.v4.app.ActionBarDrawerToggle` use `com.ikimuhendis.ldrawer.ActionBarDrawerToggle`\n\nFirst create `drawerArrow`\n\n```java\ndrawerArrow = new DrawerArrowDrawable(this) {\n        @Override\n        public boolean isLayoutRtl() {\n            return false;\n        }\n    };\n```\nThen create `ActionBarDrawerToggle`\n\n```java\nmDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,\n        drawerArrow, R.string.drawer_open,\n        R.string.drawer_close) {\n\n        public void onDrawerClosed(View view) {\n            super.onDrawerClosed(view);\n            invalidateOptionsMenu();\n        }\n\n        public void onDrawerOpened(View drawerView) {\n            super.onDrawerOpened(drawerView);\n            invalidateOptionsMenu();\n        }\n    };\n```\nYou can stop or start animation\n```java\nmDrawerToggle.setAnimateEnabled(false);\n```\nYou can set `drawerArrow` progress or change color\n```java\ndrawerArrow.setProgress(0f); // normal position\ndrawerArrow.setProgress(1f); // back arrow position\ndrawerArrow.setColor(R.color.ldrawer_color); // to set color\n```\n##Example Projects\n\n  \n  [![Google Play](http://developer.android.com/images/brand/en_generic_rgb_wo_45.png)](https://play.google.com/store/apps/details?id=com.ikimuhendis.ldrawer.sample)\n  [LDrawer][3]\n  \n  \n  [![Google Play](http://developer.android.com/images/brand/en_generic_rgb_wo_45.png)](https://play.google.com/store/apps/details?id=com.ikimuhendis.android.foodjob)\n  [Yemek Tarifleri][4]\n  \n  [![Google Play](http://developer.android.com/images/brand/en_generic_rgb_wo_45.png)](https://play.google.com/store/apps/details?id=cz.kinst.jakub.asparagus)\n  [Asparagus - My Recipes][5]\n\nLicense\n=======\n\n    Copyright 2014 İkimühendis\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    \n[1]: https://github.com/IkiMuhendis/LDrawer\n[2]: http://developer.android.com/training/implementing-navigation/nav-drawer.html\n[3]: https://play.google.com/store/apps/details?id=com.ikimuhendis.ldrawer.sample\n[4]: https://play.google.com/store/apps/details?id=com.ikimuhendis.android.foodjob\n[5]: https://play.google.com/store/apps/details?id=cz.kinst.jakub.asparagus\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeklikhasan%2FLDrawer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeklikhasan%2FLDrawer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeklikhasan%2FLDrawer/lists"}