【发布时间】:2016-11-19 12:57:43
【问题描述】:
我正在尝试删除 ActionBar 和选项卡之间的分隔线,但我还没有成功。我已经尝试了下面的代码,我得到了如下图所示的结果
有人可以帮我吗?我怎样才能删除这一行
代码:-
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<android.support.design.widget.TabLayout
android:id="@+id/tabPatient"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabGravity="fill"
app:tabMode="fixed" />
</android.support.design.widget.AppBarLayout>
<android.support.v4.view.ViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</android.support.design.widget.CoordinatorLayout>
【问题讨论】:
-
在
appbarlayout下面的toolbar中添加您的tablayout -
请用一些代码解释一下我是android初学者
-
查看stackoverflow上关于appbarlayout的帖子