handler的面试题集

111 阅读1分钟
  1. handler.post(runnable)方法中的runnable运行在哪个线程上?

    运行在loop创建的线程里

  2. handler如果在子线程中创建需要做什么?

    需要调loop的pre方法和loop方法