5

그래서 내 응용 프로그램에서 FragmentActivity와 함께 SlidingMenu 라이브러리를 사용합니다.조각 (GMap)과 함께 사용할 때 SlidingMenu의 빈 화면

레이아웃에는 Google지도가 있고 왼쪽에는 일부 콘텐츠가있는 메뉴가 있습니다. 내가보기 위해 메뉴를 당길 때, 슬라이딩 메뉴 내용을 덮는 큰 검은 색 사각형이 있습니다. 한 번 클릭하면 사라집니다.

아무에게도 이것에 대해 말할 수 있습니까? enter image description here

답변

1

나는 android 2.3.7에서 같은 문제가 있었지만 3.x 이후 버전에서는 그렇지 않았다. 보기를 회전 한 후에 메뉴가 잘 렌더링됩니다.

나는에서 사용자 정의 TransparentSupportMapFragment를 사용하여 해결책을 발견 : Android MapView With Sliding Menu Obscures Menu

1

조각 블랙 스크린 문제

<FrameLayout 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" > 

    <android.support.v4.view.ViewPager 
     android:id="@+id/fragment_container" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" > 
    </android.support.v4.view.ViewPager> 

    <!-- hack to fix ugly black artefact with maps v2 --> 
    <FrameLayout 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:background="@android:color/transparent" /> 

</FrameLayout> 
0

이 질문이 너무 오래 알고 있지만 내가 우연히 여기 와서 볼 수 있기 때문에 더 accpeted 없다 대답은 내가 대답 할 것입니다. 누군가 언젠가 도움이되기를 바랍니다.

내 솔루션은 귀하의 "Shopradar"레이아웃 위에 투명한 배경을 가진 가벼운 레이아웃 (약 1dp)을 추가합니다. 이것은 나를 위해 일했다, 그것은 당신을 위해 일하기를 바란다;)