在DepthPageTransformer代码中添加如下粗体的代码
}else if(position <=1) {// (0,1]
// Fade the page out.
//页面进入时,使能view
view.setVisibility(View.VISIBLE);
view.setAlpha(1- position);
// Counteract the default slide transition
view.setTranslationX(pageWidth * -position);
// Scale the page down (between MIN_SCALE and 1)
floatscaleFactor =MIN_SCALE
+ (1-MIN_SCALE) * (1- Math.abs(position));
view.setScaleX(scaleFactor);
view.setScaleY(scaleFactor);