Tizen可访问的访问系统图标

问题描述 投票:0回答:1

我正在尝试在按钮上显示Tik标记/确定标志。我看到了样式功能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
1个回答
0
投票

该指南是移动指南。“圆圈”风格的外观是不同的。在Tizen 5.5中可穿戴。按钮的“圆圈”样式是只能使用带有透明bg的图标的按钮。根据我的发现,tizen可穿戴设备不支持标准图标。我建议将elm_image与自定义图像文件一起使用。

很抱歉没有帮助。

© www.soinside.com 2019 - 2024. All rights reserved.