0
简单是或否我认为就足够了,我知道我可以创建自己的选项卡,并使它们看起来像新的材料设计的,并有完全控制在那里的位置,但我有点希望我能达到我想要的结果使用支持库, 我已经按照教程设置了我的素材选项卡,他们需要一些非常漂亮的擦亮剂,但它们工作得很好。我可以从应用程序工具栏分离android素材选项卡吗?
除ID实在很喜欢,是一半时我的应用程序查看这 - 像
我已经尝试筑巢的意见,但至今只设法移动整个屏幕。
没有任何人有一个快速的解决或解决方法这还是这只是它是如何?
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".MainActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabMode="scrollable"
app:tabGravity="fill" />
<android.support.v4.view.ViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_main" />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:src="@drawable/plus" />
</android.support.design.widget.CoordinatorLayout>
能否请您共享您的XML /布局代码这让我可以回顾一下 – Nullpoint
,@Magnar ive在代码中加入了代码 –