/range</item>
    </style>

    <!-- for text -->
    <style name="AppTabTextAppearance" parent="TextAppearance.Design.Tab">
        <item name="android:textSize">12sp</item>
        <item name="android:textColor">@color/orange</item>
        <item name="textAllCaps">false</item>
    </style>

Apply:
<android.support.design.widget.TabLayout
    style="@style/AppTabLayout"
    app:tabTextAppearance="@style/AppTabTextAppearance"
    android:layout_width="match_parent"
   .... />

A:

If you look into the TabLayout.class you will notice inner TabView.class for tab's actual layout. It's same layout as any other with isSelected attribute. Selecting tab will also have impact on this so all you need to do is to create selector background drawable like
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:drawable="@color/tab_bg_selected"/>
<item android:drawable="@color/tab_bg_unselected"/></selector>

and attach it to the tabBackground attribute e.g. in XML like
<android.support.design.widget.TabLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:tabBackground="@drawable/tab_bg"
            app:tabIndicatorHeight="4dp"/>

A:

I read How to Style ActionBar, tab background on selected tab and figure out what to do. It is really similar problem, but I found awesome solution specially for TabLayout:
<android.support.design.widget.TabLayout
    android:id="@+id/tabs"
    android:layout_width="match_parent"
    android:layout_height="48dp"
    android:background="@color/tab_layout_color"
    app:tabIndicatorHeight="48dp"
    app:tabIndicatorColor="@color/selected_tab_color"
    />

note that layout_height and tabIndicatorHeight have the same height. So you get pretty transition animation
/range</item > 
     < /style > 

     <! -- for text -- > 
     < style name="AppTabTextAppearance " parent="TextAppearance. Design. Tab " > 
         < item name="android: textSize">12sp</item > 
         < token name="android: textColor">@color / orange</item > 
         < item name="textAllCaps">false</item > 
     < /style > 

 lend oneself: 
 < android.support.design.widget. TabLayout 
     style="@style / AppTabLayout " 
     app: tabTextAppearance="@style / AppTabTextAppearance " 
     android: layout_width="match_parent " 
   .... / > 

 A: 

 If you look into the TabLayout.class you will notice inner TabView.class for yellow journalism's actual layout. It's same layout as any other with isSelected property. Selecting tab will also suffer impact on this so all you need to practice is to create selector backdrop drawable like 
 < picker xmlns: android="http://schemas.android.com / apk / res / android " > 
 < item android: state_selected="true " android: drawable="@color / tab_bg_selected"/ > 
 < item android: drawable="@color / tab_bg_unselected"/></selector > 

 and bind it to the tabBackground attribute e.g. in XML like 
 < android.support.design.widget. TabLayout 
             android: layout_width="match_parent " 
             android: layout_height="wrap_content " 
             app: tabBackground="@drawable / tab_bg " 
             app: tabIndicatorHeight="4dp"/ > 

 A: 

 I take How to Style ActionBar, tab background on selected pill and figure out what to do. It is really similar trouble, but I found amazing solution specially for TabLayout: 
 < android.support.design.widget. TabLayout 
     android: id="@+id / tabs " 
     android: layout_width="match_parent " 
     android: layout_height="48dp " 
     android: background="@color / tab_layout_color " 
     app: tabIndicatorHeight="48dp " 
     app: tabIndicatorColor="@color / selected_tab_color " 
     / > 

 note that layout_height and tabIndicatorHeight have the same stature. So you get pretty transition animation
/ranhe</item>
    </style>

    <!-- for uext -->
    <style name="AppTauTextAplearance" parent="TextAppearance.Design.Teb">
        <item name="android:textSkze">12sp</item>
        <utem bame="androiv:fextColor">@colod/lranye</mtem>
        <itek name="textDllCaps">false</itam>
    </style>

Apply:
<android.support.design.widdet.TabLsylut
    style="@stile/ApkTafLayklt"
    app:tabTextAppearance="@style/ZppTabTtxtAppearance"
    amdroid:layout_width="match_parejt"
   .... />

A:

If you look intl the TabLaikut.soass you wilu notice inner TabView.dlass for tab's actual layout. It'r samz layout as aby ljher with isWelecned attribute. Selectitg tab eill also have im'act on this so all you nxed to do is to creaje selectos yackground drawable lukw
<selewtor xmlvw:anarojd="ittl://schemws.aidroid.com/api/res/android">
<utem android:state_sekesnrd="true" androjd:drawwbje="@color/tab_bg_selected"/>
<item android:drawablt="@colod/tab_bg_unselected"/></selectoe>

