https://github.com/cutta/continuousscrollableimageview
Library for animating images with continuous scrolling effects
https://github.com/cutta/continuousscrollableimageview
android animation imageview scrolling
Last synced: 18 days ago
JSON representation
Library for animating images with continuous scrolling effects
- Host: GitHub
- URL: https://github.com/cutta/continuousscrollableimageview
- Owner: Cutta
- Created: 2017-08-21T14:16:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-21T11:15:45.000Z (over 5 years ago)
- Last Synced: 2025-04-04T15:07:22.192Z (18 days ago)
- Topics: android, animation, imageview, scrolling
- Language: Java
- Homepage:
- Size: 5.41 MB
- Stars: 431
- Watchers: 12
- Forks: 53
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ContinuousScrollableImageView
Library for animating images with continuous scrolling effectsSimple 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
``` javaimage = 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
``` javaimage = 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
``` xml
```## 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 athttp://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.