带有SlidingUpPanelLayout的谷歌地图显示一个奇怪的行

时间:2018-06-08 12:26:44

标签: android google-maps slider

我有一个谷歌地图和一个SlidingUpPanelLayout ,我从按钮到顶部一切都工作正常除了我在布局幻灯片上有一条线像图像显示,我圈出让我发疯的线

line circled

主要布局:

<?xml version="1.0" encoding="utf-8"?>
<fr.****.SlidingUpPanelLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:sothree="http://schemas.android.com/apk/res-auto"
android:id="@+id/sliding_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
sothree:shadowHeight="4dp"
android:divider="@null"
android:dividerHeight="0dp"
sothree:overlay="true">

 ...

  <include

     android:divider="@null"
     android:dividerHeight="0dp"
     layout="@layout/f_restaurant_info_screen" />

   </fr.****.SlidingUpPanelLayout>

包含的f_restaurant_info_screen.xml:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center_vertical"
android:clickable="true"
android:background="@color/transparent"
android:divider="@null"
android:dividerHeight="0dp"
android:id="@+id/panel_root">

    <LinearLayout
      android:layout_marginTop="30dp"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:gravity="center_vertical"
      android:orientation="vertical"
      android:clickable="true"
      android:focusable="true"`
      android:background="@color/fiche_resto_background">

   ....
  

问题是地图由我要删除的行组成

感谢您的帮助

简单地说:shadowHeight =“0dp”解决问题

1 个答案:

答案 0 :(得分:0)

更改此sothree:shadowHeight =&#34; 4dp&#34;到这个

sothree:shadowHeight =&#34; 0dp&#34;