Why items change order upon scrolling in Android GridView?
I have a GridView in android which I fill it with data retrieved from a xml resource. For example I have 15 items in the GridView which are placed in order. The overall height exceeds the Screen height so i have to scroll to see the rest of the items. The problem is when I scroll back up, the order of the invisible rows have changed. It's a mysterious behavior as sometimes items swap rows with each other. Here is my getView method: public class ImageAdapter extends BaseAdapter { public ImageAdapter(Context c, NodeList cuu) { cu = cuu; } public int getCount() { Log.d("Node Count",cu.getLength()