【问题标题】:google maps with a SlidingUpPanelLayout appear a strange line带有 SlidingUpPanelLayout 的谷歌地图出现一条奇怪的线
【发布时间】:2018-06-08 12:26:43
【问题描述】:

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

主要布局:

<?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">

   ....

问题是地图包含我要删除的线

感谢您的帮助

只需 sothree:shadowHeight="0dp" 即可解决问题

【问题讨论】:

  • 添加SlidingUpPanelLayout布局
  • 删除这个 shadowHeight 不起作用,但是当我把 sothree:shadowHeight="0dp" 它的工作,所以感谢你的帮助

标签: android google-maps slider


【解决方案1】:

把这个 sothree:shadowHeight="4dp" 改成这个

sothree:shadowHeight="0dp"

【讨论】:

    猜你喜欢
    • 2019-05-23
    • 2012-11-13
    • 1970-01-01
    • 1970-01-01
    • 2015-05-09
    • 2019-03-01
    • 1970-01-01
    • 2020-03-09
    • 1970-01-01
    相关资源
    最近更新 更多