2021-10-22 15:44:43 +02:00
|
|
|
#include "../../lv_examples.h"
|
2021-11-29 14:54:37 +01:00
|
|
|
#if LV_BUILD_EXAMPLES
|
|
|
|
#if LV_USE_RLOTTIE
|
2021-10-22 15:44:43 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Load an lottie animation from flash
|
|
|
|
*/
|
|
|
|
void lv_example_rlottie_1(void)
|
|
|
|
{
|
|
|
|
extern const uint8_t lv_example_rlottie_approve[];
|
|
|
|
lv_obj_t * lottie = lv_rlottie_create_from_raw(lv_scr_act(), 100, 100, (const void *)lv_example_rlottie_approve);
|
|
|
|
lv_obj_center(lottie);
|
|
|
|
}
|
|
|
|
|
2021-10-22 16:05:25 +02:00
|
|
|
#else
|
|
|
|
void lv_example_rlottie_1(void)
|
|
|
|
{
|
|
|
|
/*TODO
|
|
|
|
*fallback for online examples*/
|
|
|
|
|
|
|
|
lv_obj_t * label = lv_label_create(lv_scr_act());
|
|
|
|
lv_label_set_text(label, "Rlottie is not installed");
|
|
|
|
lv_obj_center(label);
|
|
|
|
}
|
|
|
|
|
2021-10-22 15:44:43 +02:00
|
|
|
#endif
|
2021-11-29 14:54:37 +01:00
|
|
|
#endif
|