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 8360079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:21:06+00:00 2026-06-09T11:21:06+00:00

Some users of my application are experiencing a weird problem when using my application

  • 0

Some users of my application are experiencing a weird problem when using my application in landscape mode. I am using actionbarsherlock and have set the navigation mode to tabs (using ActionBar.NAVIGATION_MODE_TABS).
Some users are finding when launching the app in portrait and then rotating the device the actionbar shows a spinner list rather than the tabs (which apparently is expected behaviour). The problem is the spinner is not selectable.

    bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
    bar.addTab(bar.newTab().setText("Deals").setTabListener(this),false);
    bar.addTab(bar.newTab().setText("Vouchers").setTabListener(this),false);
    bar.addTab(bar.newTab().setText("Freebies").setTabListener(this),false);

EDIT
Just discovered it is related to my custom theme. Changing the theme to the default Sherlock.Light makes the spinner selectable. The custom theme is shown below.

<!-- Variation on the Holo Light theme that styles the Action Bar -->
<style name="DealPadTheme" parent="Theme.Sherlock.Light.ForceOverflow">
    <item name="android:selectableItemBackground">@drawable/ad_selectable_background</item>
    <item name="actionBarItemBackground">@drawable/ad_selectable_background</item>
    <item name="android:actionBarTabStyle">@style/MyActionBarTabStyle</item>
    <item name="actionBarTabStyle">@style/MyActionBarTabStyle</item>
    <item name="android:actionBarStyle">@style/Widget.ActionBar</item>
    <item name="actionBarStyle">@style/Widget.ActionBar</item>
    <item name="android:dropDownListViewStyle">@style/MyDropDownListView</item>
    <item name="dropDownListViewStyle">@style/MyDropDownListView</item>
    <item name="android:actionDropDownStyle">@style/MySpinner</item>
    <item name="actionDropDownStyle">@style/MySpinner</item>
    <item name="android:activatedBackgroundIndicator">@drawable/selectable_list_item</item>
    <item name="activatedBackgroundIndicator">@drawable/selectable_list_item</item>
    <item name="android:listSelector">@style/MyListView</item>
</style>

<style name="MyListView" parent="@android:style/Widget.ListView">
    <item name="android:listSelector">@drawable/list_arrow_selected_holo</item>
</style>

<!-- style for the tabs -->
<style name="MyActionBarTabStyle">
    <item name="android:background">@drawable/actionbar_tab_bg</item>
    <item name="android:paddingLeft">16dp</item>
    <item name="android:paddingRight">16dp</item>
    <item name="android:gravity">center_horizontal</item>
</style>

<style name="Widget.ActionBar" parent="Widget.Sherlock.Light.ActionBar">
    <item name="android:displayOptions">showHome|useLogo|showCustom</item>
    <!-- removed as not all activites need it    <item name="android:customNavigationLayout">@layout/custom_action_bar</item> -->
    <item name="android:background">@drawable/ad_tab_unselected_holo</item>
    <item name="background">@drawable/ad_tab_unselected_holo</item>
    <item name="android:titleTextStyle">@style/Widget.ActionBar.Title</item>
    <item name="titleTextStyle">@style/Widget.ActionBar.Title</item>
</style>

<style name="Widget.ActionBar.Title" parent="Widget">
    <item name="android:textSize">12sp</item>
    <item name="android:textStyle">bold</item>
    <item name="android:textColor">?android:attr/textColorPrimary</item>
</style>

<!-- style the items within the overflow menu -->
<style name="MyDropDownListView" parent="Widget.Sherlock.Light.ListView.DropDown">
    <item name="android:listSelector">@drawable/ad_selectable_background</item>
</style>

<!-- style the items within the overflow menu -->
<style name="MySpinner">
    <item name="android:background">@drawable/spinner_background</item>
</style>

  • 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-09T11:21:08+00:00Added an answer on June 9, 2026 at 11:21 am

    Wow so it turns out it was as I hadn’t stated the parent when themeing ActionDropDownStyle.

    It’s only when I created a new project was that I discovered it was related to the theme.I presumed it was an issue relating to the code or handling orientation change incorrectly.

    Doing the following sorts it:

    <!-- style the items within the overflow menu -->
    <style name="MySpinner" parent="Widget.Sherlock.Light.Spinner.DropDown.ActionBar" >
        <item name="android:background">@drawable/spinner_background</item>
    </style>
    

    The only issue now is some of the spinner items are cut off and replaced with … Although I think this is a known bug.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some users of our Swing application have reported weird artefacts appearing on the display.
I have an old visual basic 6 application when some users reported me errors
In our server/client-setup we're experiencing some weird behaviour. The client is a C/C++-application which
I have a web application that parse users uploaded csv files. Some users upload
I have a dynamic data ASP.NET application with a requirement to give some users
Is there a way could i delete my application from some users iPhone by
I'm writing an application where users enter some details into an SQLite Database. I
My application server needs to notify users about some events via email. Usually there
My new MVC3 web application allows users to store some information about themselves, and
My application should be syncronized with a ServerDB to collect some Data all users

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.