Skip to content

Generalization of the Transition3d feature found in the Android API Demos

Notifications You must be signed in to change notification settings

rodja/FlipViewDemo

Repository files navigation

This example generalizes (and fixes) the 3D flip animation 
from the Android API Demos. Now it should work with any pair of 
Views placed in a FrameLayout container. See this stripped example 
to get the meaning:

  <FrameLayout android:id="@+id/container">
     <TextView android:text="@string/frontside"/>
	   <TextView android:text="@string/backside" android:visibility="gone"/>
  </FrameLayout>


  viewSwitcher = new ViewSwitcher((ViewGroup) findViewById(R.id.container));

  // flip
  viewSwitcher.swap();


Fetch your precompiled demo Android package from
http://github.com/downloads/rodja/FlipViewDemo/FlipViewsDemo.apk

About

Generalization of the Transition3d feature found in the Android API Demos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages