How can use list event?

İ developing a settings page for my project and i was using lv_list;
but i dont know. How can give event list buttons?
I tried;

if (“Saat” == lv_list_get_btn_text(btn)) {
but didn’t get inside in if. how can i find a solution? help me please

You can’t compare strings in C like that. You have to use strcmp.

1 Like

This solutions is working;

const char * txts[6] = { “Saat” ,“Tarih”, “Bluetooth”,“Ekran”,“Hakkinda”, 0 };
if (0 == strcmp(txts[0], lv_list_get_btn_text(btn))) {
if someone dont find solution the solution is working. Thank you.