Git Product home page Git Product logo

flipimageview's Introduction

This library is deprecated. You should be compatible API 14+ and make your own animations. Just rotate on your axis and add a small Z translation.

FlipImageView

Description

Small android lib allowing you to flip an imageview easily, by extending FlipImageView.

This lib is based on the FlipAnimator by coomar. All the credits goes to him.

Check the sample app here https://play.google.com/store/apps/details?id=fr.castorflex.android.flipimageview

XML Usage

<fr.castorflex.android.flipimageview.library.FlipImageView
       xmlns:fiv="http://schemas.android.com/apk/res-auto"
       android:id="@+id/imageview"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       android:src="@drawable/YOUR_DEFAULT_DRAWABLE"
       fiv:flipDrawable="@drawable/YOUR_FLIPPED_DRAWABLE"
       fiv:flipDuration="YOUR_DURATION_IN_MS"
       fiv:flipInterpolator="@android:anim/YOUR_INTERPOLATOR"
       fiv:flipRotations="none|x|y|z"
       fiv:isAnimated="true|false"
       fiv:isFlipped="true|false"/>

You will find a more detailed explanation here http://castorflex.github.io/blog/2013/04/16/flip-your-imageviews/

License

"THE BEER-WARE LICENSE" (Revision 42):
You can do whatever you want with this stuff.
If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.

Analytics

flipimageview's People

Contributors

castorflex avatar pawelantczak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flipimageview's Issues

Animation loop

which is the best method to do an infinite loop in this animation?

Gradle

Could this library possibly be made available through gradle? So I can simply throw it into my dependencies.

FlipImageView in ListView

I am stuck with this from last 5 days please help. I have a listview and and each row has single image which is basically FlipImageView. Now, list displays properly but issues comes when I swipe list while animation is still running. Say for example I have a list view with 10 items and if click on image in item no. 2 and swipe it instantly and reaches to item no.5 then it shows me no. 8 image animating though I have clicked on row no. 2

At any given point in time my list can show only one item completely because images are little big. To experiment with it I have reduce the image size and tries to reproduce the issue it shows me no. 7 animating.

In fact, I have setonFlipListener on all these images to check whether any of flip callback twice but none of them called twice but it shows animation twice of two different FlipImageView in case of swipe-up or down. To double check, I set duration of animation to 5000ms and swipe-down slowly and I can see that 4th item's FlipAnimation is also animating and sometime it shows image of on one which I originally clicked.

To me it seems some issue with Viewholder pattern because it tries to reuse.

Please help.

Direction of rotation

Hey Castorflex,

Have you planned something for the direction of rotation ?

For the time being if we only activate Y rotation the direction is clockwise.

Nexus 5 problem

For some reason, nexus 5 doesn't display image when i run my app. But, when I touch FlipImageView , it flip image and display flipped drawable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.