Custom Adapter crashes

Wehen I created a custom adapter for a listView, with each list item inflating from a layout. using the statement,

convertView = vi.inflate(R.layout.list_item, parent);

my application crashed, later I put a false to the statement and worked well. The new statement looks like

convertView = vi.inflate(R.layout.list_item, parent, false);


Popular posts from this blog

Open Gallery and get the selected image in appplication

Dismiss or Cancel dialog by swipe gesture

AlarmManager and Notification in Android