CN113672332B - Window display method, device, apparatus, storage medium, and program - Google Patents

Window display method, device, apparatus, storage medium, and program Download PDF

Info

Publication number
CN113672332B
CN113672332B CN202110980432.3A CN202110980432A CN113672332B CN 113672332 B CN113672332 B CN 113672332B CN 202110980432 A CN202110980432 A CN 202110980432A CN 113672332 B CN113672332 B CN 113672332B
Authority
CN
China
Prior art keywords
window
app
target app
display
size
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.)
Active
Application number
CN202110980432.3A
Other languages
Chinese (zh)
Other versions
CN113672332A (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110980432.3A priority Critical patent/CN113672332B/en
Publication of CN113672332A publication Critical patent/CN113672332A/en
Application granted granted Critical
Publication of CN113672332B publication Critical patent/CN113672332B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The invention provides a window display method, a device, equipment, a storage medium and a program, wherein the method is applied to electronic equipment, the electronic equipment runs a first operating system, the first operating system comprises at least one first application program APP, and the method comprises the following steps: acquiring a first proportional parameter corresponding to a target APP; the target APP is any one of the first APP; determining a first logic size corresponding to a window of the target APP according to a first proportional parameter corresponding to the target APP and the display size of the window of the target APP; and displaying the window of the target APP according to the first logic size and the first proportional parameter corresponding to the window of the target APP. In the scheme, the proportion parameter SCALE can be configured for each APP independently, and then the display proportion of the window content of each APP can be adjusted independently, namely the display effect of the window of each APP is good in suitability with display equipment, and the user requirements can be met.

Description

Window display method, device, apparatus, storage medium, and program
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a window display method, apparatus, device, storage medium, and program.
Background
The existing terminal devices are various, so that the resolution of the display screen and the size of the display screen are different, and a display interface of an application program (application) needs to be matched with the display screen.
The display effect after adaptation may be different for terminal devices of different display screens, for example, controls on APP display interfaces of devices with lower pixel count Per Inch (DPI), and the proportion of general text display is larger; the control on the APP display interface of the equipment with higher DPI has smaller text display proportion and does not meet the requirements of users. Therefore, it is needed to realize an APP window display method with better display effect for those skilled in the art.
Disclosure of Invention
The invention provides a window display method, a device, equipment, a storage medium and a program, which are used for solving the defect that the display proportion in window display in the prior art does not meet the requirement of a user, and realizing the window display method with better display effect.
The invention provides a window display method which is applied to electronic equipment, wherein the electronic equipment runs a first operating system, the first operating system comprises at least one first application program APP, and the method comprises the following steps:
acquiring a first proportional parameter corresponding to a target APP; the target APP is any one of the first APP;
determining a first logic size corresponding to a window of the target APP according to a first proportional parameter corresponding to the target APP and the display size of the window of the target APP;
and displaying the window of the target APP according to the first logic size corresponding to the window of the target APP and the first scale parameter. Comprising the following steps:
according to the window display method provided by the invention, the determining the first logic size corresponding to the window of the target APP comprises the following steps:
and determining a first logic size corresponding to the window of the target APP as the display size divided by the first scale parameter.
According to the window display method provided by the invention, after determining the first logic size corresponding to the window of the target APP, the method further comprises:
under the condition that the proportion parameters corresponding to the target APP are changed, obtaining a second proportion parameter corresponding to the target APP;
determining a second logic size corresponding to the window of the target APP according to the second proportion parameter and the display size of the window of the target APP;
and displaying the window of the target APP according to the second logic size and the second proportion parameter.
According to the window display method provided by the invention, before the proportional parameters corresponding to the target APP are obtained, the window display method further comprises the following steps:
receiving a first input of a user;
responding to the first input, and acquiring first proportional parameters corresponding to each first APP in at least one first APP; or alternatively, the first and second heat exchangers may be,
transmitting information of each first APP to a server;
and receiving first proportional parameters corresponding to the first APP, which are sent by the server.
According to the window display method provided by the invention, the method further comprises the following steps:
receiving an input event of a user to a window of the target APP;
responding to the input event, and acquiring a first position coordinate corresponding to the input event; the first position coordinates are physical coordinates of the display screen;
converting the first position coordinate into a second position coordinate according to the first proportional parameter; the second position coordinates are position coordinates relative to a logical size;
and processing the input event according to the second position coordinates.
According to the window display method provided by the invention, the first scale parameter corresponding to the first APP of the preset type is a first preset value.
According to the window display method provided by the invention, the electronic equipment further comprises a second operating system which runs in the first operating system in a containerized mode, the second operating system comprises a second APP, and the proportion parameter corresponding to the second APP is a second preset value.
According to the window display method provided by the invention, the logic size comprises the following steps: the number of pixels of the window in the length direction and the number of pixels of the window in the width direction.
The invention also provides a window display device, which is applied to electronic equipment, the electronic equipment runs a first operating system, the first operating system comprises a first application program APP, and the window display device comprises:
the acquisition module is used for acquiring a first proportional parameter corresponding to the target APP; the target APP is any one of the first APP;
the processing module is used for determining a first logic size corresponding to the window of the target APP according to a first proportional parameter corresponding to the target APP and the display size of the window of the target APP;
the display module is used for displaying the window of the target APP according to the first logic size corresponding to the window of the target APP and the first scale parameter.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the window display methods described above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a window display method as described in any of the above.
According to the window display method, the device, the equipment, the storage medium and the program, through configuring the first scale parameters for the target APP in advance, when the window of the target APP is displayed, the corresponding first logic size is determined for the window of the target APP according to the first scale parameters and the display size of the window of the target APP; therefore, according to the first logic size and the first scale parameter corresponding to the window of the target APP, the window of the target APP is displayed, and because the first scale parameter is configured for the target APP, when the window of the target APP is displayed based on the first scale parameter and the determined first logic size, the displayed window is matched with the display screen of the current equipment, and the display effect is good.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an embodiment of a window display method according to the present invention;
FIG. 2 is one of the window display schematics provided by the present invention;
FIG. 3 is a second diagram of a window display according to the present invention;
FIG. 4 is a third diagram of a window display according to the present invention;
FIG. 5 is a schematic diagram of the principle of position coordinate transformation according to the present invention;
FIG. 6 is a schematic diagram of a second position coordinate transformation principle provided by the present invention;
FIG. 7 is a flowchart of another embodiment of a window display method according to the present invention;
fig. 8 is a schematic structural view of a window display device provided by the present invention;
fig. 9 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
First, a description is given of a part of vocabulary and an application scenario according to an embodiment of the present invention.
The method of the embodiment of the invention can be applied to the electronic equipment provided with the first operating system, wherein the first operating system comprises at least one APP.
In embodiments of the present invention, an application APP generally refers to an application having one or more functions in an operating system, such as a file manager, a picture viewer, a music player, a video player, etc.
The method provided by the embodiment of the invention can be realized by executing the corresponding software code by one electronic device such as a processor, or can be realized by executing the corresponding software code by one electronic device and simultaneously carrying out data interaction with a server.
In the related art, for terminal devices with different display screens, the display effect after adaptation may be different, for example, a control on an APP display interface of a device with a low Dot Per Inch (DPI) is larger, and the proportion of general text display is larger; the control on the APP display interface of the equipment with higher DPI has smaller text display proportion and does not meet the requirements of users. For example, assume that for a display screen of the same size, the control displayed requires a 30×30 pixel area, with a larger control being displayed for a display screen of 200×200 resolution and a smaller control being displayed for a display screen of 2000×2000 resolution.
With the development of display technology, more and more devices adopt display screens with high precision resolution (High Density Per inch, HDPI), and for display screens with different sizes of HDPI, there is a problem of display effect, and APP content is displayed particularly small on display screens with small sizes of HDPI. On a display screen with a large HDPI size, APP content is displayed relatively large. Neither too large nor too small a display effect can satisfy the needs of users
According to the window display method provided by the embodiment of the invention, different proportion parameters are set for different APP, and when the window of the APP is displayed, the window of the APP is configured with the same logic size by utilizing the corresponding proportion parameters, so that each APP can be adjusted to a proper display effect.
The following describes the technical scheme of the present invention in detail with reference to fig. 1 to 7. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 1 is a flowchart of an embodiment of a window display method according to the present invention. As shown in fig. 1, the method provided in this embodiment is applied to an electronic device, where the electronic device runs a first operating system, and the first operating system includes at least one first application APP, and the method includes:
step 101, obtaining a first proportional parameter corresponding to a target APP; the target APP is any one of the first APP;
specifically, there are 2 sizes for the window of APP: the display size is the size of the window finally presented; the logical size is the layout size of the window, which is itself considered.
As shown in fig. 2, the logical size is smaller than the display size, and the content of the window on the final display interface is stretched according to a certain scale parameter, and the displayed content, such as a font, becomes larger.
As shown in fig. 3, the logical size is larger than the display size, and the content of the window on the final display interface is shrunk according to a certain scale parameter, so that the displayed content, such as font, becomes smaller.
Therefore, when displaying the window of the APP, it is necessary to provide an appropriate first scale parameter according to the display size, and the window display content.
For example, the fonts of the content to be displayed in the window are larger, and the fonts are displayed with a proper size for better user experience during display, so that a larger logical size, i.e. a logical size larger than the display size, can be set, the window is contracted during display, and the first scale parameter can be set to a value smaller than 1 and larger than 0.
For example, the fonts of the content to be displayed in the window are smaller, and the fonts are displayed with a proper size for better user experience during display, so that a smaller logical size, that is, a logical size smaller than the display size, can be set, the window is stretched during display, and the first scale parameter can be set to a value greater than 1.
Step 102, determining a first logic size corresponding to a window of the target APP according to a first scale parameter corresponding to the target APP and the display size of the window of the target APP.
Wherein the display size is determined based on the size of the display screen.
Wherein the logical size includes: the number of pixels of the window in the length direction and the number of pixels of the window in the width direction.
Optionally, the display size may also include: the number of pixels of the window in the length direction and the number of pixels of the window in the width direction.
Specifically, when the window of the target APP is displayed, for example, the operation of the user on the target APP is received, and according to the first scale parameter corresponding to the target APP obtained in step 101, the display size of the window of the target APP is determined, so as to determine the first logic size corresponding to the window of the target APP.
The display size of the window of the target APP can be obtained based on the size of the display screen of the device, for example, the display size of the window is equal to the size of the display screen of the device.
For example, the first scale parameter is 2, the display size is 100×100, and the first logical size may be 50×50.
Alternatively, step 102 may be implemented as follows:
and determining the first logic size corresponding to the window of the target APP as the display size of the window divided by the first scale parameter.
Specifically, when creating a window, assuming that the display Size is Size1, an appropriate first logical Size2, size 2= (Size 1)/(SCALE) is set in the window manager for the window of the target APP according to the first SCALE parameter SCALE.
For example, the window of the target APP has a display size of 1280×720, and assuming that the first scale parameter is 2, the logical size is 640×360.
Step 103, displaying the window of the target APP according to the first logic size and the first scale parameter corresponding to the window of the target APP.
Specifically, the actual display size of the window is determined according to the first logic size and the first proportional parameter, and the window of the target APP is rendered and displayed so as to manage the window according to the actual display size of the window.
For example, the actual display size of the window is the first logical size multiplied by the first scale parameter.
As shown in fig. 4, there are 3 types of APP windows: window a is scaled down 2 times, its logical size is 200 x 200 (SCALE is 0.5); the logical size of window B is 100 x 100 (SCALE is 1) window B size is unchanged; window C stretches 2 times and its logical size is 50 x 50 (SCALE is 2). The window manager draws 3 windows into the same display area (100 x 100). Window a is visually smaller (halved) in its content as it shrinks. The window B is not scaled because the logical size is consistent with the display size, and the actual display size is consistent with the logical size. Window C is enlarged 2 times because the logical size is 1/2 of the display size, and the window manager draws it 2 times and draws it to the display device as if it were enlarged twice.
In the embodiment of the invention, the SCALE can be configured for each APP independently, and the display proportion can be adjusted for each APP window independently. For SCALE with dense layout content and larger APP configuration with smaller display proportion, the window content of the APP can be displayed more clearly. For simple interaction, more content such as various readers can configure smaller SCALE to display more content in one screen.
According to the method, through configuring first scale parameters for the target APP in advance, when the window of the target APP is displayed, corresponding first logic size is determined for the window of the target APP according to the first scale parameters and the display size of the window of the target APP; therefore, according to the first logic size and the first scale parameter corresponding to the window of the target APP, the window of the target APP is displayed, and because the first scale parameter is configured for the target APP, when the window of the target APP is displayed based on the first scale parameter and the determined first logic size, the displayed window is matched with the display screen of the current equipment, and the display effect is good.
In an embodiment, the logic size is smaller than the display size of the window when the first scale parameter is greater than a preset value; or alternatively, the first and second heat exchangers may be,
under the condition that the first proportional parameter is equal to a preset value, the logic size is the same as the display size of the window;
and in the case that the first scale parameter is smaller than the preset value, the logic size is larger than the display size of the window.
As shown in fig. 2 and 3, when the preset value is, for example, 1 and the first scale parameter is greater than 1, the window needs to be stretched when the window of the APP is displayed, that is, the logical size of the window is smaller than the display size; when the first ratio parameter is smaller than 1, when the window of the APP is displayed, the window needs to be contracted, namely the logical size of the window is larger than the display size; when the first scale parameter is equal to 1, when the window of the APP is displayed, the window does not need to be scaled, namely the logical size of the window is equal to the display size.
In an embodiment, the method further comprises:
under the condition that the proportion parameters corresponding to the target APP are changed, obtaining a second proportion parameter corresponding to the target APP;
determining a second logic size corresponding to the window of the target APP according to the second proportion parameter and the display size of the window of the target APP;
and displaying the window of the target APP according to the second logic size and the second proportion parameter.
Specifically, in some scenarios, for example, when the user considers that the display proportion of the display content of the current window is not suitable and needs to be adjusted, a new proportion parameter may be set for the APP.
For example, when the first scale parameter becomes larger, the second logical size may be set to a smaller size than the first logical size, and when the first scale parameter becomes smaller, the second logical size may be set to a larger size than the first logical size, the display size is unchanged, and the final window display effect seen by the user is unchanged.
The process of determining the second logical size and displaying the window of the target APP is similar to the foregoing embodiment and will not be repeated here.
For example, the first logical size of the window a is 200×200, the SCALE corresponding to the APP to which the window a belongs becomes 1, and the display size is 100×100, and then the second logical size needs to be reduced based on the first logical size, for example, the second logical size is 100×100.
In the above embodiment, after the proportional parameter corresponding to the APP is changed, the logical size of the window of the APP is updated, and the window is displayed according to the updated logical size and the proportional parameter, so that the display effect of the window can be adjusted at any time, and the flexibility is high.
In an embodiment, the scaling parameter may be set by a user, or may be configured by a server, the method further comprising:
receiving a first input of a user;
responding to a first input, and acquiring first proportional parameters corresponding to each first APP in at least one first APP; or alternatively, the first and second heat exchangers may be,
sending information of each first APP to a server;
and receiving first proportional parameters corresponding to the first APP transmitted by the server.
Specifically, the user starts operation, the electronic device obtains information of the installed APP, for example, the information is displayed to the user through a list, and the user sets a first proportional parameter corresponding to the first APP. Or, the cloud server can also uniformly push the most suitable first proportional parameters suitable for the APP in the current list to the electronic equipment according to the list of the information of the installed APP, so that user operation is saved.
In order to achieve a good display effect, different proportion parameters can be set for different APP to adapt to the current display screen.
The server can be a developer of an operating system deployed at the cloud end, collect and store the proportion parameters of related APPs, and when a user has a need, the operating system can scan an APP list on a local system and send the APP list to the server at the cloud end, and obtain the proportion parameters suitable for the related APPs from the server at the cloud end; the App developer is deployed in the cloud and pushes the proportional parameters suitable for the current system to the App on the local system according to the request of the App.
Further, when the window of the target APP is displayed, the first scale parameters corresponding to the target APP are obtained from the first scale parameters corresponding to each first APP, and further, the first logic size corresponding to the window of the target APP is determined, and the window of the target APP is displayed.
Optionally, when the scale parameter corresponding to the target APP changes, that is, a new scale parameter is set by a user, or a new scale parameter is pushed by a server, etc., a new logic size corresponding to the window of the target APP is determined according to the new scale parameter, and rendering and displaying are performed on the window of the target APP based on the new logic size.
In the above embodiment, the corresponding proportion parameters for different APP can be configured by the user setting or the server configuration mode, so that the display effects of different APP can meet the user requirements.
In one embodiment, the method further comprises:
receiving an input event of a user to a window of a target APP;
responding to an input event, and acquiring a first position coordinate corresponding to the input event; the first position coordinates are physical coordinates on the display screen;
converting the first position coordinate into a second position coordinate according to the first proportional parameter;
and processing the input event according to the second position coordinates.
Specifically, the input event includes, for example: before an input event is sent to a target APP, a first position coordinate corresponding to the input event, namely a position coordinate corresponding to a display size, is required to be converted into a second position coordinate corresponding to a logic size, namely according to a first scale parameter corresponding to the target APP, so that the target APP can process the input event based on the second position coordinate.
For example, as shown in fig. 5, the user performs a touch operation on the displayed window, where the first position coordinate of the input event corresponding to the touch operation is the coordinate of the point a, and based on the position coordinate under the coordinate system of the display window, it is necessary to convert the first position coordinate into the second position coordinate under the logic window of the target APP, that is, the coordinate of the point A1, assuming that the coordinate of the point a is (500,100), and the coordinate of the point A1 is (500/2, 100/2), that is (250, 50). The target APP processes the input event of the user based on the second position coordinates.
Wherein, the logic window is a window based on the logic size layout of the APP.
For example, as shown in fig. 6, the first position coordinate of the input event is the coordinate of the B point, and based on the position coordinate under the coordinate system of the display window, it is necessary to convert the first position coordinate into the second position coordinate under the logical window of the target APP, that is, the coordinate of the B1 point, assuming that the coordinate of the B point is (500,100), and the coordinate of the A1 point is (500×2,100×2), that is (1000,200). The target APP processes the input event of the user based on the second position coordinates.
In the above embodiment, for different APPs, the position coordinates corresponding to the input event may be adjusted according to the corresponding input event and the corresponding proportion parameter, so that the APP may accurately locate the input event, thereby performing corresponding processing.
Optionally, for a first APP of a preset type, the corresponding proportional parameter is a first preset value.
For example, the window of some types of APP has a better current display effect and does not need to be changed, so that the first scale parameter corresponding to the APP can be fixed to a preset value, and the preset type is, for example, an x-type window, and the x-type window is a standard graphical user interface for a UNIX system, and the first scale parameter can be set to 1.
In the above embodiment, for the APP of the preset type, a fixed proportion parameter may be set, so that the user does not need to adjust the proportion parameter, and the user operation is reduced.
In an embodiment, the electronic device further includes a second operating system running in the first operating system in a containerized manner, the second operating system includes a second APP, and the proportional parameter corresponding to the second APP is a second preset value.
Optionally, at least two systems are provided in the electronic device, such as a first operating system and a second operating system, the second operating system running in a containerized manner in the first operating system. As known to those skilled in the art, the containerization, that is, LXC implemented based on Linux kernel characteristics, fully utilizes the cgroups and Namespace characteristics to isolate processes and resources, enabling an efficient, lightweight implementation of the second operating system.
In embodiments of the present invention, although not explicitly described, the first operating system and the second operating system may be the same, e.g., the first operating system and the second operating system are both Linux or both Android; the first operating system and the second operating system may also be different, for example, one of the first operating system and the second operating system is Linux and one of the first operating system and the second operating system is Android.
For the second APP of the second operating system, a fixed scale parameter may be set, for example, to a second preset value, where the user does not need to adjust the second preset value, and the second preset value may be a scale parameter corresponding to the second APP under the condition that the display effect under the second operating system is better.
In this embodiment, the first operating system may be compatible with the window of the APP of the second operating system, so that the window of the APP maintains the original display effect of the second operating system.
Illustratively, as shown in FIG. 7, the method includes the steps of:
the information of each APP in the device is collected through the package manager and is notified to the user, the user configures the SCALE parameter SCALE for each APP, for example, the package manager scans the APP which is already installed in the first operating system to generate a setting list, and the user manually configures the SCALE of each APP. The packet manager is a software module under the first operating system, and may also be an APP.
When a window is created, a window manager sets a proper logic size for a window of a target APP according to a SCALE set by a user: logic size= (display size)/(SCALE).
The target APP performs layout rendering on the windows, the window manager performs fusion processing on the windows, and the windows of the target APP are displayed on the display screen. Wherein the fusion process is performed on overlapping portions, for example, for a plurality of overlapping windows.
The user operates an input device, such as a mouse, a keyboard, a touch screen, and the like, the input device sends an input event to the window manager, the window manager converts position coordinates corresponding to the input event, and the target APP processes the input event according to the converted position coordinates.
The window display device provided by the invention is described below, and the window display device described below and the window display method described above can be referred to correspondingly.
Fig. 8 is a schematic structural diagram of a window display device provided by the present invention. As shown in fig. 8, the window display device provided in this embodiment is applied to an electronic device, where the electronic device runs a first operating system, the first operating system includes a first application program APP, and the window display device includes:
an obtaining module 210, configured to obtain a first scale parameter corresponding to a target APP; the target APP is any one of the first APP;
the processing module 220 is configured to determine a first logical size corresponding to the window of the target APP according to a first scale parameter corresponding to the target APP and a display size of the window of the target APP;
the display module 230 is configured to display the window of the target APP according to a first logic size corresponding to the window of the target APP and the first scale parameter.
Optionally, the processing module 220 is specifically configured to:
and determining a first logic size corresponding to the window of the target APP as the display size divided by the first scale parameter.
Optionally, the processing module 220 is further configured to:
under the condition that the proportion parameters corresponding to the target APP are changed, obtaining a second proportion parameter corresponding to the target APP;
determining a second logic size corresponding to the window of the target APP according to the second proportion parameter and the display size of the window of the target APP;
the display module 230 is further configured to: and displaying the window of the target APP according to the second logic size and the second proportion parameter.
Optionally, the obtaining module 210 is further configured to:
receiving a first input of a user;
the processing module 220 is specifically configured to: responding to the first input, and acquiring first proportional parameters corresponding to each first APP in at least one first APP; or alternatively, the first and second heat exchangers may be,
a transmitting module (not shown in fig. 8) for transmitting information of each of the first APPs to a server;
the obtaining module 210 is further configured to receive first scale parameters corresponding to the first APPs sent by the server.
Optionally, the obtaining module 210 is further configured to:
receiving an input event of a user to a window of the target APP;
the processing module 220 is specifically configured to: responding to the input event, and acquiring a first position coordinate corresponding to the input event; the first position coordinates are physical coordinates of the display screen;
converting the first position coordinate into a second position coordinate according to the first proportional parameter; the second position coordinates are position coordinates relative to a logical size;
and processing the input event according to the second position coordinates.
Optionally, the first proportional parameter corresponding to the first APP of the preset type is a first preset value.
Optionally, the electronic device further includes a second operating system running in the first operating system in a containerized manner, the second operating system includes a second APP, and the proportion parameter corresponding to the second APP is a second preset value.
Optionally, the logical size includes: the number of pixels of the window in the length direction and the number of pixels of the window in the width direction.
The device of the embodiment of the present invention is configured to perform the method of any of the foregoing method embodiments, and its implementation principle and technical effects are similar, and are not described in detail herein.
Fig. 9 illustrates a physical schematic diagram of an electronic device, as shown in fig. 9, which may include: processor 810, communication interface (Communications Interface) 820, memory 830, and communication bus 840, wherein processor 810, communication interface 820, memory 830 accomplish communication with each other through communication bus 840. The processor 810 may invoke logic instructions in the memory 830 to perform a window display method comprising: acquiring a first proportional parameter corresponding to a target APP; the target APP is any one of the first APP; determining a first logic size corresponding to a window of the target APP according to a first proportional parameter corresponding to the target APP and the display size of the window of the target APP; and displaying the window of the target APP according to the first logic size corresponding to the window of the target APP and the first scale parameter.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform a window display method provided by the methods described above, the method comprising: acquiring a first proportional parameter corresponding to a target APP; the target APP is any one of the first APP; determining a first logic size corresponding to a window of the target APP according to a first proportional parameter corresponding to the target APP and the display size of the window of the target APP; and displaying the window of the target APP according to the first logic size corresponding to the window of the target APP and the first scale parameter.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the above-provided window display methods, the method comprising: acquiring a first proportional parameter corresponding to a target APP; the target APP is any one of the first APP; determining a first logic size corresponding to a window of the target APP according to a first proportional parameter corresponding to the target APP and the display size of the window of the target APP; and displaying the window of the target APP according to the first logic size corresponding to the window of the target APP and the first scale parameter.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (11)

1. A window display method, applied to an electronic device, where the electronic device runs a first operating system, and the first operating system includes at least one first application APP, the method comprising:
acquiring a first proportional parameter corresponding to a target APP; the target APP is any one of the first APP;
determining a first logic size corresponding to a window of the target APP according to a first proportional parameter corresponding to the target APP and the display size of the window of the target APP;
displaying the window of the target APP according to a first logic size corresponding to the window of the target APP and the first scale parameter;
the method further comprises the steps of:
receiving an input event of a user to a window of the target APP;
responding to the input event, and acquiring a first position coordinate corresponding to the input event; the first position coordinates are physical coordinates of the display screen;
converting the first position coordinate into a second position coordinate according to the first proportional parameter; the second position coordinates are position coordinates relative to the first logical size;
and processing the input event according to the second position coordinates.
2. The method of claim 1, wherein determining the first logical size corresponding to the window of the target APP comprises:
and determining a first logic size corresponding to the window of the target APP as the display size divided by the first scale parameter.
3. The method according to claim 1 or 2, wherein after determining the first logical size corresponding to the window of the target APP, further comprising:
under the condition that the proportion parameters corresponding to the target APP are changed, obtaining a second proportion parameter corresponding to the target APP;
determining a second logic size corresponding to the window of the target APP according to the second proportion parameter and the display size of the window of the target APP;
and displaying the window of the target APP according to the second logic size and the second proportion parameter.
4. The method according to claim 1 or 2, wherein before the obtaining the proportional parameter corresponding to the target APP, further comprises:
receiving a first input of a user;
responding to the first input, and acquiring first proportional parameters corresponding to each first APP in at least one first APP; or alternatively, the first and second heat exchangers may be,
transmitting information of each first APP to a server;
and receiving first proportional parameters corresponding to the first APP, which are sent by the server.
5. A method according to claim 1 or 2, characterized in that,
the first proportional parameter corresponding to the first APP of the preset type is a first preset value.
6. The method according to claim 1 or 2, wherein the electronic device further comprises a second operating system running in a containerized manner in the first operating system, the second operating system comprising a second APP, the second APP corresponding to a scaling parameter of a second preset value.
7. The method of claim 1 or 2, wherein the logical size comprises: the number of pixels of the window in the length direction and the number of pixels of the window in the width direction.
8. A window display device, applied to an electronic device, the electronic device running a first operating system, the first operating system including a first application APP, the window display device comprising:
the acquisition module is used for acquiring a first proportional parameter corresponding to the target APP; the target APP is any one of the first APP;
the processing module is used for determining a first logic size corresponding to the window of the target APP according to a first proportional parameter corresponding to the target APP and the display size of the window of the target APP;
the display module is used for displaying the window of the target APP according to the first logic size corresponding to the window of the target APP and the first scale parameter;
the acquisition module is further configured to:
receiving an input event of a user to a window of the target APP;
the processing module is specifically configured to: responding to the input event, and acquiring a first position coordinate corresponding to the input event; the first position coordinates are physical coordinates of the display screen;
converting the first position coordinate into a second position coordinate according to the first proportional parameter; the second position coordinates are position coordinates relative to a logical size;
and processing the input event according to the second position coordinates.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the window display method according to any one of claims 1 to 7 when the program is executed by the processor.
10. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the steps of the window display method according to any one of claims 1 to 7.
11. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1 to 7.
CN202110980432.3A 2021-08-25 2021-08-25 Window display method, device, apparatus, storage medium, and program Active CN113672332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110980432.3A CN113672332B (en) 2021-08-25 2021-08-25 Window display method, device, apparatus, storage medium, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110980432.3A CN113672332B (en) 2021-08-25 2021-08-25 Window display method, device, apparatus, storage medium, and program

Publications (2)

Publication Number Publication Date
CN113672332A CN113672332A (en) 2021-11-19
CN113672332B true CN113672332B (en) 2024-03-12

Family

ID=78546038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110980432.3A Active CN113672332B (en) 2021-08-25 2021-08-25 Window display method, device, apparatus, storage medium, and program

Country Status (1)

Country Link
CN (1) CN113672332B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11161427A (en) * 1997-11-26 1999-06-18 Toshiba Corp Data input device and coordinate transforming method applied to the device
US5940077A (en) * 1996-03-29 1999-08-17 International Business Machines Corporation Method, memory and apparatus for automatically resizing a window while continuing to display information therein
JP2008287360A (en) * 2007-05-15 2008-11-27 Hitachi Ltd Plant monitoring display apparatus
US7590947B1 (en) * 2004-05-28 2009-09-15 Adobe Systems Incorporated Intelligent automatic window sizing
JP2009282637A (en) * 2008-05-20 2009-12-03 Sharp Corp Display method and display device
EP2849052A1 (en) * 2013-09-16 2015-03-18 Samsung Electronics Co., Ltd Display apparatus for sensing touch input and touch input method thereof
CN107301045A (en) * 2017-06-12 2017-10-27 青岛海信电器股份有限公司 Window display method and device
CN112328353A (en) * 2021-01-06 2021-02-05 腾讯科技(深圳)有限公司 Display method and device of sub-application player, electronic equipment and storage medium
WO2021042680A1 (en) * 2019-09-06 2021-03-11 青岛海信传媒网络技术有限公司 User interface display method and display device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008072279A (en) * 2006-09-13 2008-03-27 Sony Corp Video image information processing apparatus, video image information processing method, and computer/program
US9613159B2 (en) * 2010-10-19 2017-04-04 Apple Inc. Systems, methods, and computer-readable media for integrating a fit-to-size scale factor in a sequence of scale factors

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5940077A (en) * 1996-03-29 1999-08-17 International Business Machines Corporation Method, memory and apparatus for automatically resizing a window while continuing to display information therein
JPH11161427A (en) * 1997-11-26 1999-06-18 Toshiba Corp Data input device and coordinate transforming method applied to the device
US7590947B1 (en) * 2004-05-28 2009-09-15 Adobe Systems Incorporated Intelligent automatic window sizing
JP2008287360A (en) * 2007-05-15 2008-11-27 Hitachi Ltd Plant monitoring display apparatus
JP2009282637A (en) * 2008-05-20 2009-12-03 Sharp Corp Display method and display device
EP2849052A1 (en) * 2013-09-16 2015-03-18 Samsung Electronics Co., Ltd Display apparatus for sensing touch input and touch input method thereof
CN107301045A (en) * 2017-06-12 2017-10-27 青岛海信电器股份有限公司 Window display method and device
WO2021042680A1 (en) * 2019-09-06 2021-03-11 青岛海信传媒网络技术有限公司 User interface display method and display device
CN112328353A (en) * 2021-01-06 2021-02-05 腾讯科技(深圳)有限公司 Display method and device of sub-application player, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113672332A (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CN110555795B (en) High resolution style migration
CN110458918B (en) Method and device for outputting information
US10671357B2 (en) Preview changes to mobile applications at different display resolutions
CN105447204A (en) Website recognition method and apparatus
CN112416483A (en) Method for accessing multiple displays to cloud desktop and related equipment
CN111381749A (en) Image display and processing method, device, equipment and storage medium
CN106878151B (en) Method, equipment and system for transmitting information
CN114218890A (en) Page rendering method and device, electronic equipment and storage medium
CN107122104B (en) Data display method and device
CN113672332B (en) Window display method, device, apparatus, storage medium, and program
CN111767492B (en) Picture loading method and device, computer equipment and storage medium
CN112840305B (en) Font switching method and related product
CN107248947A (en) Expression processing method and processing device, computer equipment and storage medium
US20150269131A1 (en) Content conversion apparatus and method, and communication system
CN115756461A (en) Annotation template generation method, image identification method and device and electronic equipment
CN115376137A (en) Optical character recognition processing and text recognition model training method and device
CN109726382B (en) Typesetting method and device
CN114090918A (en) Parameter adjusting method, device, storage medium and electronic device
CN113127260B (en) Display exception handling method, device, equipment and medium
CN113613043A (en) Screen display and image processing method, embedded device and cloud server
CN113032696A (en) Display method and display device of page picture
KR20210057845A (en) Deep Learning Frame Work-Based Image Recognition Method and System Using Training Image Data
CN109274904A (en) A kind of combination caption signal method for previewing, server-side and system
KR102379637B1 (en) Deep learning artificial Neural Network based image recognition method and system
CN116033106B (en) Image processing method and device for multiple sampling and electronic equipment

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220408

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address before: 2005, floor 2, No. 39, West Street, Haidian District, Beijing 100082

Applicant before: Beijing jingling Information System Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant