Fix a listview UI bug on old devices.
Some Code Cleanup.