2015-02-12 103 views
0

大家好我正在开发一个应用程序。我想重叠布局与地图像图像显示。我添加了framelayout,但是当我在framelayout上播放时,它会影响我的地图。我该如何解决这个问题?如何使用mapview重叠布局

在此先感谢。

PS:无论上下文。我的xml是这样的。但是我对framelayout的触摸也会影响地图。

My Main.XML;

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
tools:context=".MainActivity$PlaceholderFragment"> 

    <com.esri.android.map.MapView 
    android:id="@+id/map" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 
    </com.esri.android.map.MapView> 

    <FrameLayout 
     android:layout_width="240dp" 
     android:layout_height="400dp" 
     android:background="#fcccff" 
     > 
    </FrameLayout> 

</RelativeLayout> 

enter image description here

回答

0

内,您的框架布局设置该属性,让我知道

<FrameLayout 
     android:layout_width="240dp" 
     android:layout_height="400dp" 
     android:background="#fcccff" 
android:setClickable="true" 
     > 
    </FrameLayout> 
+0

感谢评论,它说未知属性安卓setClickable – salih 2015-02-12 08:23:58

+0

但我发现机器人:点击属性?也许这是你的答案? – salih 2015-02-12 08:26:21

+0

它是否适用于框架布局? – goonerDroid 2015-02-12 08:29:57