How to use and style new AlertDialog from appCompat 22.1 and above

前端 未结 6 1515
北荒
北荒 2020-11-27 08:59

I am trying to migrate from default android AlertDialog to the new one included in appCompat-22.1 So far I understand you only have to import android.sup

6条回答
  •  [愿得一人]
    2020-11-27 09:51

    If you're like me you just want to modify some of the colors in AppCompat, and the only color you need to uniquely change in the dialog is the background. Then all you need to do is set a color for colorBackgroundFloating.

    Here's my basic theme that simply modifies some colors with no nested themes:

        
    

提交回复
热议问题