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

A method for implementing ui dynamic layout

An implementation method and technology of dynamic layout, applied in the direction of program control device, user interface execution, etc., can solve the problem of inability to realize dynamic UI layout and so on

Active Publication Date: 2021-02-05
FUJIAN STAR NET COMM
View PDF9 Cites 0 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
  • A method for implementing ui dynamic layout
  • A method for implementing ui dynamic layout
  • A method for implementing ui dynamic layout

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 present invention provides a method for implementing UI dynamic layout, comprising S1, obtaining the page data included in the main interface, creating a page object and a page Key for each page, and storing them in a page cache pool; S2, creating an array of page Keys, Take out the page Key whose index is zero; S3, detect whether the page Key taken out is in the drawn page array, if so, go to S4; if not, create a page, and go to S4; S4, update the current page ID, and present the page; S5, detect whether to slide the page, if so, then take the next index from the page Key array, and enter S6; Page Key, and enter S3; if not, set the index to zero, and obtain the page Key with index zero, and enter S3. Through the method of the invention, the UI control view can be managed according to the hierarchical relationship between the page and the control on the UI logic layer, and the UI dynamic layout can be 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 Patents(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