Q:

Android alert dialog not styled properly on Lollipop

I have tried everything to get this working and cannot figure it out.
I am trying to use an alert dialog im my app. It works fine on KitKat but not on Lollipop. 
I have even tried using many material dialogs on GitHub and again they work on Kitkat but not on Lollipop. 
I am testing on my Nexus 5 with stock nexus factory image.
KITKAT WITH GITHUB MATERIAL DIALOG

KITKAT WITH STOCK ALERT DIALOG

LOLLIPOP WITH GITHUB MATERIAL DIALOG

LOLLIPOP WITH STOCK ALERT DIALOG

Also this is the library on github installed on the same device its not working on. So its something about my app that is causing this. what could it be

A:

android:fitsSystemWindows="true" was the culprit.
I had that declared in my styles.xml.
Removed it from styles.xml and placed in my layout and it working now.

