How to display my tabs verticalcenter in android -


i new android ,i displaying tabs working fine ,i want show in center of screen in android ,here below code ,i change in heghit 245dp showing not prefect output display gap in between tab , indicator how display tabs below image , how display app name in image 1 please me,thank in advance

activity_main.xml 

<android.support.design.widget.appbarlayout     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:theme="@style/themeoverlay.appcompat.dark.actionbar">      <android.support.v7.widget.toolbar         android:id="@+id/toolbar"         android:layout_width="match_parent"         android:layout_height="?attr/actionbarsize"         android:background="?attr/colorprimary"         app:layout_scrollflags="scroll|enteralways"         app:popuptheme="@style/themeoverlay.appcompat.light" />      <android.support.design.widget.tablayout         android:id="@+id/tabs"         android:layout_width="match_parent"         android:layout_height="wrap_content"         app:tabmode="fixed"         app:tabgravity="fill"/> </android.support.design.widget.appbarlayout>  <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"  /> 

enter image description here

check code find solution :
https://github.com/florent37/materialviewpager


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -