Layout display method and device

A layout, to-be-displayed technology, used in the computer field

Inactive Publication Date: 2016-02-17
NEW FOUNDER HLDG DEV LLC +1
View PDF3 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Aiming at the problems existing in the prior art, the present invention provides a layout display method and device to overcome the defect in the prior art that the layout cannot be well adapted to user terminals with different screen sizes

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
  • Layout display method and device
  • Layout display method and device
  • Layout display method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] figure 1 Is a flowchart of Embodiment 1 of the layout display method of the present invention, such as figure 1 As shown, the method provided in this embodiment is applicable to various user terminals, especially to mobile phone terminals based on the android system. The method can be executed by a layout display device, which can be integrated in the user terminal. The method specifically includes the following steps:

[0020] Step 101: Obtain the screen size of the target user terminal and the size of the root layout in the layout to be displayed, the layout to be displayed is a multi-level nested structure, and the outermost layout in the multi-level nested structure is the root layout;

[0021] Step 102: Determine the display ratio of the layout to be displayed on the screen of the target user terminal according to the screen size of the target user terminal and the size of the root layout.

[0022] Step 103: Display the to-be-displayed layout according to the display rati...

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 layout display method and device. The method comprises the following steps: obtaining the screen size of a target user terminal and the size of a root layout of a layout to be displayed; determining the display scale of the layout to be displayed on the screen of the target user terminal according to the screen size of the target user terminal and the size of the root layout; and displaying the layout to be displayed according to the display scale and attribute information, described in a layout file corresponding to the layout to be displayed, of the layout to be displayed. When a layout needs to be displayed on the screens of different user terminals, the display forms of the layout on the screens of the different user terminals are determined according to the relative scale of the size of the root layout in the layout relative to the sizes of the screens of the different terminals, and the layout is displayed on the screens of the different user terminals by combining the attribute information described in the layout file of the layout, so that the layout can be efficiently and conveniently self-adapted to the user terminals with different screen sizes without pre-adapting different layouts for the different user terminals.

Description

Technical field [0001] The invention belongs to the field of computer technology, and specifically relates to a layout display method and device. Background technique [0002] On a user terminal such as a mobile phone, when we open an application, we will see data content such as text and pictures displayed on the terminal screen or user interface. In what display mode the data content is displayed, it is generally described in a layout file, which is generally an xml file. The layout file must first declare at least one layout manager, which can also be referred to as a layout for short. A user interface can include multiple layouts at the same time, that is, multiple layouts can be nested, and each layout is also Contains multiple controls, such as text controls for displaying text, image controls for displaying pictures, and so on. Each layout has its own properties and methods of displaying controls, such as describing the length and width of a layout in the layout file, 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): G06F17/30G06F3/0481
Inventor 赵红萍
Owner NEW FOUNDER HLDG DEV LLC
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