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
如图,如果我已经下载了第2个魔表,这时候它右下角的下载icon图标会消失。我们需要根据此来判断是否成功下载。
从WEditor中可以看到resourceId="com.kwai.videoeditor:id/afz"这个第2个父节点下面的子节点resourceId="com.kwai.videoeditor:id/c3t"已经不存在了。
但是当我们去判断它存不存在时,则返回了True结果,如图:
print(d(resourceId="com.kwai.videoeditor:id/afz").count) print(d(resourceId="com.kwai.videoeditor:id/c3t").count) print(d(resourceId="com.kwai.videoeditor:id/afz", instance=0).child(resourceId="com.kwai.videoeditor:id/c3t").exists) print(d(resourceId="com.kwai.videoeditor:id/afz", instance=1).child(resourceId="com.kwai.videoeditor:id/c3t").exists) print(d(resourceId="com.kwai.videoeditor:id/afz", instance=2).child(resourceId="com.kwai.videoeditor:id/c3t").exists) print(d(resourceId="com.kwai.videoeditor:id/afz", instance=3).child(resourceId="com.kwai.videoeditor:id/c3t").exists) print("-------") print(d(resourceId="com.kwai.videoeditor:id/c3t", `instance=1).exists)` 返回结果: 3 True True True True ------- True
The text was updated successfully, but these errors were encountered:
No branches or pull requests
如图,如果我已经下载了第2个魔表,这时候它右下角的下载icon图标会消失。我们需要根据此来判断是否成功下载。
从WEditor中可以看到resourceId="com.kwai.videoeditor:id/afz"这个第2个父节点下面的子节点resourceId="com.kwai.videoeditor:id/c3t"已经不存在了。
但是当我们去判断它存不存在时,则返回了True结果,如图:
The text was updated successfully, but these errors were encountered: