Logcat error: “addView(View, LayoutParams) is not supported in AdapterView” in a ListView

For others who have this problem and have inflated a layout in ArrayAdapter‘s getView, set the parent parameter to null, as in view = inflater.inflate(R.layout.mylayout, null);

Leave a Comment