{"id":13396363,"url":"https://github.com/sakebook/Reachability","last_synced_at":"2025-03-13T23:30:50.191Z","repository":{"id":20597671,"uuid":"23878544","full_name":"sakebook/Reachability","owner":"sakebook","description":"You can easily access the top of the screen in Android. Like a iPhone 6 \u0026 6 Plus. ","archived":false,"fork":false,"pushed_at":"2016-02-20T08:46:30.000Z","size":1770,"stargazers_count":258,"open_issues_count":1,"forks_count":45,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-19T07:37:27.975Z","etag":null,"topics":["android","animation","library","reachability","ui"],"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/sakebook.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-09-10T14:54:18.000Z","updated_at":"2023-10-28T10:47:30.000Z","dependencies_parsed_at":"2022-09-05T18:00:57.181Z","dependency_job_id":null,"html_url":"https://github.com/sakebook/Reachability","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakebook%2FReachability","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakebook%2FReachability/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakebook%2FReachability/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sakebook%2FReachability/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sakebook","download_url":"https://codeload.github.com/sakebook/Reachability/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243499819,"owners_count":20300697,"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","animation","library","reachability","ui"],"created_at":"2024-07-30T18:00:47.620Z","updated_at":"2025-03-13T23:30:49.801Z","avatar_url":"https://github.com/sakebook.png","language":"Java","readme":"[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Reachability-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/1283)\n\nReachability on Android\n============\nEasy access on top.  \nLike a iPhone 6 \u0026 6 Plus.\n\n![image](https://raw.githubusercontent.com/sakebook/Reachability/master/images/demo.gif)\n\n[demo apk](https://raw.githubusercontent.com/sakebook/Reachability/master/apk/demo-debug.apk)\n\n---\n\n## Usage\nAdd dependencies\n\n```gradle\ncompile 'com.github.sakebook:Reachability:0.2.0@aar'\n```\n\nIn Activity `onCreate`\n\n```java\nReachability reachability = new Reachability(this);\nreachability.makeHoverView(Reachability.Position.RIGHT);\n```\n\n## Option\n\n### Use own trigger  \n * `switchBack`\n  * If you call this method, allows you to move the screen.\n  * Animation does not overlap.\n * `switchHover`\n  * If you call this method, allows you to move the Hover.\n  * Animation does not overlap.\n\n### Show status bar\n * `canTouchableBackView`\n  * if you call this method, You must write the AndroidManifest.xml the following code.\n\n```xml \n\u003c!-- AndroidManifest.xml --\u003e\n...\n\u003cuses-permission android:name=\"android.permission.EXPAND_STATUS_BAR\" /\u003e\n...\n```\n\n```java\nreachability.canTouchableBackView(true);\n```\n\n## Custom\n### HoverView custom\n * `setHoverView`\n * `setCustomSlideInAnimation`\n * `setCustomSlideOutAnimation`\n\n```java\n// Make Own HoverView. Support only ImageView.\nImageView view = new ImageView(this);\nview.setBackgroundResource(R.drawable.custom_button_selector);\nview.setScaleType(ImageView.ScaleType.CENTER);\n...\nmReachability = new Reachability(this);\n// Should call before makeHoverView!\nmReachability.setHoverView(view, android.R.drawable.ic_partial_secure, android.R.drawable.ic_secure);\nmReachability.makeHoverView(Reachability.Position.CENTER);\nmReachability.setCustomSlideInAnimation(1000, new AnticipateOvershootInterpolator(), fromLeftAnimation());\nmReachability.setCustomSlideOutAnimation(1000, new AnticipateOvershootInterpolator(), toRightAnimation());\n```\n\nSample in project [demo](https://github.com/sakebook/Reachability/tree/master/demo)\n\n## LICENSE\n```\nCopyright (C) 2014 Shinya Sakemoto\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\n    http://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```\n","funding_links":[],"categories":["Index `(light-weight pages)`","Index"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakebook%2FReachability","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsakebook%2FReachability","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakebook%2FReachability/lists"}