为了账号安全,请及时绑定邮箱和手机立即绑定

android studio怎么开发react-natuve?

android studio怎么开发react-natuve?

凤凰求蛊 2018-12-14 19:15:35
android studio怎么开发react-natuve
查看完整描述

1 回答

?
月关宝盒

TA贡献1772条经验 获得超5个赞

两种方式刷新:主线程可以直接调用Invalidate()方法刷新。子线程可以直接调用postInvalidate()方法刷新。API的描述是这样的 : Invalidatethe whole view. If the view is visible, onDraw(Canvas) will be called at somepoint in the future. This must be called from a UI thread. To call from anon-UI thread, call postInvalidate().。当Invalidate()被调用的时候,View的OnDraw()就会被调用,Invalidate()必须是在UI线程中被调用,如果在新线程中更新视图的就调用postInvalidate()。

查看完整回答
反对 回复 2019-01-06
  • 1 回答
  • 0 关注
  • 563 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信