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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:04:47+00:00 2026-05-15T14:04:47+00:00

I need more room in a single AlertDialog and when I set .title to

  • 0

I need more room in a single AlertDialog and when I set .title to null it doesn’t show a title but it also doesn’t add any space to the AlertDialog. The dialog just starts that much lower on the screen. Not using setPosativeButton has the desired effect but I do want the close button. How can I set the AlertDialog so I can show my long Message starting at the top of the screen?

  • 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-15T14:04:48+00:00Added an answer on May 15, 2026 at 2:04 pm

    for the title and the text , .. in fact, I assumed that you want to create something like “about” menu.

    public void ChooseAbout() {
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        builder.setMessage(
                "First time here? Check out the FAQ!").setTitle("Hi!");
    
        builder.show();
    }
    

    you can use the .setPositiveButton to finish your activity and .setNegaiveButton to cancel yours.

    .setPositiveButton("Yes", new DialogInterface.OnClickListener() {
               public void onClick(DialogInterface dialog, int id) {
                    MyActivity.this.finish();
               }
           })
           .setNegativeButton("No", new DialogInterface.OnClickListener() {
               public void onClick(DialogInterface dialog, int id) {
                    dialog.cancel();
               }
           })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The question from title doesn't need more details.
Morning again..., Sorry to bother everyone but I need more help... I haven't done
I've been developing GPL'd software for years, but now I need a more restrictive
This code works properly in Firefox but not in Chrome, If you need more
I have a booking system in which I need to select any available room
I need more than the default diff! I have recently purchased Beyond Compare and
I'm working on a project were we need more performance. Over time we've continued
I am learning JPA and have one question: In which situations we need more
(Thanks in advance! Please let me know if you need more info. Sample code
I need some more help with another XML query. Below is an example of

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.