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

  • Home
  • SEARCH
  • 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 9234985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:55:08+00:00 2026-06-18T06:55:08+00:00

This is the Spinner Code: <com.actionbarsherlock.internal.widget.IcsSpinner android:id="@+id/mSpinner" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@color/bg_grey" /> bg_grey is the

  • 0

This is the Spinner Code:

<com.actionbarsherlock.internal.widget.IcsSpinner
    android:id="@+id/mSpinner"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@color/bg_grey" />

bg_grey is the light grey color background in the 1st image.

TextView code dropdown_text.xml:

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/mDropDown"
    android:layout_width="fill_parent"
    android:layout_height="30dp"
    android:background="@android:color/transparent"
    android:padding="2dp"
    android:textColor="@color/text_dark_grey">
</TextView>

in the Activity:

ArrayAdapter<String> ,Adapter = new ArrayAdapter<String>(mActivity.this, R.layout.dropdown_text, mArray);

InActive state of the Spinner:

enter image description here

This is what i wanted. But,

Active state of the Spinner:

enter image description here

Why is the background of the DropDown color dark grey. I want it to be light grey as in the 1st image.

Thank You

  • 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-18T06:55:09+00:00Added an answer on June 18, 2026 at 6:55 am

    Change the background of your textView to:

    <android:background="@color/bg_grey">

    That doesn’t explain why it’s dark gray, but will fix it.

    I had some similar issue with a ListView, on which the background color of the items were changing randomly. When I changed the background color of the ListView item they stayed as I wanted. Still a mistery to me.

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

Sidebar

Related Questions

http://developer.android.com/resources/tutorials/views/hello-spinner.html I'm following this ^ tutorial on making a spinner but when I get
Booking.java This is part of my spinner code. public void onItemSelected(AdapterView<?> arg0, View v,int
Why do I not see the spinner image when I run this code? However
I need to customize my android spinner. For this I created this spinner_selector.xml :
I do this in a spinner //the text is aligned to center https://i.stack.imgur.com/GE8aG.png but
I'm developing an Android application with a spinner. I have this problem: This is
This article about php form security: http://nedbatchelder.com/text/stopbots.html ... mentions a spinner as: The spinner
I'm currently trying out the google's various android examples at http://developer.android.com/guide/tutorials/views/hello-spinner.html BUT I can't
I've been checking out the spinner wheels at http://code.google.com/p/smooth-wheel/ and it's exactly what I'm
Top of my code package com.br.openeed.engtoolspro; import android.app.Activity; import android.app.AlertDialog; import android.content.Intent; import android.os.Bundle;

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.