2017-03-15 9 views
3

안녕하세요 페이지 컬 효과 (https://github.com/harism/android_page_curl)에 Harism 라이브러리를 사용하고 있습니다. 효과가 잘 작동하지만 내 페이지 배경에 검은 색으로 보이는 투명한 부분이 있습니다. github forum (https://github.com/harism/android_page_curl/issues/25)에서 언급 한 솔루션을 시도했지만 그 컬이 작동하지 않습니다. 거기에 내 쿼리를 확인할 수 있습니다. 첨부 된 스크린 샷을 확인할 수도 있습니다. enter image description here하리즘 페이지 말림 라이브러리를 사용하는 페이지 말림 효과, 페이지 배경이 투명 대신 검은 색 테두리로 나타납니다.

고마워요!

답변

2
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); 
    } 
+0

이미지에서 볼 수있는 것처럼 여백은 문제가되지 않습니다. 아크는 없습니다. 책과 같은 상단이 있습니다. glsurface 렌더링으로 인해 생각하는 것 이외에 투명도가 있습니다. # – Asheesh

+0

# 이것이 하리즘에 의한 영향이라고 생각합니다. –

1

CurlActivity에서 setMargin() 함수가 0인지 확인하십시오.

+0

이미 시도했지만 투명성 대신 흰색 부분이 있습니다. 어쨌든 고마워 – Asheesh

+0

다른 아이디어? – Asheesh