Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and storage medium for automatically generating layout files

A layout file, automatically generated technology, applied in software engineering design, instrumentation, calculation and other directions, can solve the problems of excessive interface drawing, use too much, affect performance and efficiency, etc., to avoid human errors, speed up the development process, The effect of improving work efficiency

Active Publication Date: 2021-09-07
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] 3. For mobile developers, due to the problem of model adaptation, it is often necessary to make different layout files to deal with different models; Will affect user experience and receive negative feedback
[0008] 4. If developers lack experience when making layout files, they may use too many controls, resulting in over-drawing of the interface, affecting performance and efficiency
[0009] In addition to the above problems, the above work needs to be done manually, which takes a lot of manpower and time, and the efficiency is low

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
  • Method and storage medium for automatically generating layout files
  • Method and storage medium for automatically generating layout files
  • Method and storage medium for automatically generating layout files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0075] Since there are generally only three types of layout elements in an application: shape, text, and image; in most cases, there are only two types of shape: square (for displaying text background and images) and circle (for displaying images) . Therefore, for image recognition, it is very easy to recognize text and shapes on an application interface. Because the shape elements of the interface have very obvious and smooth outlines; and the characteristics of the text are also very obvious: it is always in a square area, with a single color, and a clear top, bottom and baseline. Excluding shapes and text, the rest are images. It should be noted that the present invention does not need to identify the specific text content, but only needs to determine whether a certain interface element is text.

[0076] This example is for figure 2 For further limitation, a specific method for automatically generating a corresponding layout file based on an Android application renderin...

Embodiment 2

[0104] Please refer to Figure 3-Figure 7 , this embodiment corresponds to Embodiment 1, and provides a specific application scenario:

[0105] correspond image 3 If you use the traditional way to develop the interface renderings of the Android application, you first need the artist to cut the picture, and cut out the following resources from the picture: 1. The "<" picture of the return button; 2. The resource picture in the middle of the title bar; 3. The button background picture of "10 software currency"; 4. Alipay picture; 5. The small round button on the right side of the Alipay column; 6. The background resource picture for confirming payment. Developers need to first create a layout file layout.xml, place multiple containers and controls on the layout file according to the renderings, and then set the background according to the resource pictures cut out by the artist. During the running process, fine-tuning should be carried out according to the gap between the act...

Embodiment 3

[0167] This embodiment corresponds to Embodiment 1 and Embodiment 2, and provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, it can implement the above-mentioned embodiment 1 or embodiment 2. Steps included in a method for automatically generating a layout file. The specific steps will not be repeated here. For details, refer to the descriptions of Embodiment 1 and Embodiment 2.

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 and a storage medium for automatically generating a layout file. The method includes identifying an interface effect diagram and obtaining each element; creating an inclusion relationship tree according to the positional relationship between each element, and configuring the attributes of the corresponding nodes according to the attributes of the elements; According to the inclusion relationship tree, the layout file and resource picture corresponding to the interface effect diagram are obtained. The present invention analyzes the applied renderings, identifies various elements therein, creates a containment relationship tree corresponding to the positional relationship of each element, and automatically generates layout files and resource files accordingly, saving a lot of time and reducing the work of relevant personnel Quantity, reduce errors, avoid human error, improve work efficiency, and speed up the application development process.

Description

technical field [0001] The invention relates to the field of application interface analysis and processing, in particular to a method and a storage medium for automatically generating layout files. Background technique [0002] For a terminal application, especially an Android application, the user first sees the application interface. It can be said that the interface is the most important part of human-computer interaction and will greatly affect the user experience. [0003] Usually, when we develop an application, the planning will give a rendering of each interface in the application and related resource files; when the developer obtains these renderings, he must create the corresponding interface file according to the rendering, and Paste the corresponding resource pictures, and finally achieve the planned display effect. In this process, it can be divided into three steps: 1. Planning and providing renderings; 2. Artists cut images according to renderings to obtain r...

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): G06F8/38
CPCG06F8/38
Inventor 刘德建陈斌鄢宜扬郭玉湖
Owner FUJIAN TIANQUAN EDUCATION TECH LTD