I have a listview with some items that can be marked as \"done\". There is also a togglebutton that says \"hide done items\".
However, when I do hide the items by s
convertView = inflater.inflate(R.layout.custom_layout, parent, false); if (CONDITION) { holder.wholeLayout.getLayoutParams().height = 1; // visibility Gone not working && 0 height crash app. } else { holder.wholeLayout.getLayoutParams().height = RelativeLayout.LayoutParams.WRAP_CONTENT; }