Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>@inazaruk gave the answer well enough but since the recent updates, <code>ADT 18 and above</code>, there are some restrictions on the <code>styles</code> giving the error</p> <p><code>Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.TextView.ListSeparator'.</code></p> <p><a href="http://daniel-codes.blogspot.com.es/2011/08/new-to-android-more-style-restrictions.html">See this link for reason of the problem and the solution</a>. Since this post doesn't provide a code for understanding i am providing my code here</p> <pre><code> &lt;style name="Widget.TextView.ListSeparator" parent="@android:style/Widget.TextView"&gt; &lt;item name="android:layout_width"&gt;match_parent&lt;/item&gt; &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt; &lt;item name="android:textStyle"&gt;bold&lt;/item&gt; &lt;item name="android:textSize"&gt;14sp&lt;/item&gt; &lt;item name="android:gravity"&gt;center_vertical&lt;/item&gt; &lt;/style&gt; &lt;style name="PreferenceListHeader" parent="Widget.TextView.ListSeparator"&gt; &lt;item name="android:textColor"&gt;#000000&lt;/item&gt; &lt;item name="android:textStyle"&gt;bold&lt;/item&gt; &lt;item name="android:textSize"&gt;18sp&lt;/item&gt; &lt;item name="android:background"&gt;#cccccc&lt;/item&gt; &lt;item name="android:paddingTop"&gt;6dp&lt;/item&gt; &lt;item name="android:paddingBottom"&gt;6dp&lt;/item&gt; &lt;item name="android:paddingLeft"&gt;12dp&lt;/item&gt; &lt;/style&gt; &lt;style name="PreferenceScreen" parent="android:Theme.NoTitleBar"&gt; &lt;item name="android:listSeparatorTextViewStyle"&gt;@style/PreferenceListHeader&lt;/item&gt; &lt;item name="android:background"&gt;#F2B1DBF3&lt;/item&gt; &lt;/style&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload