android.widget.textview cannot be casted to android.widget.button
遇到这种情况,把你的出错的控件在布局文件中重新写一便就ok
本文介绍了一种简单的方法来解决在Android开发过程中遇到的将TextView强制转换为Button时出现的类型转换错误。只需要重新在布局文件中定义出错的控件即可轻松解决问题。
android.widget.textview cannot be casted to android.widget.button
遇到这种情况,把你的出错的控件在布局文件中重新写一便就ok

被折叠的 条评论
为什么被折叠?