Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE
워치 어플리케이션에 이미지 불러오기
안녕하세요.
네이티브로 갤럭시 워치 어플리케이션을 개발 중에 막히는 부분이 있어서 여쭤봅니다.
버튼 내에 이미지를 삽입하려는데, 버튼 내 이미지 삽입은 커녕 이미지조차 불러와지지 않습니다.
ad->btn =elm_button_add(ad->table);
ad->img=elm_button_add(ad->btn);
elm_image_file_set(ad->img, “/opt/usr/apps/org.example.forproto/res/give_me.png”, NULL);
elm_object_part_content_set(ad->btn, “give_me”, ad->img);
evas_object_size_hint_weight_set(ad->btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ad->btn,EVAS_HINT_FILL,EVAS_HINT_FILL);
elm_table_pack(ad->table, ad->btn, 3, 2, 1, 1);
evas_object_show(ad->btn);
evas_object_show(ad->img);
evas_object_event_callback_add(ad->btn, EVAS_CALLBACK_MOUSE_DOWN, clicked_btn6, ad);
elm_image_file_set(ad->img, “give_me.png”, NULL);
로도 시도해보았으나 결과는 같았습니다.
ad->img =elm_image_add(ad->table);
elm_image_file_set(ad->img, “give_me.png”, NULL);
evas_object_size_hint_weight_set(ad->img, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ad->img, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_table_pack(ad->table, ad->img, 3, 2, 1, 1);
evas_object_show(ad->img);
evas_object_event_callback_add(ad->img, EVAS_CALLBACK_MOUSE_DOWN, clicked_btn6, ad);
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio