工具栏和选项卡之间的线条-Android 5

工具栏和选项卡之间的线条-Android 5,android,tabs,material-design,Android,Tabs,Material Design,我的工具栏和标签页之间有一条线,我不知道为什么,因为如果我的应用程序在另一台安卓4智能手机上运行。*这条线消失了 我在使用标签的工具栏上工作,我在使用SlidingTableOut和SlidingAbstrip从Google 我不知道是否有一些重要的信息要说,但如果你需要知道更多,让我知道 谢谢 编辑:这里有一张关于这个的照片 这是活动的布局: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

我的工具栏和标签页之间有一条线,我不知道为什么,因为如果我的应用程序在另一台安卓4智能手机上运行。*这条线消失了

我在使用标签的工具栏上工作,我在使用SlidingTableOut和SlidingAbstrip从Google

我不知道是否有一些重要的信息要说,但如果你需要知道更多,让我知道

谢谢

编辑:这里有一张关于这个的照片

这是活动的布局:

<LinearLayout 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"
android:orientation="vertical"
tools:context="es.alejandrolora.devhub.activitys.VideosCommentsActivity">

<include
    android:id="@+id/toolbar"
    layout="@layout/toolbar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />

<es.alejandrolora.devhub.Util.SlidingTabLayout
    android:id="@+id/tabs"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/colorPrimary"
    android:elevation="2dp" />

    <android.support.v4.view.ViewPager
        android:id="@+id/pager"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_weight="1" />


我在摩托罗拉G2上的安卓5.0.2上试用了我的应用程序,但在Nexus 5上的5.1版本中,我看不到这条线路,但我解决了这个问题

我只需删除此属性:

android:elevation="2dp"

谢谢

工具栏
滑动布局
提供相同的提升值,因为如果
工具栏
中有一些提升,它将再次显示该行

在棒棒糖中,材质设计为UI元素引入了立面,帮助用户理解每个元素的相对重要性,并将注意力集中到手头的任务上,以了解更多详细信息,请阅读以下内容:


简而言之:工具栏的高度和滑动布局应该是一样的。

发布你的布局plsOk,我一回到家(晚上),就会发布它。谢谢@Gabrielemariotti你需要看什么布局@加布里埃马里奥蒂,谢谢