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

  • Home
  • SEARCH
  • 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 7678479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:39:27+00:00 2026-05-31T17:39:27+00:00

The first time I noticed this was with AlertDialogs putting the entire message on

  • 0

The first time I noticed this was with AlertDialogs putting the entire message on the first line, even when I specified a new line(“\n”). On ICS it displays the correct way, but for the life of me, I couldn’t get it to work on GB.

Recently I’ve run into it again. I don’t see any reason for it working fine on ICS but not GB and below.

EXAMPLE Project

Heres an example project with a textview, alertdialog, and two standard textviews.

https://github.com/T3hh4xx0r/Text-Example

EDIT

Heres the original question I asked. Seems the problem is more than I originally noticed though.

Android AlertDialog not displaying entire setMessage on certain devices

/EDIT

Here are visual examples of what I mean.enter image description here

Even specifically setting multiple lines for the textView, the text is still one line, but with extra blank lines below.

  • 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-31T17:39:28+00:00Added an answer on May 31, 2026 at 5:39 pm

    Here is the layout that the alertdialog is using to create your view:

    <!--
        This layout file is used by the AlertDialog when displaying a list of items.
        This layout file is inflated and used as the TextView to display individual
        items.
    -->
    <TextView xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@android:id/text1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:minHeight="?android:attr/listPreferredItemHeight"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:textColor="@android:color/primary_text_light_disable_only"
        android:gravity="center_vertical"
        android:paddingLeft="14dip"
        android:paddingRight="15dip"
        android:ellipsize="marquee"
    />
    

    As you can see the ellipsize is set to marquee, so I don’t believe it was ever written with the intention to allow multilines.

    There is a bug open at the moment that ellipse dots are never shown: http://code.google.com/p/android/issues/detail?id=10554

    Therefore it is acting correctly.

    If you want it to go onto multiple lines, create your own layout file and pass that to your dialog, that way you have more control anyway.

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

Sidebar

Related Questions

I'm a new web developer (obviously). When I first noticed this issue, I thought
I'm fairly new to deploying desktop applications, so this is the first time I'm
After using the IE8 built in Developers Tools for the first time, I noticed
First time using this technique, seems that regardless what attributes I try to assign
I just installed WMware Workstation for the first time, and noticed that it included
Im using RobotLegs and Signals for my application. This is my first time using
This is not the first time I've had problems with clock times in a
I am using Entity Framework for the first time and noticed that the entities
This is the first time I've used @font-face. The font pack is from myfonts.com
I have a rather bizarre situation, and it's not the first time I this

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.