refactor a GridAdapter to simulate GridView by using ListView