adding toggle between grid layout and list layout in listview sample.