I have change my activity to appCompat Activity.
Also i changed AlertDialog to Android.Support.V7.App.AlertDialog.
But i have lost my previous alertdialog design.
This is how it was look like.
And this is how it looks now
My theme till now was
But i was enforced to changed it cause appCompat doesn't support Holo theme.
So i change it to
How can i make alert dialog look like previous one?