Well the title is very clear, what is the difference between alertDialogStyle and alertDialogTheme ?
I have been looking at the documentation of Android developers but it is not very clear to me, could you explain it to me better?
<resources>
<style name="PLMS_Style" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:actionBarStyle">@style/MyToolbar</item>
<item name="android:actionBarTheme">@style/MyToolbar</item>
</style>
<style name="MyToolbar">
<item name="android:colorBackground">@color/black</item>
<item name="android:textColorPrimary">@android:color/white</item>
<item name="android:textColorPrimaryInverse">@color/primary_text_material_dark</item>
<item name="android:textColorSecondary">@android:color/white</item>
<item name="android:textColorSecondaryInverse">@color/secondary_text_material_light</item>
</style>
</resources>
In this case, what should I use, Style or Theme?
This question is interesting, a title like
"Difference between Style and Theme".
Styles and Themes is applied not only to an AlerDialog , it is applied to any type of view, TextView, EditText, Button, ImageView, etc...
In the case of Android
theme
it can be applied to all the Activities of your application.Example defining a
Theme
for AlerDialog:where
MyAlertDialogStyle
is: