【发布时间】: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