0
我是新来的机器人,所以请建议我如何做到以下几点。我需要一个标签视图上方的文本框,为此我需要定位标签视图。我在线学习了一下之后使用了ViewPager。任何人都可以提出任何建议来获得我需要的东西? 我附上了一幅我想要在活动中创建的图片。我可以在android中更改可滑动选项卡的位置吗?
https://drive.google.com/open?id=0B4YOVOcFR_ChVzVoekJQbjZud3c
我是新来的机器人,所以请建议我如何做到以下几点。我需要一个标签视图上方的文本框,为此我需要定位标签视图。我在线学习了一下之后使用了ViewPager。任何人都可以提出任何建议来获得我需要的东西? 我附上了一幅我想要在活动中创建的图片。我可以在android中更改可滑动选项卡的位置吗?
https://drive.google.com/open?id=0B4YOVOcFR_ChVzVoekJQbjZud3c
我认为你可以使用搜索视图,tablayout和查看传呼机一起
<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>
你可以看theese链接
你可以创建搜索o ñ行动吧。那是吗?http://developer.android.com/guide/topics/search/search-dialog.html – sachithkn
@ user2217535我不会保持行动栏。操作栏将被隐藏。 –