Android翻页效果—电子书(5)
来源:未知 责任编辑:责任编辑 发表时间:2013-11-17 14:39 点击:次
//
}
public int getmTimeStep(){
return mTimeStep;
}
public void setmTimeStep(int mTimeStep ){
this.mTimeStep= mTimeStep;
}
public boolean getmStepping(){
return mStepping;
}
public void setmStepping(boolean mStepping ){
this.mStepping= mStepping;
}
public void setmStepLen(int mStepLen){
this.mStepLen=mStepLen;
}
public int getmStepLen(){
return this.mStepLen;
}
public void setmMaxStep(int mMaxStep){
this.mMaxStep=mMaxStep;
}
public int getmMaxStep(){
return this.mMaxStep;
}
public void setPreStart(int where)
{
switch (where)
{
case NEXT:
case LAST:
mWhere = where;
break;
default:
mWhere = KEEP;
break;
}
isBgInit = true;
isBackInit = true;
}
}
第二个view类pageView.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)
{
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>