Stack Overflow archive
0 score

Android Failed to find style in current theme

score
0
question views
1.6K
license
CC BY-SA 3.0

I am assuming you copied your code from this StackOverflow answer. numberPickerStyle would be an attribute that is defined in your app. The code that you copied from the answer does not work. You would need to define an attribute in XML for the error to go away but that still would do nothing for you.


You can't style a NumberPicker. android:numberPickerStyle is private (see this issue).

Unfortunately, you can't style it. The styles and styling attributes for NumberPicker are not present in the public API, therefore you can't set them and change the default look. You can only select between light and dark theme. source

Originally posted on Stack Overflow. Public user contributions are licensed under Creative Commons Attribution-ShareAlike.