Skip to content

andenapp/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.