Searched refs:onScreen (Results 1 – 2 of 2) sorted by relevance
523 if (onScreen() == 0) { in updateDrawerState()525 } else if (onScreen() == 1) { in updateDrawerState()578 if (slideOffset == onScreen()) { in setDrawerViewOffset()583 lp.onScreen = slideOffset; in setDrawerViewOffset()587 private float onScreen() { in onScreen() method in CarDrawerLayout588 return ((LayoutParams) findDrawerView().getLayoutParams()).onScreen; in onScreen()732 int onScreen = (int) (drawerView.getWidth() * drawerLp.onScreen); in onLayout() local735 offset = onScreen - drawerView.getWidth(); in onLayout()737 offset = width - onScreen; in onLayout()856 (int) (baseAlpha * Math.max(0, Math.min(1, onScreen())) * MAX_SCRIM_ALPHA) : 0; in drawChild()[all …]
113 float onScreen = 1f; in drawChild() local115 onScreen = ((float) (getBottom() - child.getTop())) / (float) child.getHeight(); in drawChild()117 onScreen = ((float) (child.getBottom() - getTop())) / (float) child.getHeight(); in drawChild()119 float alpha = 1 - (1 - onScreen) * (1 - onScreen); in drawChild()