Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6678817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:17:14+00:00 2026-05-26T04:17:14+00:00

hy ! i am using dialog im my option . i want four button

  • 0

hy ! i am using dialog im my option . i want four button in that dialog box . i have added three buttons one is
myDialog.setPositiveButton(“Delete”, new DialogInterface.OnClickListener()
2nd is
myDialog.setNegativeButton(“Cancel”, new DialogInterface.OnClickListener()
and the 3rd one is myDialog.setNeutralButton(“Add”, new DialogInterface.OnClickListener() but im unable to add 4th one as i tried one more setPositiveButton but its showing only one .how i can add 4th one plz give me hint.

thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:17:14+00:00Added an answer on May 26, 2026 at 4:17 am

    If you just want to use a notmal dialog something like this should work

    Dialog settingsDialog = new Dialog(this); 
    settingsDialog.getWindow().requestFeature(Window.FEATURE_NO_TITLE); 
    settingsDialog.setContentView(getLayoutInflater().inflate(R.layout.button_layout 
            , null)); 
    settingsDialog.show(); 
    

    button_layout.xml

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
        android:layout_width="wrap_content" android:layout_height="wrap_content" 
        android:orientation="vertical"> 
        <Button android:layout_width="wrap_content" android:layout_height="wrap_content" 
            android:text="OK" android:onClick="dismissListener"/>
        <Button android:layout_width="wrap_content" android:layout_height="wrap_content" 
            android:text="OK" android:onClick="dismissListener"/>
        <Button android:layout_width="wrap_content" android:layout_height="wrap_content" 
            android:text="OK" android:onClick="dismissListener"/> 
        <Button android:layout_width="wrap_content" android:layout_height="wrap_content" 
            android:text="OK" android:onClick="dismissListener"/> 
    </LinearLayout> 
    

    You can create the layout according to your requirement.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to open a dialog box that gives me two option. 1- Choose
I want to display font dialog box in my web application(asp.net). Im using the
I am using AndEngine for my game. In that I want to give option
I am using the jQuery dialog widget with the modal option over a wordpress
I created a page that has a JQuery based dialog using the standard JQuery
I have a dialog using JFileChooser. When I save a file by FileOutputStream ,
I am using a jqGrid that has allot of columns to it. I added
I am using jQuery UI dialog for modal popups. I have some iframes in
I want to show a dialog to the user that says this is going
I don't want to have the dialog centered on the screen so I'm setting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.