By 병준 박
21 Jun 2017 01:43
Korean
1 Replies
하기 경로를 참고하여, Flick Handling을 시도해보았습니다.
https://developer.tizen.org/ko/development/guides/native-application/user-interface/efl/event-handling/handling-touch-gestures?langswitch=ko
다 좋은데, 초기 Flick Event 등록되는 시점이 시간이 걸리는 것 같습니다. 일정 시간이 지나고 나서야 Flick Event Callback이 들어옵니다.
작성한 코드는 하기와 같습니다. 이 초기시점을 없앨수 있는 방법 혹은, 등록이 완료되는 시점을 알수 있다면, 구현에 도움이 될 것 같습니다.
Evas_Object* pImgScroller = AddScroller
Evas_Object* pImgScrollerBox = elm_box_add(pImgScroller);
Evas_Object* pGestureLayer = elm_gesture_layer_add(pImgScrollerBox);
if(pGestureLayer)
{
elm_gesture_layer_attach(pGestureLayer, pImgScrollerBox);
elm_gesture_layer_flick_time_limit_ms_set(pGestureLayer, 1000);
elm_gesture_layer_cb_set(pGestureLayer, ELM_GESTURE_N_FLICKS, ELM_GESTURE_STATE_END, flick_end, pImgScroller);
}
Callback
static Evas_Event_Flags flick_end(void *data, void *event_info)
{
MINTLOG("[PBJ] Flick");
}
|
답변에 미리 감사드립니다!
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.
All Categories
General Support
Tizen .NET
Web Application Development
Native Application Development
SDK & IDE
--------
--------