Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8912477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:12:34+00:00 2026-06-15T04:12:34+00:00

I am adding an actionbar to a test app I’m writing, and I see

  • 0

I am adding an actionbar to a test app I’m writing, and I see questions throughout stackoverflow about this, but nothing that has helped me at all. Based off of this guide:

http://android-developers.blogspot.com/2011/04/customizing-action-bar.html

I’m trying to change the select color for tabs that i’m using on my action bar. The default is that faint blue color. Just as a test I did this:

<style name="CustomTab" parent="android:style/Widget.Holo.Light.ActionBar.TabView">
    <item name="android:background">#000000</item>
</style>

That gives me a solid black tab completely, not the selector part. Can someone help better direct me here? I can’t seem to find a good example anywhere.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:12:36+00:00Added an answer on June 15, 2026 at 4:12 am

    First you have to define a selector xml file then write this code there and replace your code with this

    item name="android:background">@drawable/yourfilename</item>
    

    and the selector xml

    <?xml version="1.0" encoding="utf-8"?>
    <selector
        xmlns:android="http://schemas.android.com/apk/res/android"
    >
        <item
            android:state_pressed="true"
            android:drawable="@drawable/picture_selected" />
        <item
            android:state_focused="true"
            android:drawable="@drawable/picture_selected" />
        <item
            android:drawable="@drawable/picture_unselected" />
    </selector>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a Honeycomb app that needs a SearchView in the Actionbar, but
I have searched the numerous questions that look like this one, but haven't found
Adding Exceptional Handling is a good practise, but I have a doubt, In our
Adding the row one by one in the button click.. (i tried but its
Adding strings localization files in iPhone bundle is very simple and perfectly fine but
Adding files to .hgignore will prevent them from being tracked. But we have some
Adding this code def send_messages return if recipient_list.blank? recipient_list.each do |recipient| recipient = User.find(recipient)
When I was at Google I/O they said they were adding ActionBar to the
Everything was running fine. But after some testing through my app. It crashes and
I'm adding Internationalization to a tapestry app. Is there a standard tapestry-3 technique to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.