I’m having an issue with labels being created vertically instead of horizontal. I can create other objects just fine, such as a keyboard or button. Am I missing something here? It seems that in all the example code I’ve seen, label orientation is horizontal by default.
What MCU/Processor/Board and compiler are you using?
Texas Instruments TMS320F28335 DSP.
What do you experience?
I create the label object, set the text, and center align it. The label appears in the center of the screen as expected but the orientation is vertical.
What do you expect?
A horizontally placed label.
Code to reproduce
/*Create a screen*/ lv_obj_t * scr = lv_obj_create(NULL, NULL); lv_obj_t * label = lv_label_create(scr, NULL); lv_label_set_text(label, "HELLO"); lv_obj_align(label, NULL, LV_ALIGN_CENTER, 0, 0); lv_scr_load(scr); /*Load the screen*/
Screenshot and/or video