All Projects → gofynd → Gravity View

gofynd / Gravity View

Licence: apache-2.0
Introducing Gravity View: Because swiping is so yesterday!

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Gravity View

Sensor Data Logger
Android Wear sensor data plotter
Stars: ✭ 166 (-17%)
Mutual labels:  sensor
Scroll Snap
↯ Snap page when user stops scrolling, with a customizable configuration and a consistent cross browser behaviour
Stars: ✭ 187 (-6.5%)
Mutual labels:  scrolling
Onewirehub
OneWire slave device emulator
Stars: ✭ 195 (-2.5%)
Mutual labels:  sensor
Bh1750
An Arduino library for the digital light sensor breakout boards containing the BH1750FVI IC
Stars: ✭ 173 (-13.5%)
Mutual labels:  sensor
Infinitescroll
Infinite Scroll (Endless Scrolling) for RecyclerView in Android
Stars: ✭ 183 (-8.5%)
Mutual labels:  scrolling
React Indiana Drag Scroll
React component which implements scrolling via holding the mouse button or touch
Stars: ✭ 190 (-5%)
Mutual labels:  scrolling
Bme680 Python
Python library for the BME680 gas, temperature, humidity and pressure sensor.
Stars: ✭ 167 (-16.5%)
Mutual labels:  sensor
Priority Nav Scroller
Priority Nav Scroller is a plugin for the priority+ navigation pattern.
Stars: ✭ 198 (-1%)
Mutual labels:  scrolling
Md max72xx
LED Matrix Library
Stars: ✭ 186 (-7%)
Mutual labels:  scrolling
Micropython Fusion
Sensor fusion calculating yaw, pitch and roll from the outputs of motion tracking devices
Stars: ✭ 194 (-3%)
Mutual labels:  sensor
Horizontal Scroll
Horizontal scroll with inertia
Stars: ✭ 175 (-12.5%)
Mutual labels:  scrolling
Scroll Js
Light cross-browser scroller that uses native javascript
Stars: ✭ 179 (-10.5%)
Mutual labels:  scrolling
Iio Sensor Proxy
IIO accelerometer sensor to input device proxy
Stars: ✭ 192 (-4%)
Mutual labels:  sensor
Appear
execute callbacks when dom elements appear in and out of view
Stars: ✭ 172 (-14%)
Mutual labels:  scrolling
Stickyfill
Polyfill for CSS `position: sticky`
Stars: ✭ 2,252 (+1026%)
Mutual labels:  scrolling
Sticky Sidebar
😎 Pure JavaScript tool for making smart and high performance sticky sidebar.
Stars: ✭ 2,057 (+928.5%)
Mutual labels:  scrolling
Battery State Card
Battery state card for Home Assistant
Stars: ✭ 184 (-8%)
Mutual labels:  sensor
Pageable
Create full page scrolling web pages. No jQuery.
Stars: ✭ 199 (-0.5%)
Mutual labels:  scrolling
Scrollinglettersanimation
A switching title effect where a fixed element changes depending on the scroll position.
Stars: ✭ 197 (-1.5%)
Mutual labels:  scrolling
I2c Moisture Sensor
I2C based soil moisture sensor
Stars: ✭ 194 (-3%)
Mutual labels:  sensor

Gravity View for Android

API Android Arsenal

Gravity View is an Android adaptation of Facebook instant articles. The concept behind the library is to utilize the motion sensors of an Android device and allow the end user to explore the product by rotating his device. It uses gyroscope motion sensor readings to scroll the image.

You can read more about Gravity View article here

Gravity View video

Demo

Install Demo app or APK from Releases on your device and experience the gravity view.

Requirements

  • Android 3.0 or higher

Usage

Gradle dependency

dependencies {
    compile 'co.gofynd.library:gravity-view:1.0'
}

Sample Code:

Inside Layout XML File:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/activity_main"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    <HorizontalScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:scrollbars="none">
        <ImageView
            android:id="@+id/bg"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
    </HorizontalScrollView>
</RelativeLayout>

Inside Activity or Fragment:

@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        gravityView = GravityView.getInstance(this)
                .setImage(bg, R.drawable.landingbg)
                .center();
    }
    @Override
    protected void onResume() {
        super.onResume();
        gravityView.registerListener();
    }
    @Override
    protected void onStop() {
        super.onStop();
        gravityView.unRegisterListener();
    }

Check if device is supported:

boolean is_supported = gravityView.deviceSupported();

Roadmap

  • Multiple image support
  • Support for Non-Gyroscope devices using Accelerometer sensor

Contributions

Any contributions are welcome! Please check the contributing guideline before submitting a new issue.

Developed By

  • Fahim Sakri

License

Copyright 2017 Shopsense Retail Technologies Pvt Ltd.

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].