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 7877655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:26:08+00:00 2026-06-03T03:26:08+00:00

The built in android AlertDialog.Builder has maximum three button options(positive,negative,neutral) and they are aligned

  • 0

The built in android AlertDialog.Builder has maximum three button options(positive,negative,neutral) and they are aligned horizontally. I want to add more buttons to it, and set the orientation Vertically.

How can I do it ?

Any idea will be appreciated. Thanks in advance.

  • 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-06-03T03:26:09+00:00Added an answer on June 3, 2026 at 3:26 am

    Just create your customise Dialog.

    Dialog dialog = new Dialog(YourActivity.class);
    dialog.setContentView(R.layout.your_dialog_layout);
    dialog.setTitle("Dialog message");
    

    And now you can simple create new xml file and put there whatever you want.

    Manage the buttons:

    Button close = (Button) dialog.findViewById(R.id.close);
    close.setOnClickListener(new OnClickListener()
    {
        @Override
        public void onClick(View v) 
        {
              dialog.cancel();
        }   
    });
    

    Check on:
    http://developer.android.com/guide/topics/ui/dialogs.html

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

Sidebar

Related Questions

I working on an android app that has already been built, and i am
i have an android project which has a lot of classes I've built. i
I would like call android Music which has in built in android device/emulator.I have
I have built an android application which has a single mapview. I have a
I've built an Android app which is now on Play Market. From time to
I have Android pet-project DroidIn which utilizes HttpClient 4 (built into Android) to do
We have an Android app built with Mono for Android, and now we have
Is there a built in mechanism for server push on Android? What I want
Sending Email in Android using JavaMail API without using the default/built-in app I'm trying
I have a simple Android application that uses a JAR I have built. When

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.