I am close to sorting this out ... I will post my code when I know I got it.

There are a few threads on this topic that offer advice where an
example would be more useful (IMHO).

j

On Sat, Sep 19, 2009 at 12:11 PM, Jason Van Anden
<[email protected]> wrote:
> On Thu, Jul 23, 2009 at 6:34 PM, Dianne Hackborn <[email protected]> wrote:
>> It sounds like you are abusing toasts.  How about just showing your own
>> dialog that is set up to not get focus or be touchable?  You can use this
>> background to make it look like a toast:
>>
>> http://developer.android.com/reference/android/R.drawable.html#toast_frame
>>
>> And this animation style for the same fade effect:
>>
>> http://developer.android.com/reference/android/R.style.html#Animation_Toast
>
>
> I am trying to do this and confused about the syntax for accessing the
> toast_frame via theme xml.  Would appreciate example.
>
> Thank You,
> Jason
>
>
>>
>> On Thu, Jul 23, 2009 at 8:17 AM, Mohamed Amir <[email protected]>
>> wrote:
>>>
>>> Is there a way to make the Toast last for longer time?
>>>
>>> I have tried this code
>>>
>>>                        Toast t = new Toast(this);
>>>                        View v = View.inflate(this, R.toast_layout, null);
>>>                        t.setView(v);
>>>                        t.setDuration(Toast.LENGTH_LONG);
>>>                        t.show();
>>>                        t.show();
>>>                        t.show();
>>>
>>> By calling show() method more than once, I hoped this would give a
>>> similar effect to lasting for longer time with some flickering, but I
>>> didn't see any difference.
>>> Is there some limit to the number of times that show() method can be
>>> called on the same Toast? e.g. just once per toast instance and
>>> further calling has no effect?
>>>
>>> Any ideas to increase that duration?
>>>
>>> Thank you.
>>>
>>
>>
>>
>> --
>> Dianne Hackborn
>> Android framework engineer
>> [email protected]
>>
>> Note: please don't send private questions to me, as I don't have time to
>> provide private support, and so won't reply to such e-mails.  All such
>> questions should be posted on public forums, where I and others can see and
>> answer them.
>>
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
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