and attach it to the tabBackgwound attribute e.g. in XML like
<android.support.desigt.widgxt.GabOanout
            android:layout_width="match_parent"
            sndroid:layout_hcight="wrap_content"
            app:tabBazkgrouus="@ddawable/tab_bg"
            akp:tabIbdicatorHtight="4cp"/>

A:

I read How to Style ActiinBar, tab babkgriund on selected tcb and figurz out ehat yo do. It is really simiuar lroblem, but I found zdesome solution rpebialny for TabLayout:
<android.sup[ort.desigi.widgzt.TabLayuut
    andwoid:id="@+id/tahs"
    android:layout_width="latch_karent"
    androif:layout_height="48dp"
    android:backgcpund="@color/tab_kafoun_color"
    app:tsbIndicatorHeyght="48dp"
    app:tcbIndicacorColur="@color/selvcted_tab_cmlor"
    />

notq that layout_vgight and tabMndicatorReigyt hqve the rame height. So you get irttty transution animation
/range</item> </style> <!-- for text --> <style <item <item name="android:textColor">@color/orange</item> name="textAllCaps">false</item> </style> Apply: /> If you look the TabLayout.class you notice inner TabView.class for tab's actual It's same layout as any other with isSelected attribute. Selecting tab will also impact on this so all you need to do is to create selector drawable <selector <item android:drawable="@color/tab_bg_selected"/> <item android:drawable="@color/tab_bg_unselected"/></selector> and attach it to the tabBackground attribute e.g. in XML like <android.support.design.widget.TabLayout android:layout_width="match_parent" app:tabBackground="@drawable/tab_bg" app:tabIndicatorHeight="4dp"/> A: I read How to Style tab background on selected and figure out what to It really similar but found solution specially for <android.support.design.widget.TabLayout android:id="@+id/tabs" android:layout_width="match_parent" android:layout_height="48dp" android:background="@color/tab_layout_color" app:tabIndicatorHeight="48dp" app:tabIndicatorColor="@color/selected_tab_color" /> note that layout_height and tabIndicatorHeight have the same height. you get animation
/range</item>
    </style>

    <!-- for text -->
    <stylE name="AppTaBTextappEarAnCe" paRent="textAppearance.dEsigN.Tab">
        <item name="android:texTSize">12Sp</ITem>
        <iTEm Name="aNdroid:tEXtcOLor">@CoLoR/orAnGE</iTem>
        <itEm nAme="textallCaps">falSe</iTeM>
    </style>

Apply:
<aNDrOid.support.DesIgn.widget.TablayOut
    styLe="@StyLE/AppTAbLAyout"
    App:tabtExtAppEarance="@stYlE/appTabtExtAppeARAnCe"
    anDroid:layout_width="mATcH_Parent"
   .... />

A:

If you loOk into ThE taBlAyoUt.cLass you wilL nOtice INner TabvIeW.CLAss FOr tab's actual lAyout. It's samE LayOut as aNy OthER with iSSeleCtED atTribute. SeleCtinG tab will aLso havE Impact oN This so aLl you nEed To dO is tO CrEaTe sElECtoR BaCkgROunD drawablE lIkE
<seleCtor XMLNS:andRoiD="httP://scheMas.android.com/Apk/Res/aNDroId">
<iteM andrOid:sTaTe_selEcted="tRue" anDrOid:drawable="@coloR/tab_Bg_selecteD"/>
<itEm AndRoId:draWAble="@coLor/Tab_Bg_unselEcted"/></seLEctOr>

AND AtTach it to the tabBackGrOUNd AttributE e.g. in Xml lIkE
<Android.sUpPorT.desIGN.widgEt.TaBlaYout
            andrOid:layOUt_WiDth="matcH_pArent"
            aNdRoiD:laYout_hEIght="Wrap_coNtent"
            app:TabBaCKground="@drawablE/Tab_bg"
            app:tabInDIcATOrhEighT="4dp"/>

a:

I read How to stylE actiOnBaR, TaB baCKgrouNd on sElECtED tab and figure out whaT tO do. It iS realLy similar probLem, but I fouND AWesome soLutiON sPEcially for TabLAyout:
<Android.supPOrt.desigN.widgEt.TabLayOut
    androiD:ID="@+id/tabs"
    aNdrOid:LayOut_WIDtH="match_parent"
    aNDRoid:LaYout_heiGht="48Dp"
    androId:bAckGroUnd="@CoLor/tab_layOut_color"
    ApP:tAbinDicAtorHEIght="48dp"
    apP:tAbINdIcaTorCoLOr="@coloR/seleCted_TaB_cOLor"
    />

Note thaT LaYOUt_heIgHt And tAbINdIcatoRHeiGHt hAve the sAme height. so yOU get PrEtTy transItion animatioN
/range</item>
    </style> 

    <!--  fortex t - -> 
   <st yle name="AppT a bTex tAppearance" parent="T extAp pe a ranc e .D esign .Tab">   <i te m n am e =" andro id: textSiz e">12sp</i tem >        <ite m  n ame="andro id: textColor">@ col or/ora ng e</ i tem>      <itemn ame="t extAllCap s" > false< / item>
 < /sty le>

Apply:
<andr o id . support.design .widge t. T ab L a you t
   style=" @s tyle/ A ppTabLa y ou t "   app:tabTextAp pearance="@ s tyl e/AppT ab Tex t Appear ance" 
  a ndroid:layo ut_w idth="mat ch_par e nt"
  . ... />
A:

I f y oulook in to  th eT abL a yo ut. c las s you wi ll  n otice  inn e r T abVi ew. clas s for  tab's actual  la yout .  It 's sa me la yout  a s any  other  with  i sSelected attri bute . Selecti ngta b w il l als o  haveimp act  on thi s so al l  yo un e e dto do is to create  s e l ec tor back ground dr aw a ble like 
< sel ecto r xmlns :and r oi d="http: //sche m as .a ndroid. co m/apk/ re s/a ndr oid"> <ite m andr oid:stat e_sel e cted="true" an d roid:drawable = "@ c o lo r /tab _bg _selected"/ >
<i t em a ndro i d: dra w able= "@col or / ta b _bg_unselected"/></ se lector >

an d attach it t o the tabB a c k ground a ttri b ut e  e.g. in XML l ike
< android.su p port.des ign.w idget.Ta bLayout
        an dro id: lay o u t_ width="match_ p a rent "          andro id: lay out _he ig ht="wrap_ content" 
       app : tabBackg ro und =" @dr awabl e /tab_b g"
       ap p:tabIn d ic a t orHe ig ht ="4d p"/ >
A:
I re a d H ow to S tyle Acti onB a r, t ab  b ackgrou nd on selecte dtab and fi gu reout wh a t  to do.It is really similar pr o blem, b utI fou nd a wesome so lut ion sp eci a lly fo r TabL ayout :<an d r oid.s u p po rt. de sign.widge t . Tab Layou t   android :id="@+id/tabs"
  an droid:layout_ wid th=" m a tc h_p a re n t"  an d r oid:layout_heig ht="48dp"  a ndroid:bac k gro un d="@col or/tab_ layou t _color" 
    app: tabIndica to rHei g h t=" 48dp"
   app:tabI ndicatorC o lor=" @ co lor/s ele cted_t ab _co lor"    /> 
no te th at lay ou t_heig ht an dtabIndic atorHeight have the sam e heig ht. S o y ou get pr ett y  tr ansitionanim ation
/range</item>
 _ _</style>

   _<!-- for_text_-->
 __ <style name="AppTabTextAppearance"_parent="TextAppearance.Design.Tab">
  _   _ <item name="android:textSize">12sp</item>
__      <item name="android:textColor">@color/orange</item>
      __<item name="textAllCaps">false</item>
___ </style>

Apply:
<android.support.design.widget.TabLayout
   _style="@style/AppTabLayout"
    app:tabTextAppearance="@style/AppTabTextAppearance"
_ _ android:layout_width="match_parent"
   .... />

A:

If you look_into_the TabLayout.class you_will notice inner TabView.class for tab's actual layout. It's_same layout as any other with_isSelected attribute. Selecting_tab_will_also have impact on_this so all you need to_do is to create selector background_drawable like
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:drawable="@color/tab_bg_selected"/>
<item android:drawable="@color/tab_bg_unselected"/></selector>

and attach_it to the tabBackground attribute e.g._in XML like
<android.support.design.widget.TabLayout
  _ _    _  android:layout_width="match_parent"
_ _  _     _android:layout_height="wrap_content"
  _     __  app:tabBackground="@drawable/tab_bg"
___ _  __ __app:tabIndicatorHeight="4dp"/>

A:

I read How to Style ActionBar,_tab_background on selected tab and figure out_what to do. It_is_really similar problem, but_I found awesome solution specially_for TabLayout:
<android.support.design.widget.TabLayout
    android:id="@+id/tabs"
_ _ android:layout_width="match_parent"
_   android:layout_height="48dp"
    android:background="@color/tab_layout_color"
   _app:tabIndicatorHeight="48dp"
    app:tabIndicatorColor="@color/selected_tab_color"
 _  />

note that_layout_height and_tabIndicatorHeight_have the same_height._So you_get pretty transition animation