Languages

Menu
Sites
Language
Keyboard text on wearable entry component is cutoff
I am creating my first tizen app, for a watch.  I have started with the SettingUI sample code, and have added a 'name' item to the genlist, which I want to push a view where I enter my name.  I will enter my name using an entry (on screen keyboard) component.
 
When I run the emulator I see the keyboard (only if in emulator v3.0 or later), but the "A short text" text is partially cutoff at the top of the screen.  The text appears to be flowing in a SQUARE shape, but it should flow in a CIRCLE shape.
 
Strangely, if I set "elm_entry_line_wrap_set(entry,ELM_WRAP_NONE)" then the text appears in the middle of the screen (behind the keyboard).
 
At the moment I add the entry component directly to the naviframe (part of the SettingsUI sample).  I suspect I have to add the keyboard to a circle, and the circle to the naviscreen.  But I can't figure out how or if that's right.  My code is below.
 
Can anyone explain how I would make the entry (keyboard) text appear properly onscreen?  Or is this an emulator bug?
 
    void _setting_name_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
    {
    appdata_s *ad = data;
    Evas_Object *naviframe = ad->naviframe;
    Elm_Object_Item *nf_it = NULL;
    
    /* Unhighlight Item */
    elm_genlist_item_selected_set((Elm_Object_Item *)event_info, EINA_FALSE);
    
    // Create a keyboard (entry) and add to naviframe
    Evas_Object *entry;
    entry = elm_entry_add(naviframe);
    elm_entry_entry_set(entry, "A short text.");
    
    // Push the entry onto the naviframe to show it
    nf_it = elm_naviframe_item_push(naviframe, _("Slider"), NULL, NULL, entry, "empty");
    
    // Set the callback of the naviframe when layout popped off
    elm_naviframe_item_pop_cb_set(nf_it, _setting_name_finished_cb, ad);
    }
Edited by: Michelle Dupuis on 18 Aug, 2019

Responses

1 Replies
Michelle Dupuis

I don't know if this is related (or the cause), but once the keyboard is onscreen, I click the BACK button once and the keyboard disappears - BUT - the text I typed stays on screen.

If I click BACK again, then I return to the genlist.

 

So...I'm I mistakenly pushing 2 different objects onto the naviframe?