How can I set the order of the positive and negative buttons in AlertDialog?

后端 未结 8 1737
挽巷
挽巷 2021-02-05 06:05

Why I want to do this is another discussion entirely, but I need to figure out the best way to make all my alert dialogs have the positive button on the right side. Note that i

8条回答
  •  时光说笑
    2021-02-05 06:42

    I figured I could just set the text for the positive button to Cancel and the negative to OK but it turns out they are in alphabetical order.

提交回复
热议问题