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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


