java.lang.IllegalArgumentException: parameter must be a descendant of this view Error

前端 未结 4 1322
暖寄归人
暖寄归人 2021-01-21 04:21

I have a strange Error with a ViewGroup. For my main View I use classes in this links ViewFlow project

    java.lang.IllegalArgumentException: parameter must be          


        
4条回答
  •  滥情空心
    2021-01-21 05:17

    This works for me.

    convertView = mInflater.inflate(R.layout.row_stat_header,
                        parent, false);  
    

    Here, parent is the ViewGroup parameter in the getView.

提交回复
热议问题