Hi LVGL,I would like to know how to create a horizontal roller,and the direction of the text and the roller are not the same.If it can be achieved, please let me know.Thanks!
What MCU/Processor/Board and compiler are you using?
PC simulator
What LVGL version are you using?
v7.0.1
What do you want to achieve?
create a horizontal roller.
What have you tried so far?
N/A
Code to reproduce
N/A
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.
I still have some questions.
If I want to implement the horizontal roller and roller selected font(set the selected font and background font to be different),how long does it take.
If you think it will take a long time,I’ll notify the designer to modify the UI.Because the project is in a hurry.
Hope to receive your suggestions. Thanks.
Unfortunately, I don’t know if I can give you an accurate time estimate. If you’re looking to do this quickly, I’d suggest modifying the UI to use an existing widget instead.
How would it be different from a scrollbale list with snapping to the center?
If there are many options, it may save more memory.
2.How should we handle options with differenet width?
You are correct. Dealing with the width of options is indeed a challenge. Generally speaking, this horizontal scroll wheel is used for relatively short numbers or text. How to calculate its length to provide a display area for it.
This horizontal scroll wheel is just my idea, I don’t know if anyone else needs it