Problems with Listview adapter
问题 I have an app which uses a Listview to display Lectures. The Lectures are colour coded according to their type. I used a custom adapter to control the different colours of each lecture. I call the adapter using the code below - cursor = myDbHelper.getReadableDatabase().rawQuery(sql, null); startManagingCursor(cursor); adapter = new Lectures_Adapter(this,R.layout.menu_item,cursor,FROM,TO); menuList.setAdapter(adapter); This all works ok until I re-order the Lectures, say by Location. The code