你好,我正在使用Harism Library实现页面翻页效果(https://github.com/harism/android_page_curl)。这个效果已经可以正常工作了,但是我的页面背景有一些透明的部分却显示成黑色。我已经尝试了在GitHub论坛中提到的解决方案(https://github.com/harism/android_page_curl/issues/25),它虽然有效,但实现后翻页效果就失效了。你也可以在那里查看我的问题。附上屏幕截图
谢谢!
你好,我正在使用Harism Library实现页面翻页效果(https://github.com/harism/android_page_curl)。这个效果已经可以正常工作了,但是我的页面背景有一些透明的部分却显示成黑色。我已经尝试了在GitHub论坛中提到的解决方案(https://github.com/harism/android_page_curl/issues/25),它虽然有效,但实现后翻页效果就失效了。你也可以在那里查看我的问题。附上屏幕截图
谢谢!
Comments these lines in the activity
r.left += border;
r.right -= border;
r.top += border;
r.bottom -= border;
r.left += ((r.width() - imageWidth) / 2) - border;
r.right = r.left + imageWidth + border + border;
r.top += ((r.height() - imageHeight) / 2) - border;
r.bottom = r.top + imageHeight + border + border;
replace this function in the CurlView Activity
public void setMargins(float left, float top, float right, float bottom) {
mRenderer.setMargins(left, top, right, bottom);
}