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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:11:57+00:00 2026-06-05T09:11:57+00:00

I have spinner and code android.R.layout.simple_spinner_dropdown_item . But I get weird height like this:

  • 0

I have spinner and code android.R.layout.simple_spinner_dropdown_item.
But I get weird height like this:

enter image description here

I want to have dropdown_items like they are by default but also I don’t want to have weird height on the main screen.

  • 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-05T09:11:59+00:00Added an answer on June 5, 2026 at 9:11 am

    Use the adapter.setDropDownViewResource(int resId) method to use a specific layout for the dropdown box (not the elements)

    As seen here

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

Sidebar

Related Questions

I have the current code: ArrayAdapter adapter = new ArrayAdapter(this,android.R.layout.simple_spinner_item, array_spinner); adapter.setDropDownViewResource( android.R.layout.simple_spinner_dropdown_item );
I have the following code but I get an error on this line userSpinner.setAdapter(adapter);
I have this layout with buttons A & B and a spinner under them.
I want to show a spinner in my alertDialog. I have the following code
I have a Spinner and a SimpleCursorAdapter . For odd/even rows on this spinner
Hi I have a spinner for which I would like to change its entry.
I have a problem like I had a Spinner containing the Names of all
I use this code to generate a spinner in my app: subCatAdapter = new
I have the following code populating a spinner, JSONObject jsonResponse = new JSONObject(new String(buffer));
I have a button in android which on clicking produces an alert box. But

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.