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

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

A display device, full-screen technology, applied in the field of full-screen adaptation of display devices, display device applications, and computer-readable storage media, 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: 2022-03-08
SHENZHEN TCL NEW-TECH CO LTD
View PDF0 Cites 0 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 based on dp and res directory names can no longer meet the needs of writing full-screen adaptation at one time

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

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

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

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

[0066] The layout file is obtained, and the layout file includes different page files. The page file in the layout file is drawn by the developer according to the size of the design draft, and the same px as the design draft is also used when drawing the page file prepared. Use the applyDimension function in TypedValue to convert the page file written in px in the obtained layout file to pt unit. According to the pre-stored preview parameters, when the page file is adapted to the preview parameters, use TypedValue.applyDimension to dynamically convert the unit of the code in the page file to the px unit. Drawing the page during real-time preview is a v...

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 adaptation method of a display device. The full-screen adaptation method of the display device includes: converting the unit of a page file in the layout file into a length unit when a layout file is obtained; Obtain the information of the page file in the converted layout file, and calculate the initial display ratio of the page file; when the screen parameter information of the display device is read, determine the The to-be-displayed ratio of the page file, and full-screen adaptation is performed based on the to-be-displayed ratio of the page file. The invention also discloses a display device and a readable medium. Solve the problem of writing and adapting to different screen resolutions or creating layout files of different screen sizes at one time, which can quickly realize full-screen adaptation.

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