fixed a bug, ViewTreeObserver.removeOnGlobalLayoutListener() was introduced in API level 16, while we want to support API level 9.