You can use C to develop HMI in android without java android-api , and can run app in cmdline directly. ideally situated for bsp and mcu engineers to develop HMI in android,who familiarize with lvgl
Now support the following feature:
- support input dev such as touch-screen , can drag lvgl-app-window position in android-disp1.
- support alpha-channel,means lvgl app can display over or under other android-app and blend to display
- remove hardware-accelerate code to make this project simplest and more generic to port
Based on lvgl8.0.0 ,you can upgrade by yourself
-
Compile liblvgl.a(or get liblvgl.a from me ,you can skip this step),need cmake,recommend cmake-3.21.1
cd /external/lvgl/lvgl/build
source /opt/cmake-3.21.1/env.sh
cmake -DCMAKE_TOOLCHAIN_FILE=../cross_compile.cmake ../
make -j16
Note you need modify cross_compile.cmake according to your ndk-toolschain
- Compile demo-app by android-mk/mmm ,we support two demo to show you,how to use lvgl-api in android
mmm ./external/lvgl/ -j16
- Change input dev node according to your platform,just modify evdev.cpp
- Change demo1 and demo2 to compile,just modify test.cpp
Welcome to use this project in your product ,such as factory-mode-hmi,selftest-hmi by bsp-driver , fastcamera-hmi