Adaptive display method and device

A self-adaptive, display resolution technology, applied in program control devices, instruments, electrical digital data processing, etc., can solve problems such as increasing application code compilation and maintenance pressure

CN103744595BActive Publication Date: 2017-03-22广州方硅信息技术有限公司
6 Cites 1 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2017-03-22

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses an adaptive display method, a configuration file generation method and a device, and belongs to the field of display technology. The adaptive display method includes: obtaining the display resolution and layout size of the current device; selecting a layout configuration file corresponding to the display resolution; determining the actual pixel size of the non-text layout elements in the display interface according to the layout configuration file; selecting A text configuration file corresponding to the layout size; determine the actual text size of the text layout elements in the display interface according to the text configuration file; display the display interface according to the actual pixel size and the actual text size. The present invention solves the problem in the background technology that the pressure of code compilation and maintenance of the application program is greatly increased in order to adapt to various screens; it achieves the dynamic selection of configuration files according to the display resolution and layout size of the adaptation device, and realizes the Adaptive display of individual layout elements avoids stressing application development costs.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the field of display technology, in particular to an adaptive display method and device. Background technique

[0002] For electronic devices such as mobile phones, tablet computers, and smart TVs, screen sizes and display resolutions of different types of electronic devices are basically different. Taking the screen size of a tablet computer as an example, the screen size of a tablet computer on the market includes 6 inches, 7 inches, 8 inches, 10 inches and 12 inches and so on. Furthermore, even tablet computers with the same screen size may have different display resolutions. Adapting to such a variety of screens has always been a challenge for an app.

[0003] In order to solve the above problems, developers usually modularize the display interface, and then load different numbers of modules on different screens through code implementation. Assuming that only the difference in screen size is considered, the devel...

Examples

Embodiment Construction

[0140] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0141] The inventor found that the layout elements in the display interface of the application program can be divided into two types, one is the non-text layout including controls and blank areas, and the other is the text layout including text. The self-adaptive display scheme provided by the embodiment of the present invention can enable the self-adaptive display of the application program on electronic devices with different screens efficiently and conveniently by adding a configuration file to the installation package of the application program. Among them, the function of the configuration file is to dynamically scale the layout elements in the display interface of the application program developed by taking the standard device as ...