언어 설정

Menu
Sites
Language
How can I use elm_theme_set API to change my application theme?

I know that throw elm_theme_set () can change the app theme, but  i   donnot know  how to use the param in elm_theme_set,  can anyone help me ? are there  an example to guide me ?

Responses

2 댓글
Alex Ashirov

Hi,

This function sets the theme search order for the given theme. For example, you can add your theme at the end of the search order using the following code:

char buf[4096];

snprintf(buf, sizeof(buf), "%s:./theme_my.edj", elm_theme_get(NULL);

elm_theme_set(NULL, buf);

As far as I understand this is some kind of equivalent for

elm_theme_extension_add(NULL, "./theme_my.edj");

but the second one is more preferable to use.

guanglu hua

Hi, thanks for your help ,  i  get it.