使用CountDownLatch在方法中直接调用调用mCountdownLatch.wait();报java.lang.IllegalMonitorStateException: object not locked by thread before wait()错误。
把mCountdownLatch.wait()封装在方法中解决,不知是啥原因,在此做记录
public void waitInflateLayoutEnd() {
try {
mCountdownLatch.await();
} catch (InterruptedException e) {
Log.e(TAG, e.toString());
}
}