Languages

Menu
Sites
Language
How do I show numeric keyboard(like clock app) on spinner widget

Hello, 

I created number input spinner. 

The numeric keyboard show well when tap the spinner, 

but I need the numeric keyboard without enter key, like clock app spinner.

What is the way show the numeric keyboard on spinner without enter key?

 

 

 

Responses

6 Replies
Palitsyna

Hello,

as Jeongsu Kim said, try to use elm_entry_input_panel_layout_set. You can find API in Tizen IDE: Open your IDE - > Help -> Help Contents -> elm_entry_input_panel_layout_set. 

void elm_entry_input_panel_layout_set (Evas_Object * obj, Elm_Input_Panel_Layout layout ). 

This method sets the input panel layout of the entry. obj is the entry object, layout is the layout type.

Layout types you can find here: https://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__Entry.html#gabf2a52ba5bbfc9bd40f367c42b1a6619

Hope this will help you.

terry kim

I'm not talking about elm_entry.

I need how to set keyboard on elm_spinner.

I was found this code in elm_spinner.c. but I don't know how to access elm_spinner's entry.

 

EAPI Evas_Object *
elm_spinner_add(Evas_Object *parent)

.

.

"edje_object_part_swallow(wd->spinner, "elm.swallow.entry", wd->ent);"

.

.

How do I change keyboard type on elm_spinner?

 

Jeongsu Kim

I checked elm_spinner.c in tizen 2.3.1

https://review.tizen.org/git/?p=framework/uifw/elementary.git;a=blob;f=src/lib/elm_spinner.c;h=f7e2016c0b7f784db263df7147302cb59f51e52d;hb=refs/heads/tizen_2.3.1#l1046

It already set input panel layout to ELM_INPUT_PANEL_LAYOUT_NUMBERONLY but you said that it doesn't work. It's strange.

terry kim

ELM_INPUT_PANEL_LAYOUT_NUMBERONLY keypad is work very well.

But I need other number input panel. such as the clock app(preloaded).

The clock app's input panel is different from ELM_INPUT_PANEL_LAYOUT_NUMBERONLY .

and I don't know it's type. 

 

On elm_spinner....

Is it possible to set same keyboard type as the clock app?

 

terry kim

I found the clock app's keyboard type. It is ELM_INPUT_PANEL_LAYOUT_DATETIME