2024-09-17 01:08 PM
Hello,
im working on MP3 player. I would like to show list of files/folders(file system) in the FAT system on SD card and open them. The length of list is dynamically based on content of SD card. What is the good approach to do this?
Thanks for the tips.
2024-09-17 03:12 PM
Hello,
Look at the implementation of one of the Audio file player/record examples that provides a folder "explorer".
For example:
Hope it helps
2024-09-18 12:55 AM - edited 2024-09-18 12:55 AM
Thanks for your reply. I meant can be done by some container with scroll bar?
Thank you
2024-09-19 01:14 AM - edited 2024-09-19 01:34 AM
Hello @Petr3 ,
That sounds like a perfect job for the scroll list widget .
As you can have thousands of music, it would be appropriate to limit the number of elements in your scroll list and to update these elements to reflect the current music to display.
I see 2 ways of doing that :
Here is a bad illustration of it:
It is important to have more elements than what is visible to allow for proper updating during the scroll, because updating the elements can only happen once the scroll is finished (as far as I know).
I hope this helps.
Regards,
2024-09-30 07:33 AM
Hello @Petr3 ,
Were you able to move forward on your issue?
Regards,