Supporting gridview for tablet and listview for smartphone