自己写ListView后,在onCreat()里findViewById获得listview后强转成自己写的listview时报ClassCaseException

自己写ListView后,在onCreat()里findViewById获得listview后强转成自己写的listview时报ClassCaseException,第1张

在编写了自己的ListView之后,findViewById在onCreat()中获取了ListView,并强制将其放入自己的ListView Times class case exception中。写完自己的listview后,在onCreat()中,findViewById强行转换成自己的ListView times class case exception。简介:在编写了自定义的listview类后,findViewById在onCreat()中强行转换为自己的listview times class case exception。请帮我看一下。很紧急,我已经很着急了。

欢迎分享,转载请注明来源:聚客百科

原文地址: https://juke.outofmemory.cn/life/1970327.html

()
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-10-09
下一篇 2022-10-09

发表评论

登录后才能评论

评论列表(0条)

保存