Searched refs:viewTreeObserver (Results 1 – 3 of 3) sorted by relevance
595 final ViewTreeObserver viewTreeObserver = toView.getViewTreeObserver(); in animateToView() local596 viewTreeObserver.addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() { in animateToView()599 if (viewTreeObserver.isAlive()) { in animateToView()600 viewTreeObserver.removeOnPreDrawListener(this); in animateToView()
429 final ViewTreeObserver viewTreeObserver = mock(ViewTreeObserver.class); in testOnGlobalLayout_shouldNotRemoveListener() local433 when(mScrollView.getViewTreeObserver()).thenReturn(viewTreeObserver); in testOnGlobalLayout_shouldNotRemoveListener()437 verify(viewTreeObserver, never()).removeOnGlobalLayoutListener(mMasterClear); in testOnGlobalLayout_shouldNotRemoveListener()
446 final ViewTreeObserver viewTreeObserver = decorView.getViewTreeObserver(); in updateOverflowButtonColor() local447 viewTreeObserver.addOnGlobalLayoutListener( in updateOverflowButtonColor()