in the manifest I use the android: theme = "@ android: style / Theme.Dialog theme; the text is displayed in the black dialog box, I need to change the window color to white but how ?? Also I will accept answers for adding dialog boxes any tips

  • one
    To your question, you can give a lot of answers. try this style Theme.AppCompat.Light.Dialog - Shwarz Andrei
  • right now we will try))) If you are not too lazy, you can surprise me with diversity))) I have to listen to Gotto) - elik
  • Try this library here - it is more convenient to do dialogues with it than through a standard solution - github.com/afollestad/material-dialogs - JuriySPb
  • Thank you FppcomLight is not supported) and they don’t support api below 21 it will create some discomfort) need alternatives - elik
  • one
    Well, give one more elegant way) and win my heart))) - elik

1 answer 1

Попробуйте так: <style name="AppDialog" parent="@android:style/Theme.Dialog"> <!-- ... --> <item name="@android:background">@android:color/background_light</item> <item name="@android:textColor">@android:color/primary_text_light</item> </style> 
  • I don't think I have a material theme - elik