nineoldandroids

Backwards compatible PageTransformer

怎甘沉沦 提交于 2019-11-29 16:30:39
问题 I'm trying to animate items in a ViewPager and the PageTransformer fits the bill. I want it to be backwards compatible to Android 2.2 so am using the support v4 library. However... As property animation is only supported as of Android 3.0 and forward, setting a PageTransformer on a > ViewPager on earlier platform versions will be ignored. so PageTransformer won't work on older versions I'm using Jake Wharton's NineOldAndroids library so I could use that API, but I'm not sure how to do

Displaying card flip animation on old android

有些话、适合烂在心里 提交于 2019-11-28 17:33:04
We all know this article of how to create "card filp" animations using new api . But how can I make this on apis < 3.0 ? Update: As long as there is good and easy-to-use libraries like android-FlipView I don't think you really need to go through such hard ways ... Found the answer. If you want to do flip animation on ALL ANDROID VERSIONS , use this: Activity layout file: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/main_activity_root" android:layout_width="fill_parent" android:layout_height="fill