• Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 8 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An Android library for panning an image horizontal and vertically

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.