Can I change the position of swipeable tabs in android? -


i new android please suggest how can following. need text box above tab view need position tab view. used viewpager after learning bit of online. can suggest me need? have attached image wish create on activity.

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

i think can use search view,tablayout , view pager together

<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> 

you may @ theese links

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/


Comments