如何去除黑色封面上的滑动菜单的顶部?封面上、菜单、黑色

2023-09-06 16:25:21 作者:好好活着

在我的应用我有一个已开发的 jfeinstein10 滑动菜单。 它的正常工作在我的应用程序;)

我有一个片段是主机图形页面中。该片段就像我的其他片段,从片段类扩展。就在这个片段,还有对当我打开滑动菜单菜单内容顶部的黑色盖/层。还有,当我在其他片段中打开菜单中没有的黑色封面。另外,我发现的东西是框的高度是完全一样相同的高度片段。

你有没有见过这个问题吗?任何意见或建议将AP preciated。

=> 更新

根据什么Selei建议我设置背景为透明。然而,不管是什么颜色,我分配(透明或其他颜色),它仍然是可见的黑:(中 这是我的code:

 < XML版本=1.0编码=UTF-8&GT?;

< com.google.android.gms.maps.MapView
    的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
    的xmlns:地图=htt​​p://schemas.android.com/apk/res-auto
    机器人:ID =@ + ID /图形页面
    机器人:layout_width =match_parent
    机器人:layout_height =match_parent
    机器人:可点击=真
    图:uiCompass =真
    机器人:后台=#00000000/>
 
铁板烧菜单封面图片

解决方案

溶液中加入图:zOrderOnTop =真正的到XML

有关详细信息,请参阅这个链接。

In my application i have a sliding menu which has been developed by jfeinstein10. It's working fine in my application ;)

I have a Fragment which is host of MapView. This fragment like my other fragments extended from Fragment class. Just in this Fragment, there is black cover/layer on top of menu contents when I open sliding menu. There is no black cover when I open menu in other fragments. Also, the thing that I found is height of box is exactly as same height as fragment.

Have you seen this problem before? any comments or suggestion would be appreciated.

=> Update

Based on what Selei suggested I set background to transparent. However, regardless of what color I'm assigning (transparent or other colors) it's still visible and black :( This is my code:

<?xml version="1.0" encoding="utf-8"?>

<com.google.android.gms.maps.MapView
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:map="http://schemas.android.com/apk/res-auto"
    android:id="@+id/mapView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:clickable="true"
    map:uiCompass="true"
    android:background="#00000000"/> 

解决方案

The solution was adding map:zOrderOnTop="true" to XML.

For more info please refer to this link.