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

前端 未结 1 703
独厮守ぢ
独厮守ぢ 2021-01-27 09:07

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

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

相关标签:
1条回答
  • 2021-01-27 10:03

    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.

    0 讨论(0)
提交回复
热议问题