Hey there Jake and co.
First, thank you very much for this awesome library. With ABS I've been able to give my apps the awesome features of the actionbar and other features without issues on gingerbread as well as ics devices.
This issue might not be an issue at all. I remember reading a comment by you that the Theme.Sherlock.Dialog was not meant for dialogs, but I cannot find that comment with Google search.
Here is a code snippet of how I am building the alert dialog:
*******************************************
AlertDialog.Builder builder;
try {
builder = new AlertDialog.Builder(getActivity(), R.style.Theme.Sherlock.Dialog);
} catch (NoSuchMethodError e) {
Log.e(TAG, "Older SDK, using old Builder");
builder = new AlertDialog.Builder(getActivity());
}
********************************************
I am using the optional constructor for AlertDialog.Builder to call a theme of the dialog because the theme of the app itself uses Theme.Sherlock.Light.DarkActionbar as a parent, which causes the AlertDialog to be light, but I prefer the darker dialog box. Using that code, I get this wonky background:
http://imgur.com/doBg8 I know that it is an error from me using the Theme.Sherlock.Dialog style. I came up with two different methods to resolve this:
1. Use the constant "AlertDialog.THEME_HOLO_DARK" instead of "R.style.Theme.Sherlock.Dialog". This actually works pretty nicely, but I would like to know how to do it using Sherlock themes.
2. Create a theme that uses Theme.Sherlock.Dialog as a parent and setting the attribute "abdroid:windowBackground" to a transparent resource. This also works ok but it makes the dialog box smaller than it should be, because it actually puts the dialog box inside of another dialog box, like if I used Theme.Sherlock.Dialog. Example from my themes.xml:
<style name="Theme.Classic.Dialog" parent="Theme.Sherlock.Dialog">
<item name="android:windowBackground">@drawable/bg_clear</item>
</style>
If I haven't lost you, do you have any thoughts on a different approach? Is there an official style/theme I could use that comes with the Sherlock library?
Thank you again for your great contribution.
Tommy