
嗨,我正在使用Harism库进行页面卷曲效果
(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 Activitypublic voID setmargins(float left, float top, float right, float bottom) { mRenderer.setmargins(left, top, right, bottom); } 总结 以上是内存溢出为你收集整理的android-使用滚动页面卷曲库的页面卷曲效果,页面背景显示为黑色边框代替透明度.全部内容,希望文章能够帮你解决android-使用滚动页面卷曲库的页面卷曲效果,页面背景显示为黑色边框代替透明度.所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)