android - How to avoid the API level check on XML files? -
i want add card flip animation shown google in their documentation between 2 activities. project targets api level 10 can't add xml animation files projects res/anim
folder because android:interpolator="@android:interpolator/accelerate_decelerate"
isn't supported in project target api level.
i wouldn't mind if visual enhancement works in devices support animation. how can use animation devices support animation if can't add animation file won't compile because of api level check.
you can, probably, copy accelerate_decelerate.xml sdk/platform/... project , use if api level allows that.
Comments
Post a Comment