How can I create my own theme for alertDialog?

后端 未结 5 843
有刺的猬
有刺的猬 2021-01-16 13:21

I want to create a different theme for all of alertDialog instances. I need my own title view instead of the usual black title background. All text should have a blue color,

5条回答
  •  逝去的感伤
    2021-01-16 14:26

    I solved my problem by creating a class which extends Dialog, and I created my own functions. for example setMessage,setTitle,setPositiveButton,setNegativeButton etc.

    But am confusing on how we can replace the setAdapter() and setSingleChoice().

提交回复
热议问题