【发布时间】:2023-03-09 09:56:01
【问题描述】:
我正在尝试在按钮上显示 Tik 标记/Ok 标志。我看到有样式功能here 并改变了 样式,但按钮上没有任何内容。
尝试使用此代码:
/* Add a button and set a style */
button = elm_button_add(box);
elm_object_style_set(button, "circle"); // setting style here and omitting below icon codes to test.
/* Set a text to the button */
elm_object_text_set(button, "Home");
/* Add an icon and set it as a content */
icon = elm_icon_add(button);
elm_icon_standard_set(icon, "home");
elm_object_part_content_set(button, "icon", icon);
evas_object_show(button);
elm_box_pack_end(box, button);
在使用不同样式进行测试时,我没有在按钮上看到任何图标。在可穿戴设备上也没有出现带有此代码的主页图标。
如何在按钮上获取系统图标?
【问题讨论】:
标签: tizen tizen-wearable-sdk tizen-native-app