Full-screen adapting method of display device, display device and storage medium

A display device and full-screen technology, which is applied in the field of computer-readable storage media, display device applications, and full-screen adaptation of display devices, can solve problems such as the inability to meet the needs of writing full-screen adaptation at one time, and achieve adaptation Effect

Active Publication Date: 2018-08-21
SHENZHEN TCL NEW-TECH CO LTD
View PDF14 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Facing the variety of screen sizes and resolutions on the market, Android's adaptation scheme base

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
  • Full-screen adapting method of display device, display device and storage medium
  • Full-screen adapting method of display device, display device and storage medium
  • Full-screen adapting method of display device, display device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Example

[0064] Reference figure 2 , The present invention is a first embodiment of a full-screen adaptation method of a display device, and the full-screen adaptation method of the display device includes:

[0065] Step S10, after obtaining the layout file, convert the unit of the page file in the layout file into a length unit;

[0066] Get the layout file. The layout file includes different page files. The page file in the layout file is drawn by the developer completely according to the size on the design draft when drawing. The page file is also drawn with the same px as the design draft. Prepared. Use the applyDimension function in TypedValue to convert the page file written in px in the obtained layout file into pt units. According to the pre-stored preview parameters, when the page file is adapted to the preview parameters, it uses TypedValue.applyDimension to dynamically convert the unit of code in the page file into px units. Drawing the page in real-time preview is a very impo...

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 discloses a full-screen adapting method of a display device. The full-screen adapting method of the display device comprises the following steps: during acquisition of a layout file, converting the unit of a page file in the layout file into a length unit; acquiring information of the page file in the converted layout file, and calculating the display proportion for initialization ofthe page file; when screen parameter information of the display device is read, determining the to-be-displayed proportion of the page file according to the screen parameter information of the display device in order to perform full-screen adaptation on the to-be-displayed proportion of the page file. The invention further discloses a display device and a readable medium. The layout file capableof adapting to different screen resolutions or creating different screen sizes is written at one time, and full-screen adaption can be realized rapidly.

Description

technical field [0001] The present invention relates to the application field of display devices, in particular to a full-screen adaptation method of a display device, a display device and a computer-readable storage medium. Background technique [0002] Due to the serious fragmentation of Android, screen adaptation has always been a headache in development. In order to achieve the optimal visual effect, more resources are always needed for adaptation during the development process. Current common solutions: [0003] 1. The official adaptation program dp is a unique unit in Android development. Unlike px, dp is a unit based on screen pixel density. Maybe 1dp = 1px on a low-density screen, but maybe 1dp = 4px on a high-density screen. When writing layout xml, if the length and width of a control are specified by dp, it can ensure that the absolute size of the control is approximately the same under screens of various sizes and resolutions. That is to say, the size of the...

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
IPC IPC(8): G06F3/14
CPCG06F3/14
Inventor 杨少东
Owner SHENZHEN TCL NEW-TECH CO LTD
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