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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:55:47+00:00 2026-06-01T02:55:47+00:00

Often i like default android style defined for some widget. Often i like to

  • 0

Often i like default android style defined for some widget.

Often i like to just slightly modify this default style, not create my own style from a scratch.

Now, i use android.R.layout.simple_spinner_dropdown_item as dropDownViewResource on my spinner adapter – like this:

adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);

I can open this layout xml file and copy its content to modify it. But the most important part of that xml file is attribute style, it looks like this: style="?android:attr/spinnerDropDownItemStyle"

Now, my question is: how do i find/view/copy this style spinnerDropDownItemStyle, so i can for example just change background color.

Thanx for your help

  • 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-01T02:55:48+00:00Added an answer on June 1, 2026 at 2:55 am

    here you can find style spinnerDropDownItemStyle:

    https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/themes.xml

    But, if you looking for change background of Spinner, you’ll need to search for 9 patch images:

    https://developer.android.com/studio/write/draw9patch.html

    And here a good example:

    http://www.gersic.com/blog.php?id=57

    Ty

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

Sidebar

Related Questions

I often like to create backups when testing the software I work on, and
In Django models/forms the choices for a combobox often look like this: food_choices =
I often see things like this in rails views: <% form_tag some_path do -%>
More often than I like when designers edit some of our sites' pages, they
We'd like to override DataGridView's default behavior when using a mouse wheel with this
Very often I need to create a new object via a default constructor. E.G.
I'm currently working on some quite old C++ code and often find things like
By convention classes are often named like nouns, methods like verbs and interfaces like
I often hear things like Can we load our employee info using LDAP? Yet,
I often see code like int hashCode(){ return a^b; } Why XOR?

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.