2024-11-30 08:27 AM - last edited on 2024-12-02 03:47 AM by SofLit
I have this ui requirement
The idea is that when the user presses the "down" button, the effect will be to go all the way down, or all the way up.
I'm using a scrollable container with a list layout to create the view, how can I do it?
2024-12-02 02:37 AM
Hello @JPabl.1 ,
The ScrollableContainer have a method "doScroll" :
https://support.touchgfx.com/docs/api/classes/classtouchgfx_1_1_scrollable_container
This seems to be what you are looking for.
However, I assume it will be a bit painful to use as you will need to know how many pixels you need to scroll.
This issue could be avoided by using another widget such as the ones inheriting for the scrollBase (scrollList and scrollWheel) : : https://support.touchgfx.com/docs/api/classes/classtouchgfx_1_1_scroll_list
It has a method animateToItem where you just have to specify the last item if you want to scroll to the end and the first item if you want to scroll to the beginning :
Regards,
2024-12-10 06:04 AM
Hello @JPabl.1 ,
Have you been able to move forward on your issue?
Regards,