问题描述
这是我的xml(活动)文件的屏幕截图,并且预览保持空白...
here is screenshots of my xml(activity) file + the preview that stays empty...
https://ibb.co/3d9BjYz https://ibb.co/3CvTJKh
推荐答案
请阅读Android文档中的AdapterView说明.这里是解释:"AdapterView是一个视图,其子视图由Adapter确定."
Please read AdapterView explanation in Android Documentation. Here is the explanation: "An AdapterView is a view whose children are determined by an Adapter."
您没有共享Java代码,但是您需要一个适配器来绑定数据和视图.请检查适配器中的getView方法.您的问题应该与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.
这篇关于渲染期间引发异常:AdapterView(详细信息)不支持addView(View,LayoutParams)提示:尝试刷新布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!