Android翻页效果,电子书(20)
case NEXT:
case LAST:
mWhere = where;
break;
default:
mWhere = KEEP;
break;
}
isBgInit = true;
isBackInit = true;
}
}
第二个view类pageView.java:
Java代码
public class PageViewP1 extends RelativeLayout {
public static final int CORNER_BOTTOM_LEFT = 0;
public static final int CORNER_BOTTOM_RIGHT = 1;
public static final int CORNER_TOP_LEFT = 2;
public static final int CORNER_TOP_RIGHT = 3;
private Path mClipPath;
private PageTurnerViewP1 mPageTurner;
private Callback mCallback;
private int mCorner;
private Drawable mBackPage;
private Drawable mPageBackground;
public PageViewP1(Context context) {
super(context);
}
public PageViewP1(Context context, AttributeSet attrs ) {
super(context, attrs );
this.mBackPage =this.getBackground();
this.mCorner = -1;
}
void setPageTurner(PageTurnerViewP1 pageTurnerViewP1) {
相关新闻>>
- 发表评论
-
- 最新评论 更多>>