Graphic user interface redrawing method, terminal device and computer readable storage medium

一种图形用户界面、终端设备的技术,应用在用户界面执行、计算、存储器系统等方向,能够解决invalidate指令重复传递等问题,达到减少遍历次数、提高绘制效率的效果

Active Publication Date: 2018-09-18
YUANYUAN (SHENZHEN) TECH TRANSFER CO LTD
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to propose a graphical user interface redrawing method, a terminal device and a computer-readable storage medium, aiming at solving the problem of how to avoid repeated delivery of invalidate instructions in traditional methods

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
  • Graphic user interface redrawing method, terminal device and computer readable storage medium
  • Graphic user interface redrawing method, terminal device and computer readable storage medium
  • Graphic user interface redrawing method, terminal device and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] refer to figure 1 As shown, the first embodiment of the present invention proposes a terminal device 2 . The terminal device 2 may be any electronic device with a graphical user interface, such as a mobile phone. The terminal device 2 includes a memory 20 , a processor 22 and a GUI redrawing program 28 .

[0038] Wherein, the memory 20 includes at least one type of readable storage medium for storing the operating system installed in the terminal device 2 and various application software, such as the program code of the graphical user interface redrawing program 28 and the like. In addition, the memory 20 can also be used to temporarily store various types of data that have been output or will be output.

[0039] The processor 22 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chips in some embodiments. The processor 22 is generally used to control the overall operation of the term...

Embodiment 2

[0051] refer to figure 2 As shown, the second embodiment of the present invention proposes a graphical user interface redrawing method, which is applied to the terminal device 2 . In this embodiment, according to different requirements, figure 2 The order of execution of the steps in the flowcharts shown may be changed, and certain steps may be omitted. The method includes the following steps:

[0052] S100. When a View has content updated, upload corresponding invalidate data to the HashMap.

[0053] Specifically, the invalidate data includes the reference of the View Group to which the View belongs and dirty region (Dirtyregion) information. In order to avoid the process of repeatedly transmitting the invalidate command in the traditional method, this embodiment does not directly transmit the invalidate command to the View Group to which it belongs when the View content needs to be updated, but sends a reference containing the View Group to which the View belongs and th...

Embodiment 3

[0071] The present invention also provides another implementation manner, which is to provide a computer-readable storage medium, the computer-readable storage medium stores a graphical user interface redrawing program, and the graphical user interface redrawing program can be processed by at least one executed by a processor, so that the at least one processor executes the steps of the above-mentioned graphical user interface redrawing method.

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 a graphic user interface redrawing method, which is applied to a terminal device. The method comprises the steps of uploading corresponding invalidate data to a HashMap when aView in a graphic user interface has content update; judging whether a View Group which the View belongs to stores invalidate data in the HashMap or not; when the invalidate data is stored, combiningthe uploaded invalidate data and the stored invalidate data, and storing combined invalidate data in the HashMap; sending a message of delaying execution of an invalidate instruction to a UI thread; when a delay time interval of the message is up, reading all the invalidate data from the HashMap and emptying the HashMap; and according to the read invalidate data, executing the invalidate instruction. Embodiments of the invention furthermore disclose the terminal device and a computer readable storage medium. Therefore, the drawing efficiency of the whole graphic user interface can be improved.

Description

technical field [0001] The present invention relates to the technical field of Graphical User Interface (GUI), in particular to a GUI redrawing method, a terminal device and a computer-readable storage medium. Background technique [0002] At present, as the mainstream mobile operating system on the market, Android uses GUI technology to present a rich and colorful interactive interface for users. GUI generally adopts the View hierarchy form to organize various UI elements. Among them, each basic UI element exists in the form of View, and multiple Views can be included in the same View Group, and the resulting View Group will continue to be combined with other Views or even View Groups to finally generate View Tree. Each View Tree has only one root node View Root. [0003] When the content of an element on the UI interface is updated, the View to which the element belongs will notify the upper layer View Group of which View's content has been updated and the area where 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/38G06F9/451
CPCG06F8/38G06F9/451G06F16/2255G06F16/2365G06F12/0808G06F12/0815G06T1/60
Inventor 叶垒
Owner YUANYUAN (SHENZHEN) TECH TRANSFER CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products