Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/185.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android版谷歌地图V2中的自定义信息窗口问题_Android_Google Maps - Fatal编程技术网

Android版谷歌地图V2中的自定义信息窗口问题

Android版谷歌地图V2中的自定义信息窗口问题,android,google-maps,Android,Google Maps,有人知道如何删除自定义信息窗口的边缘吗 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@colo

有人知道如何删除自定义信息窗口的边缘吗

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@color/negro"
    android:orientation="horizontal" >

    <ImageView
         android:id="@+id/image_mapa"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_marginRight="10dp"
        android:adjustViewBounds="true"
        android:src="@drawable/ic_launcher" />

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" >

        <TextView
            android:id="@+id/title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Las Flores"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:textColor="@color/blanco"
            android:textStyle="bold" />

        <TextView
            android:id="@+id/snippet"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Resto bar"
            android:textColor="@color/blanco" />

        <TextView
            android:id="@+id/descuento"
            android:layout_width="100dp"
            android:layout_height="wrap_content"
            android:text="20% OFF"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:textColor="@color/verde_habitues"
            android:textStyle="bold" />

    </LinearLayout>

</LinearLayout>

这是我的信息窗口的XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@color/negro"
    android:orientation="horizontal" >

    <ImageView
         android:id="@+id/image_mapa"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_marginRight="10dp"
        android:adjustViewBounds="true"
        android:src="@drawable/ic_launcher" />

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" >

        <TextView
            android:id="@+id/title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Las Flores"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:textColor="@color/blanco"
            android:textStyle="bold" />

        <TextView
            android:id="@+id/snippet"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Resto bar"
            android:textColor="@color/blanco" />

        <TextView
            android:id="@+id/descuento"
            android:layout_width="100dp"
            android:layout_height="wrap_content"
            android:text="20% OFF"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:textColor="@color/verde_habitues"
            android:textStyle="bold" />

    </LinearLayout>

</LinearLayout>

我正在使用实现InfoWindowAdapter的Adapter


谢谢

解决方案在适配器上,而不是覆盖getInfoContents覆盖getInfoWindow


解决方案在适配器上,而不是覆盖getInfoContents覆盖getInfoWindow


在任何地方都没有空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白空白。。。请告诉我原因。这肯定解决了问题,但也使默认的“语音泡泡”消失。有没有办法去除在“语音气泡”中显示“标题”时出现的填充?您好,我有与您的回答相同的问题,它显示信息窗口,但它没有显示标记中的箭头。。。请告诉我原因。这肯定解决了问题,但也使默认的“语音泡泡”消失。在“演讲泡泡”中显示“标题”时,是否有任何方法可以去除填充物?