Library for animating images with continuous scrolling effects
Switch branches/tags
Nothing to show
Clone or download
Latest commit 0930d79 Aug 22, 2017
Permalink
Failed to load latest commit information.
.idea Update README.md Aug 21, 2017
app making lib Aug 21, 2017
continuousScrollable adding gifs Aug 21, 2017
gifs adding new gifs Aug 21, 2017
gradle/wrapper first commit Aug 21, 2017
.gitignore first commit Aug 21, 2017
README.md Update README.md Aug 21, 2017
build.gradle first commit Aug 21, 2017
gradle.properties first commit Aug 21, 2017
gradlew first commit Aug 21, 2017
gradlew.bat first commit Aug 21, 2017
settings.gradle first commit Aug 21, 2017

README.md

ContinuousScrollableImageView

Library for animating images with continuous scrolling effects

Simple android view to display images with continuous scrolling effects efficiently. You can set image source, scaleType, duration and direction. Example usages can be found in sample project.

SCREENS

| |

JAVA USAGE

Classic Way

 image = new ContinuousScrollableImageView(this);
        image.setResourceId(R.drawable.bg_sample);
        image.setDirection(ContinuousScrollableImageView.DOWN);
        image.setScaleType(ContinuousScrollableImageView.FIT_XY);
        image.setDuration(3000);
        rootLayout.addView(image);

Builder Way

image = new ContinuousScrollableImageView.Builder(MainActivity.this)
                .setResourceId(R.drawable.bg_sample)
                .setDirection(ContinuousScrollableImageView.UP)
                .setDuration(3000)
                .setScaleType(ContinuousScrollableImageView.FIT_XY)
                .build();
                rootLayout.addView(image);

XML USAGE

       <com.cunoraz.continuouscrollable.ContinuousScrollableImageView
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            app:direction="right"
            app:scaleType="centerInside"
            app:duration="2500"
            app:imageSrc="@drawable/plane"/>

IMPORT

Project build.gradle

repositories {
    maven {
        url "https://jitpack.io"
    }
}

Module build.gradle

compile 'com.github.Cutta:ContinuousScrollableImageView:1.0'

Credits

License

Copyright 2017 Cüneyt Çarıkçi.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.