public void switchListMode(){
  adapter.setListItemSize(adapter.getListItemSize() == Adapter_Alerts.ListItemSize.REDUCED ? Adapter_Alerts.ListItemSize.EXPANDED : Adapter_Alerts.ListItemSize.REDUCED);
}

public void switchListMode ( ) { adapter . setListItemSize ( adapter . getListItemSize ( ) == Adapter_Alerts . ListItemSize . REDUCED ? Adapter_Alerts . ListItemSize . EXPANDED : Adapter_Alerts . ListItemSize . REDUCED ) ; }
switch from flat to expanded list mode
