渲染期间引发异常:AdapterView(详细信息)不支持addView(View,LayoutParams)提示:尝试刷新布局 [英] Exception raised during rendering: addView(View, LayoutParams) is not supported in AdapterView (Details) Tip: Try to refresh the layout

查看:149
本文介绍了渲染期间引发异常:AdapterView(详细信息)不支持addView(View,LayoutParams)提示:尝试刷新布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的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)提示:尝试刷新布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