Exception raised during rendering: addView(View, LayoutParams) is not supported in AdapterView (Details) Tip: Try to refresh the layout

大兔子大兔子 提交于 2020-07-03 17:29:50

问题


here is screenshots of my xml(activity) file + the preview that stays empty...

https://ibb.co/3d9BjYz https://ibb.co/3CvTJKh


回答1:


Please read AdapterView explanation in Android Documentation. Here is the explanation: "An AdapterView is a view whose children are determined by an Adapter."

You didn't share your Java code, but you need an Adapter to bind data and view. Please check getView method in your Adapter. Your problem should be related with the parent view in your Adapter class.



来源:https://stackoverflow.com/questions/62269868/exception-raised-during-rendering-addviewview-layoutparams-is-not-supported

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!