使用Harism页面翻页库的页面翻页效果,页面背景出现黑色边框代替透明。

3
2个回答

1
    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);
    }

边距不是问题,正如您在图像中所看到的,顶部有一个类似书的弧形,旁边还有一些透明度,我认为这是由于glsurface渲染引起的。 - Asheesh
我认为这是#Harism的效果。 - Null Pointer Exception

0
在 CurlActivity 中检查 setMargin() 函数,将其设置为 0, 0。!

已经尝试过了,但仍然在透明部分有白色区域。无论如何还是谢谢。 - Asheesh
还有其他想法吗? - Asheesh

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接