All Projects → flavioarfaria → Kenburnsview

flavioarfaria / Kenburnsview

Licence: apache-2.0
Android ImageViews animated by Ken Burns Effect

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Kenburnsview

Crescento
Add curve at bottom of image views and relative layouts.
Stars: ✭ 1,289 (-51.99%)
Mutual labels:  imageview
Pinchimageview
体验非常好的Android图片手势控件。
Stars: ✭ 1,871 (-30.32%)
Mutual labels:  imageview
Zoomage
A simple pinch-to-zoom ImageView library for Android
Stars: ✭ 211 (-92.14%)
Mutual labels:  imageview
Loopviewpagerlayout
☺无限轮播ViewPagerLayout 广告栏 banner 多种滑动的样式 使用API简单明了
Stars: ✭ 100 (-96.28%)
Mutual labels:  imageview
Multipictureview
MultiPictureView 是一个将多张图片组合显示并支持添加和删除的控件
Stars: ✭ 120 (-95.53%)
Mutual labels:  imageview
Gestureviews
ImageView and FrameLayout with gestures control and position animation
Stars: ✭ 2,257 (-15.94%)
Mutual labels:  imageview
Flinglayout
This Layout provide fling dismiss effect like Twitter ImageView.
Stars: ✭ 81 (-96.98%)
Mutual labels:  imageview
Parallaxrecyclerview
Parallax effect on every item of your RecyclerView.
Stars: ✭ 237 (-91.17%)
Mutual labels:  imageview
Sharpview
安卓带有尖角气泡的控件(TextView,ImageView,EditText,Layout),支持渐变色,圆角等自定义属性
Stars: ✭ 137 (-94.9%)
Mutual labels:  imageview
Circleimageview
A circular ImageView for Android
Stars: ✭ 14,102 (+425.21%)
Mutual labels:  imageview
Drawablecolorchange
Android Library to dynamically change color of drawable.
Stars: ✭ 101 (-96.24%)
Mutual labels:  imageview
Kotlin Playground
Kotlin practice
Stars: ✭ 111 (-95.87%)
Mutual labels:  imageview
Vicmaimageview
Content Mode Animatable Image View, change image view's content mode with your animation!
Stars: ✭ 193 (-92.81%)
Mutual labels:  imageview
Circularimageview
This project allowing you to create circular and rounded corner Imageview in android through simplest way.
Stars: ✭ 90 (-96.65%)
Mutual labels:  imageview
Superxml
android布局能力增加,轻松实现圆角、边框、虚线、属性覆盖等功能。完全无侵入
Stars: ✭ 221 (-91.77%)
Mutual labels:  imageview
Android Badgedimageview
Simple library for placing media type tags or text over an ImageView
Stars: ✭ 84 (-96.87%)
Mutual labels:  imageview
Lkimagekit
A high-performance image framework, including a series of capabilities such as image views, image downloader, memory caches, disk caches, image decoders and image processors.
Stars: ✭ 2,063 (-23.17%)
Mutual labels:  imageview
Music Cover View
Subclass of ImageView that 'morphs' into a circle shape and can rotates. Useful to be used as album cover in Music apps. 📀🎶
Stars: ✭ 239 (-91.1%)
Mutual labels:  imageview
Rvparallaximageview
RvParallaxImageView用在recyclerview的item中,它可以随着recyclerview进行视差效果的移动,进而可以在一个小区域的item中展示一个完整的图片。适用于在recyclerview的item中显示大的广告图。
Stars: ✭ 224 (-91.66%)
Mutual labels:  imageview
Print
A lightweight Android library for use iconic fonts.
Stars: ✭ 202 (-92.48%)
Mutual labels:  imageview

KenBurnsView

Android library that provides an extension to ImageView that creates an immersive experience by animating its drawable using the Ken Burns Effect.

Example Image

Overview

KenBurnsView provides the following advantages:

  • Control: you can change the duration and the interpolator of transitions and pause/resume them. You can also listen to events like onTransitionStart() and onTransitionEnd();
  • Highly extensible: you can define how the rectangles to be zoomed and panned will be generated;
  • Libs friendly: since KenBurnsView is a direct extension of ImageView, it seamlessly works out of the box with your favorite image loader library;
  • Easy to use: you can start using it right away. All you need to do is to drop the JAR file into your project and replace ImageView elements in your XML layout files by com.flaviofaria.kenburnsview.KenBurnsView ones.

Changelog

Latest version: 1.0.7

Gradle integration

If you're using Gradle, you can declare this library as a dependency:

dependencies {
    compile 'com.flaviofaria:kenburnsview:1.0.7'
}

Basic usage

For a working implementation, see the sample/ folder.

The simplest way to use KenBurnsView is by dropping the library JAR file into your project adding a view to an XML layout file:

<com.flaviofaria.kenburnsview.KenBurnsView
    android:id="@+id/image"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:src="@drawable/your_drawable" />

Advanced usage

  1. You can set a listener to your view:
KenBurnsView kbv = (KenBurnsView) findViewById(R.id.image);
kbv.setTransitionListener(new TransitionListener() {
    @Override
    public void onTransitionStart(Transition transition) {

    }
    @Override
    public void onTransitionEnd(Transition transition) {

    }
});
  1. You can pause the animation by calling kbv.pause() and resume it by calling kbv.resume();

  2. You can change the duration and the interpolator of transitions:

RandomTransitionGenerator generator = new RandomTransitionGenerator(duration, interpolator);
kbv.setTransitionGenerator(generator);
  1. If you're willing to have even more control over transitions, you can implement your own TransitionGenerator.

Questions

You can ask any question on Stack Overflow using the android-kenburnsview tag.

License

Apache Version 2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].