All Projects → sakebook → Reachability

sakebook / Reachability

Licence: apache-2.0
You can easily access the top of the screen in Android. Like a iPhone 6 & 6 Plus.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Reachability

Cayenne
Mirror of Apache Cayenne
Stars: ✭ 250 (-3.47%)
Mutual labels:  library
Sureness
A simple and efficient open-source security framework that focus on protection of restful api.
Stars: ✭ 254 (-1.93%)
Mutual labels:  library
Stripe
A comprehensive PHP Library for the Stripe.
Stars: ✭ 256 (-1.16%)
Mutual labels:  library
Resourcedoc
Share the swift resource for iOS dev
Stars: ✭ 251 (-3.09%)
Mutual labels:  library
Ta Rs
Technical analysis library for Rust language
Stars: ✭ 248 (-4.25%)
Mutual labels:  library
Zoomwall.js
A content-focused photo gallery using a horizontal masonry layout that scales up in lightbox mode.
Stars: ✭ 254 (-1.93%)
Mutual labels:  library
Php Library Template
+ 📒 Provides a GitHub repository template for a PHP library, using GitHub actions.
Stars: ✭ 249 (-3.86%)
Mutual labels:  library
Trianglify
Highly customizable library to generate beautiful triangle art views for android.
Stars: ✭ 259 (+0%)
Mutual labels:  library
Libirecovery
Library and utility to talk to iBoot/iBSS via USB on Mac OS X, Windows, and Linux
Stars: ✭ 254 (-1.93%)
Mutual labels:  library
Php Svg
Vector graphics (SVG) library for PHP
Stars: ✭ 256 (-1.16%)
Mutual labels:  library
Teaset
A UI library for react native, provides 20+ pure JS(ES6) components, focusing on content display and action control.
Stars: ✭ 2,845 (+998.46%)
Mutual labels:  library
Chl
C Hypertext Library - A library for writing web applications in C
Stars: ✭ 251 (-3.09%)
Mutual labels:  library
Animatefx
A library of +70 ready-to-use animations for JavaFX
Stars: ✭ 254 (-1.93%)
Mutual labels:  library
Separateshapesview
Simple custom ViewGroup with two shapes inside and simple scale animation
Stars: ✭ 250 (-3.47%)
Mutual labels:  library
Ngx Smart Modal
Modal/Dialog component crafted for Angular
Stars: ✭ 256 (-1.16%)
Mutual labels:  library
Statik
Multi-purpose static web site generator aimed at developers.
Stars: ✭ 249 (-3.86%)
Mutual labels:  library
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
Stars: ✭ 179,407 (+69169.11%)
Mutual labels:  library
Floyd
A raft consensus implementation that is simply and understandable
Stars: ✭ 259 (+0%)
Mutual labels:  library
Discordeno
Discord API library for Deno
Stars: ✭ 254 (-1.93%)
Mutual labels:  library
Search flip
Full-Featured ElasticSearch Ruby Client with a Chainable DSL
Stars: ✭ 256 (-1.16%)
Mutual labels:  library

Android Arsenal

Reachability on Android

Easy access on top.
Like a iPhone 6 & 6 Plus.

image

demo apk


Usage

Add dependencies

compile 'com.github.sakebook:Reachability:[email protected]'

In Activity onCreate

Reachability reachability = new Reachability(this);
reachability.makeHoverView(Reachability.Position.RIGHT);

Option

Use own trigger

  • switchBack
  • If you call this method, allows you to move the screen.
  • Animation does not overlap.
  • switchHover
  • If you call this method, allows you to move the Hover.
  • Animation does not overlap.

Show status bar

  • canTouchableBackView
  • if you call this method, You must write the AndroidManifest.xml the following code.
<!-- AndroidManifest.xml -->
...
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
...
reachability.canTouchableBackView(true);

Custom

HoverView custom

  • setHoverView
  • setCustomSlideInAnimation
  • setCustomSlideOutAnimation
// Make Own HoverView. Support only ImageView.
ImageView view = new ImageView(this);
view.setBackgroundResource(R.drawable.custom_button_selector);
view.setScaleType(ImageView.ScaleType.CENTER);
...
mReachability = new Reachability(this);
// Should call before makeHoverView!
mReachability.setHoverView(view, android.R.drawable.ic_partial_secure, android.R.drawable.ic_secure);
mReachability.makeHoverView(Reachability.Position.CENTER);
mReachability.setCustomSlideInAnimation(1000, new AnticipateOvershootInterpolator(), fromLeftAnimation());
mReachability.setCustomSlideOutAnimation(1000, new AnticipateOvershootInterpolator(), toRightAnimation());

Sample in project demo

LICENSE

Copyright (C) 2014 Shinya Sakemoto

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].