优化
This commit is contained in:
@@ -121,6 +121,9 @@ class ReadView(context: Context, attrs: AttributeSet) :
|
|||||||
setRect9x()
|
setRect9x()
|
||||||
prevPage.x = -w.toFloat()
|
prevPage.x = -w.toFloat()
|
||||||
pageDelegate?.setViewSize(w, h)
|
pageDelegate?.setViewSize(w, h)
|
||||||
|
if (w > 0 && h > 0) {
|
||||||
|
upBg()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun dispatchDraw(canvas: Canvas) {
|
override fun dispatchDraw(canvas: Canvas) {
|
||||||
|
|||||||
Reference in New Issue
Block a user