Android编程异常解决 cannot be cast to android.app.Activity

不知道哪错了
2025-05-09 10:05:43
推荐回答(1个)
回答1:

用来将布局文件填充为View对象所使用的Context对象用错了,按左右为难试着用this, getContext(), getApplicationgContext();希望能帮到你