Closed LxzBUG closed 1 year ago
ViewNode.refresh()
谢谢
val chatLayout = SF.id("chat_message_list") chatLayout.node?.refresh
node是null😳
然后我再发几条信息 chatLayout.refresh后 chatLayout的child还是1 没变😳😳😳
SF.id("chat_message_list").requireFirst().refresh()
SF.id("chat_message_input").findFirst()
为什么有时候 明明在当前页面 有这个view 就是找不到呢
lifecycleScope.launch {
delay(onceDelay)
SF.id("chat_message_input").findFirst()?.let { chat_message_input->
chat_message_input.text = getHiContent()
delay(onceDelay)
Log("发送打招呼信息")
SF.id("send_btn").findFirst()?.let { btnSend->
btnSend.tryClick()
delay(onceDelay)
Log("发送成功,返回首页")
backHome()
}
}?:let {
startJob()
}
}
}
chatLayout.node.refresh()
还是
chatLayout.node.clearChildrenCache啊