Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 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 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

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 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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products