Lines Matching refs:page
77 // Set the page transformer to perform the transition animation
78 // for each page in the view.
81 public void transformPage(View page, float position) {
83 // The >= 1 is needed so that the page
84 // (page A) that transitions behind the newly visible
85 // page (page B) that comes in from the left does not
87 // (page A is still technically on screen despite being
92 page.setTranslationX(0);
93 page.setAlpha(1.f);
94 page.setScaleX(1);
95 page.setScaleY(1);
97 page.setTranslationX(-position * page.getWidth());
98 page.setAlpha(Math.max(0,1.f - position));
100 page.setScaleX(scale);
101 page.setScaleY(scale);
123 // Only check ability to page if we can't scroll in one / both directions