Android notes: CoverFlow Problems

Source: Internet
Author: User

=============================== 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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.