Android 2.3.3
I have searched SO for a solution, but I couldn't understand the solutions given. If someone can explain in a simple way on how to get rid of this error, I would be thankful.
I am using ActionBarSherlock in my application. My basic theme, Theme.Sherlock.Light
, works fine with all the activities. For one activity, I want my activity to look like a dialog and hence I wanted to use Theme.Sherlock.Dialog
.
Here is my manifest file's declaration.
<activity
android:name="com.xxx.xx.x.Activity"
android:theme="@style/Theme.Sherlock.Dialog" >
</activity>
But I get the following error in my XML : error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.Sherlock.Dialog').
. Why am I getting this? What should I do, to remove this?
Dialog themes in ActionBarSherlock were removed by JakeWharton over four months ago.
https://github.com/JakeWharton/ActionBarSherlock/commit/601bde214b56b8fad0b4fc5aaed5af0b531b6135
Just use @android:style/Theme.Dialog
and extend Activity
instead of SherlockActivity
. ActionBarSherlock doesn't do anything for dialogs and it will just complain if you're not using one if its themes.