I have an activity thats declared as Dialog(using android:theme="@android:style/Theme.Dialog"
) in my application. The activity should be declared as a Dialog and there is no exception for this.
Inside this dialog, i have a button, that triggers, DatePickerDialog and i have followed the developer's site to implement it.
My problem is, when i declare the "Dialog Activity" as just Activity, I get the datepickerdialog as intended. Below is the image when its just Activity.
But, when i declare the Activity as "Dialog Activity"(from manifest), here is what it looks like...
How can i achieve the Holo style for the datepickerdialog?
I had to use, android:theme="@android:style/Theme.Holo.Dialog"
to get it to work the way i wanted.