How can I implement idle timeout in android?

What are good ways to implement the visual effect of Flipboard's flip in sideway direction or just flipping a page effect in Android app? Are there any simple examples available?

  • My app has an activity with GridView to show curated photos. As I scroll down, new photos get updated on the current activity screen. I want to replace this "scroll down" effect with "Flip" effect. Should I use Drawables/Canvas or OpenGL to achieve this in Android?

  • Answer:

    For building flip animations between views for android, you should try out the wonderfulhttps://github.com/openaphid/android-flip library from OpenAphid. Using the library is quite straightforward. You  just need to create a FlipView and feed it views using an Adapter and  it takes care of the rest. You might need to refresh the pages if your  views update after being rendered (e.g. if you are displaying a remote  image). If you would like to avoid using an external library altogether, I would suggest the series ofhttp://openaphid.github.io/blog/categories/flipview/ by OpenAphid where they describe how they built the flip view.  Animations for Android are still behind the iOS Core Animations  (specially if you want to support older versions). OpenGL seems to the  best way to levarage the device capabilities to smooth out the  animations. You would need to take screenshots for the views that you  want to flip between and then render the animation using OpenGL ES.

Sapan Diwakar at Quora Visit the source

Was this solution helpful to you?

Other answers

Found another blog post, which explains how to use android flipview from OpenAphid with your project: http://devcodez.wordpress.com/2014/04/05/how-to-implement-flipboard-animation-on-android-tutorial/

Ladoo Boy

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.