Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

LVGL-based user interface switching method and device

An interface switching and interface technology, applied in the direction of user interface execution, program control device, input/output process of data processing, etc., can solve the problems of not supporting up and down sliding switching, and the LVGL system framework is not provided.

Active Publication Date: 2021-08-31
ASR MICROELECTRONICS CO LTD
View PDF7 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] The LVGL system framework currently does not provide or support sliding up and down to switch the user interface

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • LVGL-based user interface switching method and device
  • LVGL-based user interface switching method and device
  • LVGL-based user interface switching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] see figure 2 , the interface switching method based on LVGL proposed by this application includes the following steps.

[0031] Step S21: Setting up and down positions among multiple canvases, creating multiple interfaces on each canvas, and the size of each interface is equal to the size of the screen. The height of each canvas is equal to the height of the screen, and the width of each canvas is the sum of the widths of multiple interfaces. The screen is a window on the canvas, and the user can only see part of the contents of the canvas through the screen.

[0032] The number of the canvases is at least two. Preferably, the number of canvases is three. The up-and-down positional relationship between the multiple canvases means, for example, that the second canvas is above the first canvas, and the third canvas is below the first canvas.

[0033] Step S22: When a touch subject touches the touch screen of the electronic device, record the X-axis and Y-axis coordin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an interface switching method based on an LVGL. S21, the up-down position relation among the multiple canvases is set, multiple interfaces are established on each canvas, and the size of each interface is equal to that of the screen. And S22, when a touch main body touches a touch screen of the electronic equipment, recording X-axis and Y-axis coordinates of a contact position as initial positions. S23, when the touch main body always contacts with the touch screen and slides, recording X-axis and Y-axis coordinates of a contact position of the touch main body and the touch screen in real time, and judging whether the touch main body slides leftwards, rightwards, upwards or downwards; the X-axis coordinate of the canvas moves in the same direction along with the left-right sliding direction of the touch main body; switching between the canvases moves in the same direction along with the up-down sliding direction of the touch main body. And S24, when the touch main body leaves the touch screen, determining an interface finally displayed on the screen. According to the method and the device, the user interface switching through left-right sliding and up-down sliding is realized in the LVGL system framework.

Description

technical field [0001] The present application relates to a method for switching user interfaces on an electronic device. Background technique [0002] At present, there are two main GUI (graphical user interface, graphical user interface) schemes used by electronic devices using embedded systems. High-end electronic devices use the Android (Android) GUI system framework, and low-end electronic devices use miniGUI. system framework. The Android GUI system framework has a large amount of code, which cannot be stored in an electronic device with limited storage space. The functions of the miniGUI system framework are old, the picture effects are not rich enough, and the code size is not small enough. [0003] LVGL (Light and Versatile Graphics Library, lightweight general graphics library) is a new GUI system framework, which has the advantages of small code size and easy development of UI (user interface, user interface), and only uses 16MB of flash memory (flash) space Th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F3/0481G06F9/451
CPCG06F3/04812G06F9/451
Inventor 胡文黄金华于嘉
Owner ASR MICROELECTRONICS CO LTD
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More