Edward7Zhang / ShufflingImageView

A tiny library can move your picture like a Shuffling flow poster.πŸŽ’πŸŒ β˜„

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ShufflingImageView


shuffling_3.png

What's this

This tiny library can move your picture like a Shuffling flow poster

Feature:

  • Easy used
  • Very smooth
  • Custom picture number
  • Custom moving speed
  • Custom color split line
  • Custom placeholder

Later feature:

  • Custom moving direction
  • Custom ...

How 2 use

Add dependency

Add it in your root build.gradle at the end of repositories:

Step 1. Add the JitPack repository to your build file

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2. Add the dependency

	dependencies {
	        implementation 'com.github.Edward7Zhang:ShufflingImageView:v1.0.0'
	}

Use it

In xml Layout

<com.majortom.library.ShufflingImageView
            android:id="@+id/shuffling_image_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />
mShuffingImageView = findViewById(R.id.shuffling_image_view);
mShuffingImageView.setSpeed(1);
mShuffingImageView.setImagePlaceholder(R.drawable.placeholder1, 6);
mShuffingImageView.setImagePathList(thumbList);

Or new it

mShuffingImageView = new ShufflingImageView(this);
mShuffingImageView.setSpeed(1);
mShuffingImageView.setImagePlaceholder(R.drawable.placeholder1, 6);
mShuffingImageView.setImagePathList(thumbList);

... then add it in your layout

shuffling_2.png

More information see Demo pleaseπŸ˜‰

About

A tiny library can move your picture like a Shuffling flow poster.πŸŽ’πŸŒ β˜„

License:MIT License


Languages

Language:Java 100.0%