{"id":23240507,"url":"https://github.com/arihant-001/driftdrawer","last_synced_at":"2025-08-20T01:32:24.695Z","repository":{"id":180673060,"uuid":"132164614","full_name":"arihant-001/DriftDrawer","owner":"arihant-001","description":"Easy and Unique implementation for Android Navigation Drawer","archived":false,"fork":false,"pushed_at":"2018-06-17T22:36:40.000Z","size":14980,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-07T07:21:16.322Z","etag":null,"topics":["android","custom","design","kotlin","library","navigation","navigation-drawer","popout"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arihant-001.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-04T16:35:02.000Z","updated_at":"2023-07-08T14:26:40.000Z","dependencies_parsed_at":"2023-07-27T13:46:21.866Z","dependency_job_id":null,"html_url":"https://github.com/arihant-001/DriftDrawer","commit_stats":null,"previous_names":["arihant-001/driftdrawer"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/arihant-001/DriftDrawer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arihant-001%2FDriftDrawer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arihant-001%2FDriftDrawer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arihant-001%2FDriftDrawer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arihant-001%2FDriftDrawer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arihant-001","download_url":"https://codeload.github.com/arihant-001/DriftDrawer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arihant-001%2FDriftDrawer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271252416,"owners_count":24726910,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","custom","design","kotlin","library","navigation","navigation-drawer","popout"],"created_at":"2024-12-19T05:12:33.965Z","updated_at":"2025-08-20T01:32:24.689Z","avatar_url":"https://github.com/arihant-001.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DriftDrawer\nIt is a library for custom Naviagation Drawer\n\n![Sample](images/sample.gif)\n\n## Usage\n\n### Gradle\n\n```\ncompile 'com.sdsmdg.aridj:driftdrawer:1.0.0'\n```\n### Builder\n\n1. Create a list of icons for navigation items\n\n``` kotlin\n  val icons = ArrayList\u003cInt\u003e()\n  icons.add(R.drawable.ic_archive_black_24dp)\n  icons.add(R.drawable.ic_apps_black_24dp)\n  icons.add(R.drawable.ic_border_color_black_24dp)\n  icons.add(R.drawable.ic_build_black_24dp)\n\n```\n2. Build the drawer programmatically using `DriftDrawerBuilder`.\n\n``` kotlin\n  DriftDrawerBuilder(context, toolbar)\n    .withMenus(icons)\n    .build()\n```\n\n### ItemClickListener\n\n- Using lamdas\n\n```kotlin\nval navItemListener: (Int, View) -\u003e Unit = { pos: Int, view: View -\u003e\n    Toast.makeText(context, \"Position: \" + pos, Toast.LENGTH_SHORT).show()\n  }\n```\n\n- This itemClickListener can be easily pass in builder\n\n``` kotlin\n  DriftDrawerBuilder(context, toolbar)\n    .withMenus(icons)\n    .withItemClickListener(navItemListener)\n    .build()\n```\n\n### Builder Extras\n\n``` kotlin\nval driftDrawer = DriftDrawerBuilder(this, toolbar)\n    .withMenus(icons)\n    .withDrawerClosed(false) // set initial state of drawer\n    .withSize(60) // set menu size in dp\n    .withColors(Color.parseColor(\"#E91E63\"), Color.parseColor(\"#9C27B0\")) // sets background and item highlight colors\n    .withItemClickListener(navItemListener) // sets item click listener\n    .build()\n```\n\n### DriftDrawer\n`build` method of `DriftDrawerBuilder` returns `DriftDrawer`. This drawer can be used to control its behaviors.\n\nMethods | Definition\n------------ | -------------\nisClosed | returns true if drawer is closed otherwise false\ncloseDrawer | close the drawer with/ without animation control by argument `animated`. Default value for `animated` is `true`\nopenDrawer | open the drawer with/ without animation control by argument `animated`. Default value for `animated` is `true`\nsetSelectedPosition | sets the position passed in argument as selected position\ngetLayout | returns the `DriftNavLayout` for drawer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farihant-001%2Fdriftdrawer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farihant-001%2Fdriftdrawer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farihant-001%2Fdriftdrawer/lists"}