I have a simple preference screen defined like this
@inazaruk gave the answer well enough but since the recent updates, ADT 18 and above, there are some restrictions on the styles giving the error
Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.TextView.ListSeparator'.
See this link for reason of the problem and the solution. Since this post doesn't provide a code for understanding i am providing my code here