Comments (3)
Hi,
You can do this to modify the scroll animation:
void anim_start_event_cb(lv_event_t * e)
{
lv_anim_t * a = lv_event_get_param(e);
if(a) a->duration = 2000;
}
...
lv_obj_t * tv = lv_tileview_create(lv_screen_active());
lv_obj_add_event_cb(tv, anim_start_event_cb, LV_EVENT_SCROLL_BEGIN, NULL);
from lvgl.
You are welcome!
I'm closing this issue.
from lvgl.
Hi,
You can do this to modify the scroll animation:
void anim_start_event_cb(lv_event_t * e) { lv_anim_t * a = lv_event_get_param(e); if(a) a->duration = 2000; } ... lv_obj_t * tv = lv_tileview_create(lv_screen_active()); lv_obj_add_event_cb(tv, anim_start_event_cb, LV_EVENT_SCROLL_BEGIN, NULL);
Hi!
Thank you!
from lvgl.
Related Issues (20)
- "Does the lv_fs_dir_open function support opening directories with Chinese paths?" HOT 1
- ESP32 SPIFFS HOT 4
- animation LV_ANIM_REPEAT_INFINITE not works? HOT 1
- Overflow focus not handled correctly on full_refresh=0 HOT 1
- FPS and Fragmentation HOT 1
- How to use evdev in v9? HOT 7
- Adding border to different sides HOT 2
- Lottile on web pages https://docs.lvgl.io/master/widgets/lottie.html ,there is no button to view the C code
- Slider only changes value when moved HOT 2
- Tiny TTF lib: lv_tiny_ttf_set_size() should be removed or clear the cache HOT 13
- Input device driver callback is not working HOT 1
- X11 driver not correctly working (or I am doing it wrong) HOT 3
- Funky code in the indev pointer driver for handling rotation HOT 7
- Online Font Converter fonts not displaying correctly HOT 14
- simple container of radius one shows mixed color HOT 1
- Can lvgl support copying and pasting text using the mouse on Windows? HOT 1
- Possible bug in font-converter (or rendering text) HOT 5
- Demos widget 'Monthly Target' crashes on Elecrow ESP32 S3 Terminal HOT 3
- Tabview scrolling issue HOT 4
- The calendar component date in v8.3 version can only be displayed up to 2023. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lvgl.