I've placed a styles.xml file in res/values folder and it gives me this error.
error: Error retrieving parent for item: No resource found that matches the given name 'Widget'.
Here is my code;开发者_JAVA技巧
<resources>
<style name="Widget.SeekBar">
<item name="android:indeterminateOnly">false</item>
<item name="android:progressDrawable">@+android:drawable/bar1</item>
<item name="android:indeterminateDrawable">@+ndroid:drawable/bar2</item>
<item name="android:minHeight">5dip</item>
<item name="android:maxHeight">5dip</item>
<item name="android:thumb">@+android:drawable/scroll1</item>
<item name="android:thumbOffset">8px</item>
<item name="android:focusable">true</item>
</style>
the error occurs on the line == style name="Widget.SeekBar"
Could you help me please?
its shold be like this you need parent Widget than you can put child of it. needed first.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Widget"></style><style name="Widget.SeekBar">
<item name="android:indeterminateOnly">false</item>
<item name="android:progressDrawable">@drawable/bar1</item>
<item name="android:indeterminateDrawable">@drawable/bar2</item>
<item name="android:minHeight">5dip</item>
<item name="android:maxHeight">5dip</item>
<item name="android:thumb">@+android:drawable/scroll1</item>
<item name="android:thumbOffset">8px</item>
<item name="android:focusable">true</item>
</style>
</resources>
<item name="android:indeterminateDrawable">@+ndroid:drawable/bar2</item>
should read
<item name="android:indeterminateDrawable">@+android:drawable/bar2</item>
精彩评论