Reputation: 11649
Sorry i have seen lots of this topic questions like this in Stackoverflow, but none of them has helped me yet.
Here is my manifest.xml
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="18" />
and here is the style xml
code
<style name="Widget.PreferenceFrameLayout">
<item name="android:borderTop">0dip</item>
<item name="android:borderBottom">0dip</item>
<item name="android:borderLeft">0dip</item>
<item name="android:borderRight">0dip</item>
</style>
The errors are:
error: Error retrieving parent for item: No resource found that matches the given name 'Widget'.
Thanks in advance.
Upvotes: 0
Views: 570
Reputation: 133560
I don't think the style is public. So its not possible to customize
Try
<style name="@android:style/Widget.PreferenceFrameLayout">
<item name="android:borderTop">0dip</item>
<item name="android:borderBottom">0dip</item>
<item name="android:borderLeft">0dip</item>
<item name="android:borderRight">0dip</item>
</style>
You need to reference the styles in the android framework
And do check this
Upvotes: 1
Reputation: 9700
May be you don't have parent style name Widget
. If you don't have then add a simple style named Widget
as in the style resource
<style name="Widget"></style>
then your styles.xml
would be look like as
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Widget"></style>
<style name="Widget.PreferenceFrameLayout">
<item name="android:borderTop">0dip</item>
<item name="android:borderBottom">0dip</item>
<item name="android:borderLeft">0dip</item>
<item name="android:borderRight">0dip</item>
</style>
</resources>
Upvotes: 1