=============================== Effect 1, modify the getChildDrawingOrder method ====================================
// The display order of the reload view is left-to-center and protected int getChildDrawingOrder (int childCount, int I) {// long t = getSelectedItemId (); // int h = getSelectedItemPosition (); // if (I <childCount/2) // {// return I; /// return childCount-I-1 + childCount/2; // Reset the last position variable everytime we are starting a new // drawing loop if (I = 0) lastPosition = 0; int centerPosition = getSelectedItemPosition ()-getFirstVisiblePosition (); if (I = childCount-1) {return centerPosition;} else if (I> = centerPosition) {lastPosition ++; return childCount-lastPosition;} else {return I ;}}
Effect after modification:
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/101P62I9-0.png "title =" 172952814.png" alt = "170032265.png"/>
============================== Reference Materials ========== ==========================================
1. Gallery overlapping effect
Http://www.eoeandroid.com/forum.php? Mod = viewthread & tid = 97392 & reltid = 186440 & pre_pos = 8 & ext =
2.Modifying Coverflow to use xml file
Http://stackoverflow.com/questions/16078716/modifying-coverflow-to-use-xml-file
3. Use the Android built-in Gallery component to implement CoverFlow, source code + resolution
Http://www.eoeandroid.com/thread-39709-1-1.html
4. CoverFlow in Android
Http://blog.csdn.net/jxsmallmouse/article/details/7732341
5. CoverFlow
Http://www.inter-fuser.com/2010/01/android-coverflow-widget.html
Http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html
This article is from the "no trace in the sky but I fly over" blog. For more information, contact the author!