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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:22:02+00:00 2026-06-05T18:22:02+00:00

I created an app and have been testing it against targetSdk 14. The spinner

  • 0

I created an app and have been testing it against targetSdk 14. The spinner is hardly visible. I tried it out on my buddy’s phone, the same. Is that what the default spinner look like? It is not good. The same goes for edittext also.
Any opinions?

enter image description here

See that small triangle on the right side? That is the only thing indicating there is an object there.

enter image description here

This is a photo about how the button looks like on 4.0.

  • 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-05T18:22:04+00:00Added an answer on June 5, 2026 at 6:22 pm

    Yes, that is the default 4.0 spinner. I am accepting my own answer as I am providing a solution.
    It is not disabled, just looks invisible. Though I set it enabled that made it better (for others: setEnabled command only exists in the java code, in xml it does not)). Then I adapted a custom spinner to make the text visible, as there is no textcolor for spinner.

    I put the spinner items in the arrays.xml in the values folder:

    <resources>
        <string-array name="duration">
            <item>Top 5 duration of outgoing calls</item>
            <item>Top 5 duration of incoming calls</item>
            <item>Top 5 duration of all calls</item>
        </string-array>
    </resources>
    

    Created a spinner.xml as the layout of the spinner text:

    <?xml version="1.0" encoding="utf-8"?>
    <TextView android:id="@+id/spinnerText" 
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" 
        android:layout_centerHorizontal="true"
        android:textColor="#000000" 
        android:textSize="16dp" 
        xmlns:android="http://schemas.android.com/apk/res/android"/>
    

    Then I set these to the adapter:

    ArrayAdapter<CharSequence> adapter_spinner = ArrayAdapter.createFromResource(ChartsDuration.this, R.array.duration, R.layout.spinner);
            adapter_spinner.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    

    As you see on the photo, the button text is white on 4.0 which is bad. Solution was easy to set text color to black, even though it is black default on sdk < 11.

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

Sidebar

Related Questions

I have created an app. Works great, but I want some same functionality as
I have been using Selenium a lot lately (testing an ExtJs app) and while
I have been working on test framework, which creates a new app domain to
I have been researching how to create a hybrid winform and CLI app... I
I have created an app in android and it requires some data to be
I have created a app on ITunes connect and it was Pending upload, I
I have created an app in which I have used SPenSdk libraries, My app
I have created an app in which I had use SPenSDK to create image
I have successfully created an app that reads from a bundled .plist file and
I have created an App Widget for Android 1.5. It uses a TextView 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.