AlertDialog - 3 buttons

Put your problem here if it does not fit any of the other categories.

AlertDialog - 3 buttons

Postby Oleg » Tue Dec 25, 2007 8:26 am

Hello!How can I build Alert diaolog with 3 buttons?
Oleg
Experienced Developer
Experienced Developer
 
Posts: 57
Joined: Wed Nov 28, 2007 1:49 pm
Location: Ukraine

Top

Postby plusminus » Wed Dec 26, 2007 10:55 pm

Hello Oleg,

the SDK itself only provides AlterDialogs with 2 Buttons, but probably extending the Dialog-Class is a good point to start. Or Build one from the scratch.
You can transform a whole Activity to a Dialog-Style with 1 line:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. this.setTheme(android.R.style.Theme_Dialog);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby Oleg » Thu Dec 27, 2007 11:06 am

Thanks! :D
Oleg
Experienced Developer
Experienced Developer
 
Posts: 57
Joined: Wed Nov 28, 2007 1:49 pm
Location: Ukraine

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 21 guests