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
图片选择界面出来后,能监听到取消上传的动作吗
The text was updated successfully, but these errors were encountered:
这个库只有图片选择的功能。没有图片上传的功能。哪来的取消上传的动作。
Sorry, something went wrong.
这个问题已经解决了,是我没描述对. 这边功能是这样的. 安卓webview加载页面,然后页面中有上传文件的操作.上传的时候打开图片库进行选择.我用到了这个库.使用中发现当关闭选择图片后web页面没有重置上传的组件.导致没法再次点击上传. 具体处理是在onActivityResult中处理的.一般选择文件后会有一个这样的判断 if (requestCode == REQUEST_CODE_CHOOSE && resultCode == RESULT_OK) 然后在判断为true的时候处理文件选择后的逻辑,这里再加上为false逻辑处理就行了 代码大概是这样的
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == REQUEST_CODE_CHOOSE && resultCode == RESULT_OK) { //进行相关逻辑处理 }else{ uploadMessageAboveL.onReceiveValue(null);//这行代表没有选择文件,这样web页面的上传组件就可以自己重置状态了 } uploadMessageAboveL = null; }
No branches or pull requests
图片选择界面出来后,能监听到取消上传的动作吗
The text was updated successfully, but these errors were encountered: