Bummer! You must be logged in to access this page.

Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Implementing Designs for Android Customizing the Action Bar Using the Action Bar Style Generator

Style won't show up on tabs! Please help

This is how my app looks right now with all the styles updated

http://rghost.net/8hJwdgjQx.view

Styles.xml :

<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">

    <style name="Theme.Ribbit" parent="@style/Theme.AppCompat.Light">
        <item name="actionBarItemBackground">@drawable/selectable_background_ribbit</item>
        <item name="popupMenuStyle">@style/PopupMenu.Ribbit</item>
        <item name="dropDownListViewStyle">@style/DropDownListView.Ribbit</item>
        <item name="actionBarTabStyle">@style/ActionBarTabStyle.Ribbit</item>
        <item name="actionDropDownStyle">@style/DropDownNav.Ribbit</item>
        <item name="actionBarStyle">@style/ActionBar.Solid.Ribbit</item>
        <item name="actionModeBackground">@drawable/cab_background_top_ribbit</item>
        <item name="actionModeSplitBackground">@drawable/cab_background_bottom_ribbit</item>
        <item name="actionModeCloseButtonStyle">@style/ActionButton.CloseMode.Ribbit</item>
    </style>
    - <style name="ActionBar.Solid.Ribbit" parent="@style/Widget.AppCompat.Light.ActionBar.Solid">
    <item name="background">@drawable/ab_solid_ribbit</item>
    <item name="backgroundStacked">@drawable/ab_stacked_solid_ribbit</item>
    <item name="backgroundSplit">@drawable/ab_bottom_solid_ribbit</item>
    <item name="progressBarStyle">@style/ProgressBar.Ribbit</item>
</style>
    - <style name="ActionBar.Transparent.Ribbit" parent="@style/Widget.AppCompat.Light.ActionBar">
    <item name="background">@drawable/ab_transparent_ribbit</item>
    <item name="progressBarStyle">@style/ProgressBar.Ribbit</item>
</style>
    - <style name="PopupMenu.Ribbit" parent="@style/Widget.AppCompat.Light.PopupMenu">
    <item name="android:popupBackground">@drawable/menu_dropdown_panel_ribbit</item>
</style>
    - <style name="DropDownListView.Ribbit" parent="@style/Widget.AppCompat.Light.ListView.DropDown">
    <item name="android:listSelector">@drawable/selectable_background_ribbit</item>
</style>
    - <style name="ActionBarTabStyle.Ribbit" parent="@style/Widget.AppCompat.Light.ActionBar.TabView">
    <item name="android:background">@drawable/tab_indicator_ab_ribbit</item>
</style>
    - <style name="DropDownNav.Ribbit" parent="@style/Widget.AppCompat.Light.Spinner.DropDown.ActionBar">
    <item name="android:background">@drawable/spinner_background_ab_ribbit</item>
    <item name="android:popupBackground">@drawable/menu_dropdown_panel_ribbit</item>
    <item name="android:dropDownSelector">@drawable/selectable_background_ribbit</item>
</style>
    - <style name="ProgressBar.Ribbit" parent="@style/Widget.AppCompat.ProgressBar.Horizontal">
    <item name="android:progressDrawable">@drawable/progress_horizontal_ribbit</item>
</style>
    - <style name="ActionButton.CloseMode.Ribbit" parent="@style/Widget.AppCompat.Light.ActionButton.CloseMode">
    <item name="android:background">@drawable/btn_cab_done_ribbit</item>
</style>
    - <!--  this style is only referenced in a Light.DarkActionBar based theme
  -->
    - <style name="Theme.Ribbit.Widget" parent="@style/Theme.AppCompat">
    <item name="popupMenuStyle">@style/PopupMenu.Ribbit</item>
    <item name="dropDownListViewStyle">@style/DropDownListView.Ribbit</item>
</style>


    <style name="AuthBackground">
        <item name="android:background">@mipmap/background_fill</item>
    </style>

    <style name="AuthBackgroundImage">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">match_parent</item>
        <item name="android:layout_alignParentTop">true</item>
        <item name="android:layout_alignParentStart">true</item>
        <item name="android:scaleType">fitStart</item>
        <item name="android:src">@mipmap/background</item>
    </style>

    <style name="AuthTitle">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_alignParentTop">true</item>
        <item name="android:layout_centerHorizontal">true</item>
        <item name="android:layout_marginTop">32dp</item>
        <item name="android:textColor">@android:color/white</item>
        <item name="android:textStyle">bold</item>
        <item name="android:textSize">60sp</item>
        <item name="android:text">@string/app_name</item>
    </style>

    <style name="AuthSubtitle" parent="AuthTitle">
        <item name="android:layout_below">@+id/title</item>
        <item name="android:layout_centerHorizontal">true</item>
        <item name="android:textSize">13sp</item>
        <item name="android:text">A Treehouse Project</item>
        <item name="android:layout_marginTop">0dp</item>
        <item name="android:layout_alignParentTop">false</item>

    </style>

    <style name="AuthLinearLayout">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:background">@android:color/white</item>
        <item name="android:layout_below">@+id/subtitle</item>
        <item name="android:orientation">vertical</item>
        <item name="android:layout_marginTop">32dp</item>
        <item name="android:layout_marginLeft">16dp</item>
        <item name="android:layout_marginRight">16dp</item>
        <item name="android:paddingBottom">10dp</item>
        <item name="android:paddingLeft">10dp</item>
        <item name="android:paddingRight">10dp</item>
        <item name="android:paddingTop">10dp</item>
    </style>

    <style name="AuthEditText">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:ems">10</item>
        <item name="android:textColorHint">#bbbbbb</item>
        <item name="android:textSize">17sp</item>
    </style>

    <style name="AuthButton">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:background">@drawable/button_custom</item>
        <item name="android:layout_marginLeft">16dp</item>
        <item name="android:layout_marginRight">16dp</item>
        <item name="android:textColor">#250054</item>
    </style>


</resources>

Manifest :

 <application
        android:name=".parse.RibbitApplication"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/Theme.Ribbit" >

Please help I have tried everything.

2 Answers

Were you able to follow the video back when we were adding tabs to the action bar or did you have to use the custom solution for android studio?

I used the PagerTabStrip. That's where I went wrong. Thanks for the reply! Figured this out a while back.

I used the PagerTabStrip as well. How do I get to work?