Skip to content

An Android library for panning an image horizontal and vertically

License

Notifications You must be signed in to change notification settings

tajgarhwa/PanningView

 
 

Repository files navigation

PanningView - The official library from Andén GitHub release

PanningView provides a view that can animate background drawable. It's provide a horizontal and vertical panning (You can create your custom animation).

Splash

Setup

Gradle dependency

compile 'com.anden.panningview:panning-view:1.0.2'

or

Maven dependency

<dependency>
  <groupId>com.anden.panningview</groupId>
  <artifactId>panning-view</artifactId>
  <version>1.0.2</version>
  <type>pom</type>
</dependency>

Usage

Declare the PanningView in your XML

 <com.anden.panningview.PanningView
    android:id="@+id/panning"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:duration="YOUR_DURATION_IN_MS"
    app:drawable="YOUR_DRAWABLE" />

Set one of the available panning implementations

HorizontalPanning panning = new HorizontalPanning(HorizontalPanning.RIGHT_TO_LEFT);

PanningView panningView = (PanningView) findViewById(R.id.panning);
panningView.setPanning(panning);

Docs

Java Docs

Developed By

  • Ignacio Oviedo

   Email - [email protected]

License

  • Distributed under the Apache license. See LICENSE for more information.

About

An Android library for panning an image horizontal and vertically

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%