Studio Studio rendering errors while the app is running correctly
In Android Studio, I used the SeekBar from an external source. The app is working correctly, but I still get two rendering errors:
- "Could not find style 'discreteSeekBarStyle' in current theme
- "Missing Styles. Is the correct theme selected for this layout? Use the Theme combo box above the layout to select a different layout or correct theme style references."
What could be the problem?
+3
source to share
2 answers
I had the same problem. I managed to solve this problem by adding:
<item name="discreteSeekBarStyle">@style/Widget.DiscreteSeekBar</item>
to AppTheme
style (my theme) in styles.xml
.
Also, from the AnderWeb / discreteSeekBar GitHub repo:
You can also use the discreteSeekBarStyle attribute in your themes with a custom style that will apply to all DiscreteSeekBars in your app / activity / fragment / whatever.
0
source to share