I'm developing an app, which uses some alertDialogs at certain times. my question is as follows, I would like to leave the subject of these alerts according to the Android version of the smartphone that will be run the app, ie, it "pick up" the definitions of customizations already from the android and transmit to the alert. I did not want to change through XML and leave a pattern, I want the pattern to be according to the version of the android on which the app is running. In this case, I am testing through a Moto X with Android 4.4.2 that has its black theme with blue, but alertDialog appears white with the black letters.
Thank you to all of you!