Drop down list text alignment

Before posting

Hello

Description

how to align ddlist text.

What MCU/Processor/Board and compiler are you using?

VS Simulator

What LVGL version are you using?

7.10.0

What do you want to achieve?

needs to align text to ddlist center

lv_dropdown_set_options(ui.ddlist_key_type, ("آبی\nقرمز\nسبز\nسپید\nخاکستری\nسیاه"));

11
needs to display this:
12

Text centering on dropdowns is dependent on no arrow being applied. Unfortunately, if you want the arrow, there is no way to do it in LVGL right now.

2 Likes

Thank’s a lot, i will try space’s.