{"id":27276826,"url":"https://github.com/pedromassango/doubleclick","last_synced_at":"2025-04-11T16:49:04.490Z","repository":{"id":38375582,"uuid":"114937988","full_name":"pedromassango/doubleClick","owner":"pedromassango","description":"A lib To handle double click on android View's components.","archived":false,"fork":false,"pushed_at":"2018-11-30T18:26:38.000Z","size":218,"stargazers_count":47,"open_issues_count":1,"forks_count":18,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-02T13:35:57.181Z","etag":null,"topics":["android","android-development","androidlibrary","androidstudio","java","kotlin"],"latest_commit_sha":null,"homepage":"https://dev.to/pedromassango/double-click-listener-on-android-f0j","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pedromassango.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-20T22:44:46.000Z","updated_at":"2022-12-22T10:39:49.000Z","dependencies_parsed_at":"2022-09-15T12:22:52.218Z","dependency_job_id":null,"html_url":"https://github.com/pedromassango/doubleClick","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedromassango%2FdoubleClick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedromassango%2FdoubleClick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedromassango%2FdoubleClick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedromassango%2FdoubleClick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedromassango","download_url":"https://codeload.github.com/pedromassango/doubleClick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248442682,"owners_count":21104238,"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","androidlibrary","androidstudio","java","kotlin"],"created_at":"2025-04-11T16:49:03.833Z","updated_at":"2025-04-11T16:49:04.467Z","avatar_url":"https://github.com/pedromassango.png","language":"Java","readme":"[![](https://jitpack.io/v/pedromassango/doubleClick.svg)](https://jitpack.io/#pedromassango/doubleClick)\n\n# DoubleClick on Android Views.\nA android library lo handle double click on android Views components. You just need to call it on your view `onCLickListener`.\n\n![alt tag](http://chevronscode.com/media/images/android_press_again_to_exit.jpg)\n\n## Requirements\n​\n- Android API level 14 or greater\n- Your favorite IDE\n\n## Version\nThe current version is: 3.0\n\n## Setting up\n\nGradle:\n\nStep 1. Add the JitPack repository to your build file.\nAdd it in your root build.gradle at the end of repositories:\n```groovy\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url 'https://jitpack.io' }\n\t}\n}\n```\n\nStep 2. Add the dependency\n```groovy\n\nimplementation 'com.github.pedromassango:doubleClick:CURRENT-VERSION'\n\n```\n\nMaven:\n\nStep 1. register jitpack.io\n```xml\n\u003crepositories\u003e\n\t\u003crepository\u003e\n\t    \u003cid\u003ejitpack.io\u003c/id\u003e\n\t    \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n\t\u003c/repository\u003e\n\u003c/repositories\u003e\n```\n\nStep 2. Add the dependency\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.pedromassango\u003c/groupId\u003e\n    \u003cartifactId\u003edoubleClick\u003c/artifactId\u003e\n    \u003cversion\u003eCURRENT-VERSION\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n\n## Basic usage\n\nThe class `DoubleClick` extends from `View.OnClickListener` so, just call the `DoubleClick` class on you onClickListener \nof the view that you wish to listen, and pass a instance of `DoubleClickListener` class to listen the events.\n\nSee the sample code below:\n```java\nButton btn = new Button(this);\nbtn.setOnClickListener( new DoubleClick(new DoubleClickListener() {\n            @Override\n            public void onSingleClick(View view) {\n\n                // Single tap here.\n            }\n\n            @Override\n            public void onDoubleClick(View view) {\n\n                // Double tap here.\n            }\n        });\n        //  use this to define your own interval\n        //  }, 100));\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedromassango%2Fdoubleclick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedromassango%2Fdoubleclick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedromassango%2Fdoubleclick/lists"}