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

UI dynamic layout realization method

An implementation method and dynamic layout technology, applied in the direction of user interface execution, program control devices, etc., can solve problems such as the inability to realize dynamic UI layout

Active Publication Date: 2018-08-21
FUJIAN STAR NET COMM
View PDF9 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the existing implementation schemes have the following defects: after the terminal software is released, the UI layouts for different mobile terminals are fixed, and dynamic UI layouts cannot be realized

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
  • UI dynamic layout realization method
  • UI dynamic layout realization method
  • UI dynamic layout realization method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] Please refer to Figure 1 to Figure 3 As shown, a preferred embodiment of a method for implementing a UI dynamic layout of the present invention, the method includes the following steps:

[0040] Step S1, start to create the main interface, obtain the page data contained in the created main interface, create a page object and a page Key for each page obtained, and store the created page object and page Key into the page cache pool (pagePool ); Of course, if no page data is obtained (that is, the number of pages is 0), then the process ends;

[0041] Step S2, create a page Key array (pageKeys) for caching the page Key, and take out the page Key whose index is zero;

[0042] Step S3, detect whether the page Key taken out is in the drawn page array (drawPageKeys), if so, then directly enter step S4; if not, then create a page, and then enter step S4;

[0043] Step S4, update the current page ID (currentPageKey), and present the page; also need to update the latest use ti...

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 provides a UI dynamic layout realization method. The method comprises the following steps of: S1, obtaining page data included in a main interface, creating a page object and a page Keyfor each page, and storing the pages into a pace cache pool; S2, creating a page Key array, and extracting page Keys with zero indexes; S3, detecting whether the extracted page Keys exist in a drawn page array or not, if the detection result is positive, entering S4, and otherwise, creating a page and entering S4; S4, updating the current page ID and displaying the page; S5, detecting whether to slide the page or not, if the detection result is positive, extracting the next index from the page Key array and entering S6, and otherwise, continuing the detection; and S6, judging whether the extracted index is smaller than a page quantity or not, if the judging result is positive, obtaining a page Key corresponding to the index and entering S3, and otherwise, setting the index to be zero, obtaining the page Keys with zero indexes and entering S3. Through the method, UI control views can be managed on UI logic layers according to hierarchical relationships from pages to controls, so that UIdynamic layout is realized.

Description

technical field [0001] The invention relates to the field of smart home, in particular to a method for realizing dynamic UI layout. Background technique [0002] With the rapid development of mobile terminal technology, the terminal software of the smart home system is widely run on various mobile terminals, including Apple mobile phones, iPads, android mobile phones, magic mirrors, indoor units and other android tablets, web pages, etc. A smart home system not only needs to support multiple types of mobile terminals, but also has various resolutions and screen sizes; the smart home system also includes various terminal devices, such as lighting equipment, security equipment, smart sensors, heating Air conditioner, home appliance control, home audio and video, etc., as well as the interactive UI between users and smart devices. [0003] In the field of smart home, the current technologies related to the implementation of mobile terminal UI mainly include the following: 1. D...

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): G06F9/451
CPCG06F9/451
Inventor 倪海鸥高信智付云杰李瑞康
Owner FUJIAN STAR NET COMM
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products