Android翻页效果—电子书(7)
dispatchDraw(
Canvas
canvas)
{
if
(
this
.mClipPath
!=
null
)
{
canvas.save
(
)
;
canvas.clipPath
(
this
.mClipPath
, Region.Op
.INTERSECT
)
;
}
super
.dispatchDraw
(
canvas)
;
if
(
this
.mClipPath
!=
null
)
canvas.restore
(
)
;
}
public
void
setCorner(
int
corner)
{
this
.mCorner
=
corner;
}
public
int
getCorner(
)
{
return
this
.mCorner
;
}
public
void
setBackPage(
Drawable backPage)
{
this
.mBackPage
=
backPage;
}
public
Drawable getBackPage(
)
{
return
this
.mBackPage
;
}
public
void
setPageBackground(
Drawable background)
{
this
.mPageBackground
=
background;
}
public
Drawable getPageBackground(
)
{
return
this
.mPageBackground
;
}
public
static
abstract
class
Callback {
public
void
onDrawBackPage(
Canvas
canvas)
{
Log.v
(
"Callback"
, "drawing back page"
)
;
}
public
void
onDrawBackground(
Canvas
canvas)
{
Log.v
(
"Callback2"
, "drawing back page"
)
;
}
相关新闻>>
- 发表评论
-
- 最新评论 更多>>