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

Posted by Micah Hainline on Stack Overflow See other posts from Stack Overflow or by Micah Hainline
Published on 2012-07-12T20:11:13Z Indexed on 2013/06/25 22:21 UTC
Read the original article Hit count: 196

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 in version 3.0 and below the buttons normally appear as OK / Cancel and in 4.0 and above it is Cancel / OK. I want to force my application to use Cancel / OK in the simplest way possible. I have a lot of AlertDialogs in the application.

© Stack Overflow or respective owner

Related posts about android

Related posts about alertdialog