CN111986601A - Screen display method and device, terminal equipment and storage medium - Google Patents

Screen display method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN111986601A
CN111986601A CN202010670903.6A CN202010670903A CN111986601A CN 111986601 A CN111986601 A CN 111986601A CN 202010670903 A CN202010670903 A CN 202010670903A CN 111986601 A CN111986601 A CN 111986601A
Authority
CN
China
Prior art keywords
control
screen
pixel value
determining
percentage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010670903.6A
Other languages
Chinese (zh)
Other versions
CN111986601B (en
Inventor
钟文亮
李海辉
袁占涛
杨春晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN202010670903.6A priority Critical patent/CN111986601B/en
Publication of CN111986601A publication Critical patent/CN111986601A/en
Application granted granted Critical
Publication of CN111986601B publication Critical patent/CN111986601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/2007Display of intermediate tones
    • G09G3/2074Display of intermediate tones using sub-pixels

Abstract

The embodiment of the invention provides a screen display method, a screen display device, terminal equipment and a storage medium, wherein the method comprises the following steps: acquiring first resolution information of a screen of equipment to be adapted; determining the parameter percentage of each control in the initial layout file; determining the display information of each control according to the parameter percentage and the first resolution information of each control; according to the display information of each control, each control is displayed on the screen of the device to be adapted, so that the size of the control can be adjusted according to the resolution of the screen to be adapted, and the problem that the control is deformed or incompletely displayed is avoided.

Description

Screen display method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of display technologies, and in particular, to a screen display method and apparatus, a terminal device, and a storage medium.
Background
At present, screens of mobile devices are generally designed with a fixed resolution for man-machine interface, for example, the resolution of the screen may be 1920 × 1080, and the controls in the screen are also fixed.
In the prior art, because the resolution and the size of the screen of the mobile device are not fixed, if the resolution of the mobile device to be displayed is different from the fixed resolution, the problem that the control displayed on the mobile device to be displayed is deformed or incompletely displayed occurs, and even some controls cannot be normally used.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a screen display method, apparatus, terminal device, and storage medium that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a screen display method, where the method includes:
acquiring first resolution information of a screen of equipment to be adapted;
determining the parameter percentage of each control in the initial layout file;
determining display information of each control according to the parameter percentage of each control and the first resolution information;
and displaying each control on the screen of the equipment to be adapted according to the display information of each control.
Optionally, the parameter percentages include a high percentage and a wide percentage; the determining the parameter percentage of each control in the initial layout file specifically includes:
acquiring second resolution information of a preset screen in the initial layout file, wherein the second resolution information comprises a second high pixel value and a second wide pixel value;
acquiring parameter size information of each control in the preset screen, wherein the parameter size information comprises a third high pixel value and a third wide pixel value;
determining a ratio of the third high pixel value to the second high pixel value as the high percentage;
determining a ratio of the third wide pixel value to the second wide pixel value as the wide percentage.
Optionally, the determining the display information of each control according to the parameter percentage of each control and the first resolution information includes:
and determining display information of each control according to the height percentage, the width percentage and the first resolution information of each control, wherein the display information comprises a fourth high pixel value and a fourth wide pixel value.
Optionally, the determining the display information of each control includes:
determining a first high pixel value multiplied by the high percentage as a fourth high pixel value of the control;
determining a first width pixel value multiplied by the width percentage as a fourth width pixel value of the control; wherein the first resolution information comprises the first high pixel value and a first wide pixel value.
Optionally, the displaying the controls corresponding to the display information of each control on the screen of the device to be adapted includes:
determining the position information of each control on the screen of the device to be adapted;
and displaying each control on the screen of the equipment to be adapted according to the position information and the display information of each control.
Optionally, the determining the position information of each control on the screen of the device to be adapted includes:
calculating distance information of a first control relative to a reference object, wherein the distance information comprises a first wide pixel distance and a first high pixel distance, the reference object comprises a frame of a preset screen or a second control, and the first control and the second control are not the same;
determining the distance percentage of the first control according to the distance information and the second resolution information;
and calculating the position information of the first control on the screen of the equipment to be adapted according to the distance percentage of the first control and the first resolution information.
Optionally, the determining the distance percentage of the first control according to the distance information and the second resolution information includes:
determining a ratio of the first wide pixel distance to a second wide pixel value as a second wide pixel distance of the first control;
and determining the ratio of the first high pixel distance to the second high pixel value as the second high pixel distance of the first control.
In a second aspect, an embodiment of the present invention provides a screen display apparatus, including:
the acquisition module is used for acquiring first resolution information of a screen of the equipment to be adapted;
the determining module is used for determining the parameter percentage of each control in the initial layout file;
the calculation module is used for determining the display information of each control according to the parameter percentage of each control and the first resolution information;
and the display module is used for displaying each control on the screen of the equipment to be adapted according to the display information of each control.
Optionally, the parameter percentages include a high percentage and a wide percentage; the determination module is to:
acquiring second resolution information of a preset screen in the initial layout file, wherein the second resolution information comprises a second high pixel value and a second wide pixel value;
acquiring parameter size information of each control in the preset screen, wherein the parameter size information comprises a third high pixel value and a third wide pixel value;
determining a ratio of the third high pixel value to the second high pixel value as the high percentage;
determining a ratio of the third wide pixel value to the second wide pixel value as the wide percentage.
Optionally, the computing module is configured to:
and determining display information of each control according to the height percentage, the width percentage and the first resolution information of each control, wherein the display information comprises a fourth high pixel value and a fourth wide pixel value.
Optionally, the calculation module is specifically configured to:
determining a first high pixel value multiplied by the high percentage as a fourth high pixel value of the control;
determining a first width pixel value multiplied by the width percentage as a fourth width pixel value of the control; wherein the first resolution information comprises the first high pixel value and a first wide pixel value.
Optionally, the display module is configured to:
determining the position information of each control on the screen of the device to be adapted;
and displaying each control on the screen of the equipment to be adapted according to the position information and the display information of each control.
Optionally, the display module is specifically configured to:
calculating distance information of a first control relative to a reference object, wherein the distance information comprises a first wide pixel distance and a first high pixel distance, the reference object comprises a frame of a preset screen or a second control, and the first control and the second control are not the same;
determining the distance percentage of the first control according to the distance information and the second resolution information;
and calculating the position information of the first control on the screen of the equipment to be adapted according to the distance percentage of the first control and the first resolution information.
Optionally, the display module is specifically configured to:
determining a ratio of the first wide pixel distance to a second wide pixel value as a second wide pixel distance of the first control;
and determining the ratio of the first high pixel distance to the second high pixel value as the second high pixel distance of the first control.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the screen display method provided by the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the computer program implements the screen display method provided in the first aspect.
The embodiment of the invention has the following advantages:
according to the screen display method, the screen display device, the terminal equipment and the storage medium provided by the embodiment of the invention, the first resolution information of the screen of the equipment to be adapted is acquired; determining the parameter percentage of each control in the initial layout file; determining the display information of each control according to the parameter percentage and the first resolution information of each control; according to the display information of each control, each control is displayed on the screen of the device to be adapted, so that the size of the control can be adjusted according to the resolution of the screen to be adapted, and the problem that the control is deformed or incompletely displayed is avoided.
Drawings
FIG. 1 is a flow chart of the steps of one embodiment of a screen display method of the present invention;
FIG. 2 is a flow chart of the steps of another screen display method embodiment of the present invention;
FIG. 3a is a schematic illustration of a display of an on-screen control of the present invention;
FIG. 3b is a schematic illustration of yet another display of an on-screen control of the present invention;
FIG. 3c is a schematic illustration of yet another display of an on-screen control of the present invention;
FIG. 4 is a block diagram of an embodiment of a screen display apparatus according to the present invention;
fig. 5 is a schematic structural diagram of a terminal device of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
An embodiment of the present invention provides a screen display method, which is used for displaying a control on a screen of a device to be adapted. The execution main body of the embodiment is a screen display device, and is arranged on an electronic device, wherein the electronic device may be a computer, a tablet computer, a mobile phone terminal, and the like.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a screen display method according to the present invention is shown, where the method may specifically include the following steps:
s101, acquiring first resolution information of a screen of equipment to be adapted;
specifically, since the screens of the devices to be adapted have different resolutions, when the controls are displayed on the screens of the different resolutions, there may be a problem of deformation or incomplete display, and in order to display a complete and clear space on the screen of the devices to be adapted, first resolution information of the screen of the devices to be adapted is acquired after the devices to be adapted are started, wherein the first resolution information includes a first high pixel value and a first wide pixel value and is expressed in the form of "first high pixel value × first wide pixel value".
S102, determining the parameter percentage of each control in the initial layout file;
specifically, after the device to be adapted is started, when a specific control page is opened, an initial layout file of the page is loaded, and since the widths and heights of all controls in the initial layout file are set percentages, the initial layout file is processed before an interface is displayed after the layout file is loaded, and parameter percentages, including the height percentage and the width percentage, of each control in the initial layout file are obtained.
The initial layout file is a configuration file for defining an application program page in the android system, and the display effect of each control in the page is configured through the initial layout file.
Controls refer to elements or combinations of elements used to make up a display interface or user interaction interface, such as buttons, backgrounds, floating borders, or block areas (blocks) of various shapes or with various different colors, etc. The control is used as a unit (element) forming a certain specific display interface, and can be combined and superposed in a predetermined mode to form the specific display interface. Furthermore, a display interface (or a user interaction interface) of the target can be formed by overlapping different hierarchical structures.
The parameters of the control can be represented by various suitable scale units (such as individual pixel density, pixel value, centimeter, and the like). For example, a rectangular control may be 10 cm long by 2 cm wide, or 10dpi (pixels per inch) long by 5dpi wide. Generally, different scale units can be selected for use according to the actual device or operating application environment. Pixel values are used in embodiments of the invention.
And the device to be adapted calculates the height percentage and the width percentage of each control according to the height pixel value and the width pixel value of each control and the height pixel value and the width pixel value of a preset screen in the initial layout file.
S103, determining display information of each control according to the parameter percentage of each control and the first resolution information;
specifically, the device to be adapted calculates the display information of each control, including the high pixel value and the wide pixel value, according to the high percentage and the wide percentage of each control and the first high pixel value and the first wide pixel value of the screen of the device to be adapted, that is, the device to be adapted can zoom the size of the control according to the parameter percentage of each control and the first resolution information of the screen of the device to be adapted, so that a complete and clear control can be displayed on the screen of the device to be adapted.
And S104, displaying each control on the screen of the equipment to be adapted according to the display information of each control.
Specifically, the device to be adapted displays on the screen of the device to be adapted according to the high pixel value and the wide pixel value of each control, and may display according to the control position in the initial layout file, or may re-layout the position of the control, and display on the screen of the device to be adapted, but in any case, it may be ensured that the display of each control is complete and clear
The screen display method provided by the embodiment of the invention comprises the steps of acquiring first resolution information of a screen of equipment to be adapted; determining the parameter percentage of each control in the initial layout file; determining the display information of each control according to the parameter percentage and the first resolution information of each control; according to the display information of each control, each control is displayed on the screen of the device to be adapted, so that the size of the control can be adjusted according to the resolution of the screen to be adapted, and the problem that the control is deformed or incompletely displayed is avoided.
The present invention further provides a supplementary description of the screen display method provided in the above embodiment.
As shown in fig. 2, there is shown a flow chart of the steps of another embodiment of a screen display method of the present invention, the screen display method comprising:
s201, acquiring first resolution information of a screen of equipment to be adapted;
since steps S201 to S204 are the same as step S101 in the embodiment shown in fig. 1. Step S101 has already been described in detail in fig. 1, and therefore step S201 and step S204 will not be described again here.
S202, determining parameter percentages of all controls in the initial layout file, wherein the parameter percentages comprise a high percentage and a wide percentage;
specifically, the method for determining the height percentage and the width percentage of each control by the device to be adapted according to the initial layout file specifically includes:
step 1: acquiring second resolution information of a preset screen in the initial layout file, wherein the second resolution information comprises a second high pixel value and a second wide pixel value;
step 2: acquiring parameter size information of each control in the preset screen, wherein the parameter size information comprises a third high pixel value and a third wide pixel value;
and step 3: determining a ratio of the third high pixel value to the second high pixel value as the high percentage;
and 4, step 4: determining a ratio of the third wide pixel value to the second wide pixel value as the wide percentage.
Illustratively, the second resolution information of the preset screen as in the initial layout file is 1920 × 1080, where 1920px is the second high pixel value and 1080px is the second wide pixel value; the third high pixel value of one control in the preset screen is 320px, the third wide pixel value is 540px, the height percentage is 320px/1920 px-0.17, and the width percentage is 540px/1080 px-0.5.
S203, determining display information of each control according to the height percentage, the width percentage and the first resolution information of each control, wherein the display information comprises a fourth high pixel value and a fourth wide pixel value;
specifically, step S203 includes:
step a 1: determining a first high pixel value multiplied by the high percentage as a fourth high pixel value of the control;
step a 2: determining a first width pixel value multiplied by the width percentage as a fourth width pixel value of the control; wherein the first resolution information comprises the first high pixel value and a first wide pixel value.
Illustratively, if the first high pixel value is 1080px and the first wide pixel value is 780px, the fourth high pixel value is calculated as 1080px 0.17 ═ 183 px; the fourth wide pixel value is 780px 0.5 ═ 390px, that is, the obtained 183px 390px is the actual display size of the control in the screen of the device to be adapted.
S204, determining the position information of each control on the screen of the device to be adapted;
specifically, in order to ensure that the control layout displayed on the screen of the device to be adapted is consistent with the control layout in the preset screen, the size of the control needs to be scaled, and then the position of each control needs to be further determined, so that the control layout mode at least comprises a relative layout mode, a linear layout mode and a streaming layout mode, wherein the relative layout mode is that when a certain space is placed, a reference object needs to be selected, and the layout is performed according to the distance of the control relative to the reference object; the linear layout is that the controls are equidistantly placed on a screen according to a certain proportion; the hough layout is that if the controls of the original screen cannot be placed in one line on the new screen after being enlarged, the controls can be placed in two or more lines, and in the embodiment of the present invention, a method of relative layout is mainly introduced, as shown below, step S204 includes:
step b 1: calculating distance information of a first control relative to a reference object, wherein the distance information comprises a first wide pixel distance and a first high pixel distance, the reference object comprises a frame of a preset screen or a second control, and the first control and the second control are not the same;
specifically, a reference object is determined first, where the reference object may be a frame of a screen of the device to be adapted, for example, the upper side of the screen is taken as an X axis, and the left side of the screen is taken as a Y axis, and distances from the first control to the X axis and the Y axis are calculated; or calculating the distance between the first control and the first edge of the second control by taking the second control as a reference object, and calculating the distance between the first control and the second control, which is perpendicular to the first edge, and the second edge of the first edge.
Step b 2: determining the distance percentage of the first control according to the distance information and the second resolution information;
specifically, step b2 includes:
step b 21: determining a ratio of the first wide pixel distance to a second wide pixel value as a second wide pixel distance of the first control;
step b 22: and determining the ratio of the first high pixel distance to the second high pixel value as the second high pixel distance of the first control.
Step b 3: and calculating the position information of the first control on the screen of the equipment to be adapted according to the distance percentage of the first control and the first resolution information.
Specifically, the device to be adapted calculates a product of a second wide pixel distance of the first control and a first wide pixel value, and calculates a product of a second high pixel distance of the first control and a first high pixel value, so as to obtain position information of the first control on the screen of the device to be adapted.
S205, displaying each control on the screen of the device to be adapted according to the position information and the display information of each control.
Specifically, the device to be adapted firstly zooms the controls, further zooms the distance of the controls on the screen of the device to be adapted, and then displays each control on the screen of the device to be adapted.
For example, a plurality of pages, such as the control interfaces shown in fig. 3a-3c, may be displayed on the video conference scheduling tablet, and the controls on each control interface are adapted on the video conference scheduling tablet, so that each control does not have the problem of deformation or incomplete display, thereby improving compatibility with different devices.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
The screen display method provided by the embodiment of the invention comprises the steps of acquiring first resolution information of a screen of equipment to be adapted; determining the parameter percentage of each control in the initial layout file; determining the display information of each control according to the parameter percentage and the first resolution information of each control; according to the display information of each control, each control is displayed on the screen of the device to be adapted, so that the size of the control can be adjusted according to the resolution of the screen to be adapted, and the problem that the control is deformed or incompletely displayed is avoided.
Another embodiment of the present invention provides a screen display apparatus for performing the screen display method provided by the above embodiment.
Referring to fig. 4, a block diagram of a screen display device according to an embodiment of the present invention is shown, and the device may specifically include the following modules: an obtaining module 401, a determining module 402, a calculating module 403 and a displaying module 404, wherein:
the obtaining module 401 is configured to obtain first resolution information of a screen of a device to be adapted;
the determining module 402 is configured to determine the parameter percentage of each control in the initial layout file;
the calculating module 403 is configured to determine display information of each control according to the parameter percentage of each control and the first resolution information;
the display module 404 is configured to display each control on the screen of the device to be adapted according to the display information of each control.
The screen display device provided by the embodiment of the invention obtains the first resolution information of the screen of the equipment to be adapted; determining the parameter percentage of each control in the initial layout file; determining the display information of each control according to the parameter percentage and the first resolution information of each control; according to the display information of each control, each control is displayed on the screen of the device to be adapted, so that the size of the control can be adjusted according to the resolution of the screen to be adapted, and the problem that the control is deformed or incompletely displayed is avoided.
The screen display device provided by the above embodiment is further described in an additional embodiment of the present invention.
Optionally, the parameter percentages include a high percentage and a wide percentage; the determining module 402 is configured to:
acquiring second resolution information of a preset screen in the initial layout file, wherein the second resolution information comprises a second high pixel value and a second wide pixel value;
acquiring parameter size information of each control in the preset screen, wherein the parameter size information comprises a third high pixel value and a third wide pixel value;
determining a ratio of the third high pixel value to the second high pixel value as the high percentage;
determining a ratio of the third wide pixel value to the second wide pixel value as the wide percentage.
Optionally, the computing module 403 is configured to:
and determining display information of each control according to the height percentage, the width percentage and the first resolution information of each control, wherein the display information comprises a fourth high pixel value and a fourth wide pixel value.
Optionally, the calculating module 403 is specifically configured to:
determining a first high pixel value multiplied by the high percentage as a fourth high pixel value of the control;
determining a first width pixel value multiplied by the width percentage as a fourth width pixel value of the control; wherein the first resolution information comprises the first high pixel value and a first wide pixel value.
Optionally, the display module 404 is configured to:
determining the position information of each control on the screen of the device to be adapted;
and displaying each control on the screen of the equipment to be adapted according to the position information and the display information of each control.
Optionally, the display module 404 is specifically configured to:
calculating distance information of a first control relative to a reference object, wherein the distance information comprises a first wide pixel distance and a first high pixel distance, the reference object comprises a frame of a preset screen or a second control, and the first control and the second control are not the same;
determining the distance percentage of the first control according to the distance information and the second resolution information;
and calculating the position information of the first control on the screen of the equipment to be adapted according to the distance percentage of the first control and the first resolution information.
Optionally, the display module 404 is specifically configured to:
determining a ratio of the first wide pixel distance to a second wide pixel value as a second wide pixel distance of the first control;
and determining the ratio of the first high pixel distance to the second high pixel value as the second high pixel distance of the first control.
It should be noted that the respective implementable modes in the present embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present application is not limited thereto.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The screen display device provided by the embodiment of the invention obtains the first resolution information of the screen of the equipment to be adapted; determining the parameter percentage of each control in the initial layout file; determining the display information of each control according to the parameter percentage and the first resolution information of each control; according to the display information of each control, each control is displayed on the screen of the device to be adapted, so that the size of the control can be adjusted according to the resolution of the screen to be adapted, and the problem that the control is deformed or incompletely displayed is avoided.
Still another embodiment of the present invention provides a terminal device, configured to execute the screen display method provided in the foregoing embodiment.
Fig. 5 is a schematic structural diagram of a terminal device of the present invention, and as shown in fig. 5, the terminal device includes: at least one processor 501 and memory 502;
the memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the screen display method provided by the above-mentioned embodiments.
The terminal device provided by the embodiment acquires the first resolution information of the screen of the device to be adapted; determining the parameter percentage of each control in the initial layout file; determining the display information of each control according to the parameter percentage and the first resolution information of each control; according to the display information of each control, each control is displayed on the screen of the device to be adapted, so that the size of the control can be adjusted according to the resolution of the screen to be adapted, and the problem that the control is deformed or incompletely displayed is avoided.
Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed, the computer program implements the screen display method provided in any one of the above embodiments.
According to the computer-readable storage medium of the embodiment, the first resolution information of the screen of the device to be adapted is acquired; determining the parameter percentage of each control in the initial layout file; determining the display information of each control according to the parameter percentage and the first resolution information of each control; according to the display information of each control, each control is displayed on the screen of the device to be adapted, so that the size of the control can be adjusted according to the resolution of the screen to be adapted, and the problem that the control is deformed or incompletely displayed is avoided.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, electronic devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing electronic device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing electronic device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic devices to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing electronic device to cause a series of operational steps to be performed on the computer or other programmable electronic device to produce a computer implemented process such that the instructions which execute on the computer or other programmable electronic device provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or electronic device that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or electronic device. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or electronic device that comprises the element.
The screen display method and the screen display device provided by the invention are described in detail, and the principle and the implementation mode of the invention are explained by applying specific examples, and the description of the examples is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for on-screen display, the method comprising:
acquiring first resolution information of a screen of equipment to be adapted;
determining the parameter percentage of each control in the initial layout file;
determining display information of each control according to the parameter percentage of each control and the first resolution information;
and displaying each control on the screen of the equipment to be adapted according to the display information of each control.
2. The method of claim 1, wherein the parameter percentages include a high percentage and a wide percentage; the determining the parameter percentage of each control in the initial layout file specifically includes:
acquiring second resolution information of a preset screen in the initial layout file, wherein the second resolution information comprises a second high pixel value and a second wide pixel value;
acquiring parameter size information of each control in the preset screen, wherein the parameter size information comprises a third high pixel value and a third wide pixel value;
determining a ratio of the third high pixel value to the second high pixel value as the high percentage;
determining a ratio of the third wide pixel value to the second wide pixel value as the wide percentage.
3. The method according to claim 2, wherein the determining the display information of each control according to the parameter percentage of each control and the first resolution information comprises:
and determining display information of each control according to the height percentage, the width percentage and the first resolution information of each control, wherein the display information comprises a fourth high pixel value and a fourth wide pixel value.
4. The method of claim 3, wherein the determining display information of the respective control comprises:
determining a first high pixel value multiplied by the high percentage as a fourth high pixel value of the control;
determining a first width pixel value multiplied by the width percentage as a fourth width pixel value of the control; wherein the first resolution information comprises the first high pixel value and a first wide pixel value.
5. The method according to claim 1, wherein the displaying the respective controls on the screen of the device to be adapted according to the display information of the respective controls comprises:
determining the position information of each control on the screen of the device to be adapted;
and displaying each control on the screen of the equipment to be adapted according to the position information and the display information of each control.
6. The method according to claim 5, wherein the determining the position information of each control on the screen of the device to be adapted comprises:
calculating distance information of a first control relative to a reference object, wherein the distance information comprises a first wide pixel distance and a first high pixel distance, the reference object comprises a frame of a preset screen or a second control, and the first control and the second control are not the same;
determining the distance percentage of the first control according to the distance information and the second resolution information;
and calculating the position information of the first control on the screen of the equipment to be adapted according to the distance percentage of the first control and the first resolution information.
7. The method of claim 6, wherein determining the distance percentage of the first control based on the distance information and the second resolution information comprises:
determining a ratio of the first wide pixel distance to a second wide pixel value as a second wide pixel distance of the first control;
and determining the ratio of the first high pixel distance to the second high pixel value as the second high pixel distance of the first control.
8. An on-screen display device, the device comprising:
the acquisition module is used for acquiring first resolution information of a screen of the equipment to be adapted;
the determining module is used for determining the parameter percentage of each control in the initial layout file;
the calculation module is used for determining the display information of each control according to the parameter percentage of each control and the first resolution information;
and the display module is used for displaying each control on the screen of the equipment to be adapted according to the display information of each control.
9. A terminal device, comprising: at least one processor and memory;
the memory stores a computer program; the at least one processor executes the computer program stored by the memory to implement the screen display method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program is stored therein, which when executed implements the screen display method of any one of claims 1 to 7.
CN202010670903.6A 2020-07-13 2020-07-13 Screen display method, device, terminal equipment and storage medium Active CN111986601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010670903.6A CN111986601B (en) 2020-07-13 2020-07-13 Screen display method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010670903.6A CN111986601B (en) 2020-07-13 2020-07-13 Screen display method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111986601A true CN111986601A (en) 2020-11-24
CN111986601B CN111986601B (en) 2024-03-29

Family

ID=73437753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010670903.6A Active CN111986601B (en) 2020-07-13 2020-07-13 Screen display method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111986601B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817507A (en) * 2021-01-26 2021-05-18 广州虎牙科技有限公司 Control adaptation method and device, electronic equipment and storage medium
CN114579223A (en) * 2020-12-02 2022-06-03 华为技术有限公司 Interface layout method, electronic equipment and computer readable storage medium
CN114756190A (en) * 2022-06-14 2022-07-15 统信软件技术有限公司 Method and device for adjusting zoom based on resolution and computing equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001157229A (en) * 1999-11-25 2001-06-08 Olympus Optical Co Ltd Video display device
CN103530117A (en) * 2013-09-30 2014-01-22 山西云途信息技术有限公司 Method and device for adapting to screens, of different sizes, of mobile terminals
CN103970894A (en) * 2014-05-27 2014-08-06 合一网络技术(北京)有限公司 Method and system for displaying interface streaming layout in adaptive adjustment mode
CN105282321A (en) * 2015-08-28 2016-01-27 上海健保科技有限公司 Adaption method of application software user interface and display device
CN105653254A (en) * 2014-12-03 2016-06-08 科大讯飞股份有限公司 Native interface adaptive method, apparatus and electronic equipment employing same
CN105827833A (en) * 2016-03-22 2016-08-03 南京邮电大学 Percentage-based Android mobile phone screen adaption method
US20170199655A1 (en) * 2014-05-23 2017-07-13 Zte Corporation Method and Device for Facilitating Operation of Terminal
CN107273000A (en) * 2017-06-14 2017-10-20 电子科技大学 A kind of screen multiresolution adaptation method of smart scope
WO2017193576A1 (en) * 2016-05-13 2017-11-16 乐视控股(北京)有限公司 Video resolution adaptation method and apparatus, and virtual reality terminal
CN109302451A (en) * 2018-09-03 2019-02-01 视联动力信息技术股份有限公司 A kind of methods of exhibiting and system of picture file
CN110083415A (en) * 2019-03-25 2019-08-02 厦门网宿有限公司 Device screen adaptation method, terminal device and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001157229A (en) * 1999-11-25 2001-06-08 Olympus Optical Co Ltd Video display device
CN103530117A (en) * 2013-09-30 2014-01-22 山西云途信息技术有限公司 Method and device for adapting to screens, of different sizes, of mobile terminals
US20170199655A1 (en) * 2014-05-23 2017-07-13 Zte Corporation Method and Device for Facilitating Operation of Terminal
CN103970894A (en) * 2014-05-27 2014-08-06 合一网络技术(北京)有限公司 Method and system for displaying interface streaming layout in adaptive adjustment mode
CN105653254A (en) * 2014-12-03 2016-06-08 科大讯飞股份有限公司 Native interface adaptive method, apparatus and electronic equipment employing same
CN105282321A (en) * 2015-08-28 2016-01-27 上海健保科技有限公司 Adaption method of application software user interface and display device
CN105827833A (en) * 2016-03-22 2016-08-03 南京邮电大学 Percentage-based Android mobile phone screen adaption method
WO2017193576A1 (en) * 2016-05-13 2017-11-16 乐视控股(北京)有限公司 Video resolution adaptation method and apparatus, and virtual reality terminal
CN107273000A (en) * 2017-06-14 2017-10-20 电子科技大学 A kind of screen multiresolution adaptation method of smart scope
CN109302451A (en) * 2018-09-03 2019-02-01 视联动力信息技术股份有限公司 A kind of methods of exhibiting and system of picture file
CN110083415A (en) * 2019-03-25 2019-08-02 厦门网宿有限公司 Device screen adaptation method, terminal device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘子轩等: "自适应显示环境可视化表达的线要素图形化简", 测绘地理信息, vol. 42, no. 01, pages 78 - 82 *
郭荣;: "窗口界面自动适应显示屏幕的实现", 电脑编程技巧与维护, no. 11, pages 83 - 84 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114579223A (en) * 2020-12-02 2022-06-03 华为技术有限公司 Interface layout method, electronic equipment and computer readable storage medium
CN112817507A (en) * 2021-01-26 2021-05-18 广州虎牙科技有限公司 Control adaptation method and device, electronic equipment and storage medium
CN112817507B (en) * 2021-01-26 2023-11-03 广州虎牙科技有限公司 Control adaptation method, device, electronic equipment and storage medium
CN114756190A (en) * 2022-06-14 2022-07-15 统信软件技术有限公司 Method and device for adjusting zoom based on resolution and computing equipment

Also Published As

Publication number Publication date
CN111986601B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
CN111986601B (en) Screen display method, device, terminal equipment and storage medium
KR20090132484A (en) Information display apparatus, information displaying method, and computer readable medium
CN110796664B (en) Image processing method, device, electronic equipment and computer readable storage medium
CN107402757B (en) Page rendering method and device
CN103702032A (en) Image processing method, device and terminal equipment
CN105045587A (en) Picture display method and apparatus
CN107861711B (en) Page adaptation method and device
CN111913343B (en) Panoramic image display method and device
CN112558854B (en) Multi-picture split-screen mode customization method and device and computer equipment
CN111435589B (en) Target display method and device and target display system
CN112567735A (en) Multi-video signal pre-monitoring method and multi-video signal pre-monitoring system
CN113949900B (en) Live broadcast mapping processing method, system, equipment and storage medium
CN112181329A (en) Data display method and device
CN114816214A (en) Electronic text signing method and device, storage medium and electronic equipment
JP5645448B2 (en) Image processing apparatus, image processing method, and program
CN113259615A (en) Focal length adjusting method and device, terminal equipment and storage medium
CN112860157B (en) Display element adjusting method, device, equipment and storage medium
CN104639969A (en) Full screen page display method and device
CN112118475A (en) Cross-screen window display method and device, terminal equipment and storage medium
CN112004065A (en) Video display method, display device and storage medium
CN112711459A (en) Multimedia data processing method, device, equipment and computer readable storage medium
CN111815628A (en) Display panel defect detection method, device, equipment and readable storage medium
CN111553842B (en) Spliced picture display method and device, electronic equipment and storage medium
CN113721818B (en) Image processing method, device, equipment and computer readable storage medium
CN111597288B (en) Three-dimensional geographic information visualization method and system based on video fusion

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant