{"id":3516,"url":"https://github.com/mdgspace/Swipper","last_synced_at":"2025-08-03T20:33:00.992Z","repository":{"id":73526282,"uuid":"75056053","full_name":"mdgspace/Swipper","owner":"mdgspace","description":"Android library for swipable gestures","archived":false,"fork":false,"pushed_at":"2017-03-29T18:01:28.000Z","size":90742,"stargazers_count":106,"open_issues_count":7,"forks_count":21,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-05-23T02:33:57.135Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdgspace.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-11-29T07:43:12.000Z","updated_at":"2024-04-02T20:38:17.000Z","dependencies_parsed_at":"2024-01-02T21:35:16.610Z","dependency_job_id":null,"html_url":"https://github.com/mdgspace/Swipper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdgspace%2FSwipper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdgspace%2FSwipper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdgspace%2FSwipper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdgspace%2FSwipper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdgspace","download_url":"https://codeload.github.com/mdgspace/Swipper/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:43.732Z","updated_at":"2024-12-07T05:30:43.901Z","avatar_url":"https://github.com/mdgspace.png","language":"Java","funding_links":[],"categories":["Libraries"],"sub_categories":["GUI"],"readme":"# Swipper\nAndroid Library for custom views to control brightness , volume and seek through swipable gestures . These views could easily replace the conventional volume / brightness / seek controls that we have in music player ,video player or gallery apps .\n\n\u003cimg src=\"https://raw.githubusercontent.com/pkarira/Swipper/19ec63a1f3833d8d12b21941bdf8bcd7fe8b62c0/library/src/main/res/drawable/finalfinal2.gif\" width=\"250\" height=\"400\"\u003e\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\u003cimg src=\"https://raw.githubusercontent.com/pkarira/Swipper/19ec63a1f3833d8d12b21941bdf8bcd7fe8b62c0/library/src/main/res/drawable/finalfinal1.gif\" width=\"250\" height=\"400\"\u003e\u003cbr\u003e\u003cbr\u003e\n\u003ch3\u003eDependency\u003c/h3\u003e\nAdd dependency to build.gradle of your app\n\n```java\n dependencies\n {\n compile 'com.swipper.library:library:0.1.1'\n }\n ```\n\n\u003ch3\u003eUsage\u003c/h3\u003e\n \n Extend the activity in which you want to implement by Swipper instead of Activity / AppCompatActivity like:\n \n ```java\n public class MainActivity extends Swipper{}\n ```\n Pass the context of your activity in set(context) method in onCreate() of your activity like :\n ```java\n set(this)\n ```\n Now select swipe options for Brightness/Volume/SeekTo functions , to do this call Brightness() , Volume() , Seek() methods with orientation as parameter in onCreate() of your activity , suppose you want brightness on vertical swipe then do this:\n ```java\n Brightness(Orientation.VERTICAL)\n ```\n Orientation can also be set to HORIZONTAL for working on horizontal swipe or to CIRCULAR for circular seek bar .\n Similarily do this for volume too .\n ```java\n Volume(Orientation.CIRCULAR)\n ```\n \u003ch4\u003eCircular custom view appears on double tapping the screen\u003c/h4\u003e\n \nIn seek method you need to pass your VideoView / Mediaplayer object along with orientation parameter , like:\n\n```java\n MediaPlayer mediaPlayer=.....\n Seek(Orientation.HORIZONTAL,mediaPlayer)\n ```\n\n \n  \u003ch3\u003eOrientations\u003c/h3\u003e\n \n| Orientation        | Description         | \n| ------------- |:-------------:| \n| Orientation.VERTICAL      | Associates Brightness/Volume/Seek option on vertical gesture i.e up and down swipe| \n| Orientation.HORIZONTAL     |Associates Brightness/Volume/Seek option on horizontal gesture i.e left and right swipe      | \n| Orientation.CIRCULAR| Associates Brightness or Volume option on circular seek bar | \n \n \u003ch3\u003eOther Methods\u003c/h3\u003e\n \n| Method        | Role          | \n| ------------- |:-------------:| \n| setColor(String color)      | pass hex color to change color of custom view which is by default a shade of orange | \n| disableBrightness()     |to stop working of view associated with brightness      | \n| disableSeek() | to stop working of view associated with Seek      | \n|disableVolume() | to stop working of view associated with Volume| \n| enableBrightness()| to again start the working of view associated with Brightness| \n| enableSeek()|to again start the working of view associated with Seek | \n| enableVolume()| to again start the working of view associated with Volume | \n\u003ch3\u003e Library is completely exclusive and no external library has been used in making it \u003c/h3\u003e\n\n   \u003ch3\u003eLicense\u003c/h3\u003e\n  \n  * [Apache Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)\n```\nCopyright 2016 Pulkit Karira\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdgspace%2FSwipper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdgspace%2FSwipper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdgspace%2FSwipper/lists"}