언어 설정

Menu
Sites
Language
Show message that fades away like 'toast' in Android

Is there any simple way in Tizen to show a message to the user that fades away after a few seconds, something like a 'toast' in Android?

Thank you for your help.

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

4 댓글
Michał
Hi, no toast... make your own custom control by extending Panel class. class YourCustomPanel : public Tizen::Ui::Controls::Panel bool YourCustomPanel ::Initialize(const FloatRectangle &rect) { Panel::Construct(rect); return true; } Then use animations to show or hide it: ControlAnimator* controlAnim = yourCustomPanel->GetControlAnimator(); FloatAnimation floatAnimation(0.0f, 1.0f, 300, ANIMATION_INTERPOLATOR_LINEAR); controlAnim->StopAllAnimations(); controlAnim->StartUserAnimation(ANIMATION_TARGET_ALPHA, floatAnimation);
Pushpa G
Check Tizen IDE>Help>Help contents>Tizen Native App Programming > Programming Guide > Shell: Managing Phone Shell>Notifications And also Check Tizen IDE>Help>Help contents>Tizen Native App Programming > Programming Guide>Shell>Tizen::Shell::NotificationManager Class Reference Hope it helps you
Trilok kotla

 

Hi I am working on my game using cocos2dx c++,

below is the code I am using to show toast popup 

this works good but till the toast gets disappears touch doesn't work in the rest of the screen.

    Evas_Object *popup;
    Evas_Object *win = data;

    popup = elm_popup_add(win);
    elm_object_style_set(popup, "toast");
    evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, eext_popup_back_cb, NULL);
    elm_object_text_set(popup, "Toast popup text Toast popup text");
    evas_object_smart_callback_add(popup, "block,clicked", popup_block_clicked_cb, win);
    elm_popup_timeout_set(popup, 2.0);
    evas_object_smart_callback_add(popup, "timeout", popup_timeout_cb, NULL);

    evas_object_show(popup);

Zoltan Puski

Yes, I think Tizen "toast" blocks the GUI.

If you handle "block,clicked" , then you can there hide your toast. But anyway, at least the first click will be always eaten by the toast.