2015-02-12 98 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