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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:25:53+00:00 2026-06-16T06:25:53+00:00

I believe I may have found a bug in the Android UI, but I’d

  • 0

I believe I may have found a bug in the Android UI, but I’d like to make sure I’m not doing something flat out wrong. Here is a simplified version of the code I’m running that’s causing the problem. This listener is set on a specific NumberPicker in my UI, and it properly disables / enables things, but if the user has changed the value of one of the other NumberPickers that it disables, it behaves a little bit oddly.

It still properly disables the input, but it fails to grey the value out, making it look like it’s still enabled. Is this intended? Am I doing something wrong?

NumberPicker.OnValueChangeListener diceChangeListener = new NumberPicker.OnValueChangeListener() {
    @Override
    public void onValueChange(NumberPicker picker, int oldVal, int newVal) {
        View parent = (View) picker.getParent();    

        if (newVal == 0) {
            ((NumberPicker) parent.findViewById(R.id.diceCountPicker1)).setEnabled(false);
        } else if (oldVal == 0) {
            ((NumberPicker) parent.findViewById(R.id.diceCountPicker1)).setEnabled(true);
        }
    }
};

Let me know if there’s a better way to do this, or if this is a legitimate bug. If it is a bug, is there a way to work around it?

Edit: Here’s the definition of diceCountPicker1 in the XML:

<NumberPicker
    android:id="@+id/diceCountPicker1"
    android:layout_width="48dp"
    android:layout_height="128dp"
    android:descendantFocusability="blocksDescendants"
    />

Edit 2:

I have tested this in emulators, and confirmed that the problem doesn’t exist before Jellybean (4.1). It works properly in ICS. That’s… annoying. But I may be able to live with it for now. I’ll leave this open for potential ways to work around the bug, but it looks to me like a real bug, and I doubt it can be fixed.

  • 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-16T06:25:54+00:00Added an answer on June 16, 2026 at 6:25 am

    Well, with no additional feedback coming in on this, I’m going to go ahead and close it out. Here’s what I know:

    This appears to be a bug introduced in Jellybean. I have tested in emulators, and the UI works as expected in ICS and earlier. For the time being, I’m just going to deal with this, and attempt to submit an official bug report.

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

Sidebar

Related Questions

EDIT: I believe i may have found the problem. I need to work on
I believe this is a fairly simple question but it is something I am
I get Lexical or Preprocessor Issue 'Group.h' file not found which I believe is
Having not worked with cartesian graphs since high school, I have actually found a
I believe that I may be missing something here, so please bear with me
It may seem to be asked several times, but I could not find answers
I'm having a real trouble to get accents right, and I believe this may
I believe this code may require more effort to comprehend than average, so I'm
I believe that the rallytagpicker is definitely a useful component. However, I do not
I believe Wordpress stores multiple entries of posts as revisions but I think thats

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.