We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
findViewById 返回的对象不兼容泛型写法, 26以上项目findViewById没有写强转的就接入这项目就会报错, 然后发现没有兼容API26的泛型findViewById方法
The text was updated successfully, but these errors were encountered:
几年前发现这个问题, 自己下载源码解决了 @OverRide public View findViewById(int id) { View v = super.findViewById(id); if (v == null && mHelper != null) return mHelper.findViewById(id); return v; }
@OverRide public T findViewById(int id) { T v = super.findViewById(id); if (v == null && mHelper != null) return mHelper.findViewById(id); return v; }
Sorry, something went wrong.
No branches or pull requests
findViewById 返回的对象不兼容泛型写法, 26以上项目findViewById没有写强转的就接入这项目就会报错, 然后发现没有兼容API26的泛型findViewById方法
The text was updated successfully, but these errors were encountered: