do not inflate the listview if in edit mode

Should fix the layout designer bug, I guess.