我可以更改 android 中可滑动标签的位置吗?

Can I change the position of swipeable tabs in android?

我是 android 的新手,所以请建议我如何执行以下操作。我需要一个选项卡视图上方的文本框,我需要为其定位选项卡视图。在网上学习了一些之后,我使用了 ViewPager。任何人都可以建议我得到我需要的东西吗? 我在 activity.

上附上了我希望创建的图像

https://drive.google.com/open?id=0B4YOVOcFR_ChVzVoekJQbjZud3c

我认为您可以同时使用搜索视图、表格布局和视图分页器

<RelativeLayout 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"
tools:context=".SearchViewActivity" >

<SearchView
    android:id="@+id/searchView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true" >
</SearchView>


<android.support.design.widget.TabLayout
        android:id="@+id/tabs"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

<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" />
</RelativeLayout>

你可以看看这些链接

https://github.com/chrisbanes/cheesesquare/blob/master/app/src/main/res/layout/include_list_viewpager.xml

https://looksok.wordpress.com/2013/06/15/android-searchview-tutorial-edittext-with-phone-contacts-search-and-autosuggestion/