PanningView

Additional

Language
Java
Version
v1.0.3 (Jan 30, 2019)
Created
Nov 6, 2016
Updated
Jan 29, 2019 (Retired)
Owner
Anden (andenapp)
Contributors
Ignacio Oviedo (nacho91)
igna1991
2
Activity
Badge
Generate
Download
Source code

Advertisement

PanningView - The official library from Andén

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

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 - oviedoignacio91@gmail.com

License

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