Refactor ListAsGridBaseAdapter to wrapper class for any BaseAdapter.