Hi,

The alert dialog is displaying the full sentence with
setMessage(message), however, on doing this the image icon (setIcon)
is getting disappear.

The code is as follows:
case DIALOG_YES_NO_MESSAGE:
            return new AlertDialog.Builder(MyActivity.this)
                .setIcon(R.drawable.hh)
                .setTitle(R.string.hello2)
                .setPositiveButton(R.string.alert_dialog_ok, new
DialogInterface.OnClickListener() {
                    public void onClick(DialogInterface dialog, int
whichButton) {
                        
                    }
                }).create();

SO HOW DO I GET BACK MY IMAGE ON THE ALERT DIALOG??

Thanks in advance.

*****************************************************************************************
On 3/27/09, tauntz <[email protected]> wrote:
>
> If you are actually using your dialog title for the title and it won't
> fit, then I suggest you file a bug report
> (http://code.google.com/p/android/issues/ ) since for me this is a bug
> (eg dialog titles can be only 2 lines.. really - that's a problem in
> some languages where common words are way longer than in english). If
> enough people have this issue that they can't use the dialog title for
> titles anymore, then this might be changed in a future release.
>
> If you are using it for showing general messages, then don't use the
> title for this, use setMessage(message) (in AlertDialog.Builder or
> AlertDialog).
>
>
> Tauno
>
>
>
>
> On Fri, Mar 27, 2009 at 2:52 PM, Sahil Arora <[email protected]> wrote:
>> Yes, i m using dialog titles. So going ahead do i need to replace my alert
>> dialog with something else?? What is the suitable replacement u
>> recommend??
>> Thanks.
>>
>>
>> On Fri, Mar 27, 2009 at 5:41 AM, tauntz <[email protected]> wrote:
>>>
>>> Are you using dialog titles?
>>>
>>> Somebody from the Android team decided that dialog titles can't be
>>> longer than 2 lines anymore. That means they can not be longer than 2
>>> words in some cases/languages. And no, nobody has explained the
>>> reasoning behind this move (other than - why are you using so long
>>> titles? don't use them!). It's also not documented at
>>> http://d.android.com/sdk/android-1.1.html why changes like this are
>>> not listed? Ask someone who knows :)
>>>
>>> Tauno
>>>
>>> On Fri, Mar 27, 2009 at 1:54 PM, Zhubham <[email protected]> wrote:
>>> >
>>> > Hi all,
>>> >
>>> > Alert dialogs which were properly displaying the full text (around 15
>>> > words) in SDK-1.0 , are trimming down the text to around 5 words in
>>> > SDK-1.1.
>>> >
>>> > eg.
>>> >
>>> > SDK1.0 = "Welcome. This is an android based application. SDK used is
>>> > 1.1-Release 1."
>>> >
>>> > SDK1.1 = " Welcome. This is an android based app..."
>>> >
>>> > Can someone help me with this??
>>> >
>>> > Thanks in advance.
>>> >
>>> > Regards,
>>> > Zhubham.
>>> > >
>>> >
>>>
>>>
>>
>>
>> >
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to