Polidea / android-coverflow

Simple implementation of android's cover flow widget.
Other
68 stars 36 forks source link

Runnung your lib on IceCream/Sandwich #3

Open gkapusta opened 10 years ago

gkapusta commented 10 years ago

From mref...@mcsholding.com on December 10, 2013 15:33:45

What steps will reproduce the problem? 1.setting the project min sdk to IceCream/Sandwich(API level 14) What is the expected output? What do you see instead? The project won't run because of a deprecation belongs to the Gallery Android class that belongs to (API level 16) or what known as JellyBean. What version of the product are you using? On what operating system? i just downloaded it from here right now, i think it's the last version, and running on eclipse kepler on windows7

Original issue: http://code.google.com/p/android-coverflow/issues/detail?id=11

edoardotognoni commented 10 years ago

Need this fix too. Has anyone any idea on how to fix this? I don't really understand the problem. I saw that Gallery has been deprecated, but it should work anyway.

edoardotognoni commented 10 years ago

Found it. Inside getChildStaticTransformation you must add: if (Build.VERSION.SDK_INT >= 16) { // If version >= JellyBean, each child must be invalidated manually child.invalidate(); }