CN111258704A - Application screen display method and device, storage medium and electronic device - Google Patents
Application screen display method and device, storage medium and electronic device Download PDFInfo
- Publication number
- CN111258704A CN111258704A CN202010105434.3A CN202010105434A CN111258704A CN 111258704 A CN111258704 A CN 111258704A CN 202010105434 A CN202010105434 A CN 202010105434A CN 111258704 A CN111258704 A CN 111258704A
- Authority
- CN
- China
- Prior art keywords
- target
- display
- target terminal
- value
- application
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a display method and device of an application picture, a storage medium and an electronic device. Wherein, the method comprises the following steps: acquiring safety region information of a target terminal under the condition that the target terminal runs a target application currently and determines that first display configuration information corresponding to the target terminal cannot be acquired; generating second display configuration information according to the safety region information; and displaying the application picture on a second display area in the display screen in a zooming mode according to the second display configuration information. The invention solves the technical problems of complex operation and manpower waste caused by the fact that newly marketed terminal equipment which is not configured with resolution cannot be scaled according to the DPI scaling rule.
Description
Technical Field
The invention relates to the field of computers, in particular to a display method and device of an application picture, a storage medium and an electronic device.
Background
For UI interface display of terminal screens, a currently common method is automatic independent resolution UI scaling by using DPI scaling rules. The DPI curve comprises different resolutions and corresponding scaling values, and the DPI scaling rule scales the elements of the user interface according to the different resolutions. Therefore, the UI screen of the equipment such as the mobile phone is converted into a tablet computer or a PC, and the equipment is suitable for a series of equipment resolutions.
However, since the DPI scaling rule requires scaling according to the resolution of the device, it is only applicable to terminal devices of known resolution. And for newly-marketed terminal equipment without configured resolution, the interface display is abnormal. If the DPI scaling rule of the device needs to be updated, developers need to update the configuration file of the device, which is not only cumbersome to operate, but also labor-consuming.
Aiming at the problems of complex operation and manpower waste caused by the fact that newly marketed terminal equipment which is not configured with resolution cannot be zoomed according to a DPI zooming rule in the related technology, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a display method and device of an application picture, a storage medium and an electronic device, and at least solves the technical problems of complex operation and labor waste caused by the fact that a newly-marketed terminal device which is not configured with a resolution cannot be zoomed according to a DPI zooming rule.
According to an aspect of an embodiment of the present invention, there is provided an application screen display method including: the method comprises the steps that safety region information of a target terminal is obtained under the condition that the target terminal runs a target application at present and first display configuration information corresponding to the target terminal cannot be obtained through determination, wherein the safety region information is used for representing a first display region which is not shielded in a display screen of the target terminal, and the first display configuration information is used for displaying an application picture of the target application on the display screen of the target terminal; generating second display configuration information according to the safety area information, wherein the second display configuration information is used for displaying an application screen of the target application on a display screen of the target terminal in a zooming manner; displaying the application picture on a second display area in the display screen in a zooming manner according to the second display configuration information, wherein the first display area comprises the second display area.
Optionally, the acquiring security area information of the target terminal includes: and acquiring the safety area information through a first interface of an operating system of the target terminal.
Optionally, the acquiring security area information of the target terminal includes: and acquiring the safety area information through a second interface of a hardware system of the target terminal.
Optionally, the generating second display configuration information according to the safety area information includes: determining a first distance value from the left boundary of the first display area to the left boundary of the display screen and a second distance value from the right boundary of the first display area to the right boundary of the display screen when the target terminal is in a landscape state; and determining a target offset value according to the first distance value and the second distance value, wherein the second display configuration information comprises the target offset value.
Optionally, the determining a target offset value according to the first distance value and the second distance value includes: setting the target offset value to the first distance value or the second distance value if the first distance value and the second distance value are equal; setting the target offset value to the greater of the first and second distance values if the first and second distance values are not equal.
Optionally, the determining a target offset value according to the first distance value and the second distance value includes: and under the condition that the larger value of the first distance value and the second distance value is within a target value range, determining the target offset value as a target preset value, wherein the target preset value is greater than or equal to the larger value, and the target preset value is greater than or equal to the upper boundary of the target value range.
Optionally, determining the target offset value as a target preset value when the larger of the first distance value and the second distance value is within a target value range includes: determining the target offset value to be 30 pixels if the larger value is less than or equal to 30 pixels; in the case where the larger value is greater than 30 and less than or equal to 50 pixels, the target offset value is determined to be 50 pixels.
Optionally, the displaying the application screen on a second display area in the display screen in a zooming manner according to the second display configuration information includes: retracting both the left boundary and the right boundary of the display screen of the target terminal in the landscape state into the target offset value to form a second display area; and displaying the application picture on the second display area according to a preset scaling.
Optionally, before acquiring the security area information of the target terminal, the method further includes: starting the target application in the target terminal, and reporting the device information of the target terminal to a target server, wherein the device information of the target terminal comprises: the device model of the target terminal and the configuration information of the display screen of the target terminal.
According to another aspect of the embodiments of the present invention, there is also provided a display apparatus of an application screen, including: the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring safe region information of a target terminal under the condition that the target terminal runs a target application currently and determines that first display configuration information corresponding to the target terminal cannot be acquired, the safe region information is used for representing a first display region which is not shielded in a display screen of the target terminal, and the first display configuration information is used for displaying an application picture of the target application on the display screen of the target terminal; a generating module, configured to generate second display configuration information according to the security area information, where the second display configuration information is used to display an application screen of the target application on a display screen of the target terminal in a scaled manner; and the display module is used for displaying the application picture on a second display area in the display screen in a zooming mode according to the second display configuration information, wherein the first display area comprises the second display area.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned display method of an application screen when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the display method of the application screen through the computer program.
In the embodiment of the invention, when the target terminal runs the target application currently and the first display configuration information corresponding to the target terminal cannot be acquired is determined, the second display configuration information is generated according to the safety region information by acquiring the safety region information of the target terminal, and the application picture is displayed on the second display region in the display screen in a zooming mode according to the second display configuration information. The method and the device achieve the purpose of automatically generating the second display configuration information according to the safety region information of the terminal device and displaying the application picture on the terminal display screen in a zooming mode according to the second display configuration information, thereby achieving the technical effects of simplifying operation and reducing manual operation, and further solving the technical problems of complex operation and manpower waste caused by the fact that the newly marketed terminal device which is not configured with resolution cannot zoom according to the DPI zooming rule.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram of an application environment of an alternative display method of an application screen according to an embodiment of the present invention;
FIG. 2 is a first diagram illustrating an alternative application screen display method according to an alternative embodiment of the present invention;
FIG. 3 is a second diagram illustrating an alternative application screen display method according to an alternative embodiment of the present invention;
FIG. 4 is a flowchart of an alternative display method for an application screen according to an embodiment of the present invention;
FIG. 5 is a third schematic diagram illustrating an alternative application screen display method according to an alternative embodiment of the present invention;
FIG. 6 is a fourth schematic diagram illustrating an alternative application screen display method according to an alternative embodiment of the present invention;
FIG. 7 is a fifth diagram illustrating an alternative application screen display method according to an alternative embodiment of the present invention;
FIG. 8 is a sixth schematic diagram illustrating an alternative application screen display method according to an alternative embodiment of the present invention;
FIG. 9 is a seventh illustration of an alternative application screen display method according to an alternative embodiment of the present invention;
fig. 10 is an eighth schematic diagram of an alternative application screen display method according to an alternative embodiment of the invention;
FIG. 11 is a ninth illustration of an alternative application screen display method in accordance with an alternative embodiment of the present invention;
fig. 12 is a diagram illustrating an alternative application screen display method according to an alternative embodiment of the present invention;
fig. 13 is a schematic structural diagram of an alternative display device to which a screen is applied according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present invention, there is provided a method for displaying an application screen, and optionally, as an optional implementation, the method for displaying an application screen may be, but is not limited to be, applied to an environment as shown in fig. 1.
Alternatively, in the present embodiment, the display method of the application screen may be, but is not limited to, applied to the target application client 102, wherein the target application client 102 logs in the target terminal 104 to obtain the secure area information of the target terminal, and displays the application screen of the target application client on the second display area of the target terminal in a zooming manner according to the second display configuration information generated by the secure area information. The target application client may be, but not limited to, a game client, an instant messaging client, an audio/video client, a shopping client, and other existing or future application clients that can run on the terminal. The target terminal 104 may be, but not limited to, a mobile phone, a tablet computer, a notebook computer, a PC, and other terminal devices supporting running an application client. The above is merely an example, and this is not limited in this embodiment.
At present, Android and iOS devices have various screen forms, such as a hole digging screen, a water drop screen, a fillet screen, a bang screen, whether the screen supports a full screen, and the like, and these types of terminal screens may be called as special-shaped screens, for example, the full screen shown in fig. 2. The comprehensive screen shown in fig. 3 is a bang screen, hardware such as a camera and a sensor are arranged in a black area above the screen, and parts except the bang screen are used as a display screen of the mobile phone to display view pictures in the terminal.
The existing self-adaptive scheme is completely based on the non Engine 4 Engine. Automatic independent resolution UI scaling by using DPI scaling rules. With the DPI scaling function, DPI scaling rules and DPI curves may be defined to automatically scale elements of the user interface according to different resolutions. The DPI scaling rule determines the scale to be applied, and the DPI curve contains different resolutions and corresponding scaling values. By using the option, the UI screen of the equipment such as a mobile phone and the like can be quickly and conveniently converted into a tablet computer or a PC, and the equipment can adapt to a series of equipment resolutions.
Optionally, as an optional implementation, as shown in fig. 4, the display method of the application screen includes:
step S402, when a target terminal runs a target application currently and it is determined that first display configuration information corresponding to the target terminal cannot be acquired, acquiring security region information of the target terminal, wherein the security region information is used for representing a first display region which is not shielded in a display screen of the target terminal, and the first display configuration information is used for displaying an application picture of the target application on the display screen of the target terminal;
step S404, generating second display configuration information according to the safety area information, wherein the second display configuration information is used for displaying an application screen of the target application on a display screen of the target terminal in a zooming manner;
step S406, displaying the application screen on a second display area in the display screen in a zooming manner according to the second display configuration information, wherein the first display area includes the second display area.
Optionally, the server pre-stores a self-adaptive configuration mode with the terminal model, and after the target application is started in the target terminal, the target application obtains device information of the target terminal to which the target application logs in, where the device information may be the model of the device or terminal display screen information, such as information of the length, the width, and the like of the screen. The server searches whether a self-adaptive configuration mode corresponding to the target terminal exists in a pre-stored configuration table according to the device information of the terminal, if so, the server sends the corresponding configuration mode to the client to indicate the client to configure according to the corresponding self-adaptive configuration mode, and if not, the server sends null data to the client to indicate that the self-adaptive configuration information corresponding to the target terminal does not exist in the server.
As an optional implementation, a secure area SafeArea exists in both the mobile phone terminal and the computer, and the SafeArea defines a visible area of the display screen of the terminal, so as to ensure that sub-views in the SafeArea are not blocked, as shown in fig. 5, which is a secure area of the mobile phone terminal. The terminal sets the information of the security area when leaving the factory, such as the distances from the four boundaries of the security area to the four boundaries of the terminal. In this embodiment, the target application client may generate adaptive configuration information according to the acquired security area information, and display an application screen in the target application on the client in a scaling manner according to the generated adaptive configuration information.
Optionally, the acquiring security area information of the target terminal includes: and acquiring the safety area information through a first interface of an operating system of the target terminal.
As an optional embodiment, if the currently installed system of the target terminal is above Android P, the Notch information is obtained through a windows instruments & getdisplaycutout () interface, where the Notch represents a singular screen, and the Notch information may be screen information of the terminal, and the Notch information includes security area information. If the terminal is provided with other systems, the Notch information can be acquired according to the corresponding interfaces of the installed systems. And if the Notch information is successfully acquired, analyzing the safety region information in the Notch information, and generating a game self-adaptive offset value according to the safety region information in the Notch information.
Optionally, the acquiring security area information of the target terminal includes: and acquiring the safety area information through a second interface of a hardware system of the target terminal.
As an alternative embodiment, the Notch information may be obtained through an interface provided by a hardware system of the terminal. For example. The Notch information can be acquired according to the interface corresponding to the model of the mobile phone, and the safety area information can be analyzed from the Notch information. For example, if the device model of the target terminal is hua as a mobile phone, the Notch information can be acquired through an interface provided for a hardware system; if the target terminal is millet equipment, obtaining Notch information through a millet interface; if the current equipment is OPPO equipment, obtaining the Notch information through an OPPO interface; and if the current equipment is the VIVO equipment, obtaining the Notch information through the VIVO interface. And after the Notch information is successfully acquired through the interface provided by the hardware system, analyzing the safety region information from the Notch information. Specifically, the API for providing Notch information acquisition is realized by a system: the getNotchSize interface ClassLoader cl ═ context. Class hwnotchsizeunitil ═ cl.loadclass ("com.huawei.android.util.hwnotchsizeutitil"); method get ═ hwnotchsizeunitil. getmethod ("getNotchSize"); return the result as an offset array of four sides: int [ ]) get. invoke (HwNotchSizeUtil); the opo may modify android, os, system properties system information, and obtain a character string ClassLoader cl of the Notch by obtaining ro, oppo, screen, heteromorphism; class FtFeature ═ cl. Method get, getmethod ("get", string.class); new instance (); return the offset string whose result is four sides: (String) get. invoke (object, "ro. oppo. screen. hectomorphism"); the VIVO provides API: the method comprises the steps that an isfeatursupplyport interface of an android, oil, FtFeatur library judges whether a hole digging screen ClassLoadercl is supported or not; class FtFeature ═ cl. Method get, getmethod ("isfeaturerupport", int.class); invoke (foolean) get (FtFeature, round _ IN _ SCREEN _ VOIO); if so, acquiring offset sizes int resource id ═ getResources (). getIdentifier ("status _ bar _ height", "dimen", "android") of the left and right sides by the following method; acquiring a responsive size value getResources () according to a resource ID getdimensionpixelsize (resourced); if this method is not taken, another method is used: lass <? -clazz ═ class. Object () is clazz. int height ═ integer.parsein (clazz. getfield ("status _ bar _ height"). get (object). Get the size value getResources (). getdimensionpixelsize (height) of the response according to the resource ID.
Optionally, the generating second display configuration information according to the safety area information includes: determining a first distance value from the left boundary of the first display area to the left boundary of the display screen and a second distance value from the right boundary of the first display area to the right boundary of the display screen when the target terminal is in a landscape state; and determining a target offset value according to the first distance value and the second distance value, wherein the second display configuration information comprises the target offset value.
As an alternative embodiment, as shown in fig. 6, the left and right boundaries of the first display area and the left and right boundaries of the target terminal are identified, and the target application client determines the offset value of the application screen on the display screen according to the difference value between the left boundary of the display screen and the left boundary of the safety area and the difference value between the right boundary of the display screen and the right boundary of the safety area. For example, the first distance value is 5 centimeters and the second distance threshold is 3 centimeters. The target application client can retract the left side of the application screen by 5 cm and retract the right side by 3 cm so as to adapt to the first display area of the target terminal. Therefore, the situation that if the display is displayed in a full screen mode, the view picture in the target application is shielded by the bang or water drop-shaped area on the strange screen, and the use of a user is influenced is avoided. The method has the advantages that the application client can adaptively configure the zoom value according to the screen information of the singular screen of the terminal, and can adaptively configure on terminals of any types, so that the user experience is improved.
Optionally, the determining a target offset value according to the first distance value and the second distance value includes: setting the target offset value to the first distance value or the second distance value if the first distance value and the second distance value are equal; setting the target offset value to the greater of the first and second distance values if the first and second distance values are not equal.
As an alternative embodiment, the left and right setback values may be set to the same value in order that the application screen may be symmetrically displayed on the terminal screen. If the first distance value of the left boundary of the safety area from the left boundary of the terminal display screen is equal to the second distance value of the right boundary of the safety area from the right boundary of the terminal display screen, taking one of the first distance value and the second distance value as a target offset value, and if the first distance value is not equal to the second distance value, taking the larger value. For example, if the first distance value and the second distance value are both 5 centimeters, the application screen of the target application client is zoomed left and right by 5 centimeters and displayed on the terminal display screen by taking 5 centimeters as the target offset value. If the first distance value is 5 cm and the second distance value is 3 cm, the larger 5 cm is taken as the target offset value. The 3 cm and 5 cm in the present embodiment are only described as examples, and do not limit the present application, and the specific value is determined according to the actual situation of the target terminal.
Optionally, the determining a target offset value according to the first distance value and the second distance value includes: and under the condition that the larger value of the first distance value and the second distance value is within a target value range, determining the target offset value as a target preset value, wherein the target preset value is greater than or equal to the larger value, and the target preset value is greater than or equal to the upper boundary of the target value range.
As an alternative embodiment, the target value range may be preset, and the specific value may be determined according to the actual situation, and may be, for example, 0 to 3 centimeters, 3 to 5 centimeters, and the like. If the larger of the first distance value and the second distance value is 2 cm, which is in the range of 0 to 3 cm, the target preset value may be 3 cm or a value greater than 3 cm, such as 3.5 cm, 4 cm, etc.
Optionally, determining the target offset value as a target preset value when the larger of the first distance value and the second distance value is within a target value range includes: determining the target offset value to be 30 pixels if the larger value is less than or equal to 30 pixels; in the case where the larger value is greater than 30 and less than or equal to 50 pixels, the target offset value is determined to be 50 pixels.
As an alternative embodiment, the first distance value and the second distance value may also be expressed in units of pixels. In this embodiment, several adaptation schemes may be preset. Three adaptation schemes are preset according to a common singular screen on the market. Adapted to a normal screen (offset value of 0 pixels) as shown in fig. 7 to 9, respectively; rounded screen adapted (offset value of 30 pixels); adapted to the profiled screen (offset value of 50 pixels). If it is determined that the maximum value of the left and right boundaries of the safety region from the left and right boundaries of the display screen is less than or equal to 30 pixels, the application screen in the target application is displayed by retracting 30 pixels as shown in fig. 7 with 30 pixels as the target offset value. Specifically, if the first distance value and the second distance value are both 0, the application screen in the target application is displayed in the normal screen manner as shown in fig. 8 without retracting. If the larger value of the first distance value and the second distance value is greater than 30 and less than or equal to 50 pixels, 50 pixels are used as the target offset value, and the display is performed according to the adaptive scheme shown in fig. 9.
Optionally, the displaying the application screen on a second display area in the display screen in a zooming manner according to the second display configuration information includes: retracting both the left boundary and the right boundary of the display screen of the target terminal in the landscape state into the target offset value to form a second display area; and displaying the application picture on the second display area according to a preset scaling.
As an alternative embodiment, the target offset value is used as a zoom value, the screen of the target terminal is retracted according to the target offset value to form a second display area, and the application picture is displayed in the second area according to a predetermined zoom scale. For example, as shown in fig. 10, if the left and right boundaries of the safety region are respectively illustrated as 20 pixels in the horizontal screen state of the target terminal, 30 pixels are used as the target offset value in the range of 0 to 30 pixels, the left and right sides of the display screen of the terminal are respectively scaled by 30 pixels to form the second display region, and the applied screen scaling is limited to the second display region.
Optionally, before acquiring the security area information of the target terminal, the method further includes: starting the target application in the target terminal, and reporting the device information of the target terminal to a target server, wherein the device information of the target terminal comprises: the device model of the target terminal and the configuration information of the display screen of the target terminal.
As an alternative embodiment, the model of the device may be the brand of the device, and the configuration information of the display screen may be the size of the display screen and the width and height of the screen.
Optionally, the user using the target terminal may also select an adaptation scheme in the target application, for example, in the target application shown in fig. 11, a page setting option is provided, and in the page setting, within the opposite-direction screen UI adaptation area, the user may select an adaptation scheme of the application screen.
The present application is described below by way of specific embodiments, and fig. 12 is an optional flowchart according to an embodiment of the present application, where the method includes the following steps:
step 1: and starting a target application client in the target terminal, and reporting equipment information of the target terminal, such as the model of the equipment and the width and height of a current screen, to a server by the target application client or the target terminal.
Step 2: and determining whether an adaptation scheme corresponding to the target terminal exists in the server. Specifically, if the server obtains the configuration corresponding to the model of the current device and the width and height of the current screen from the configuration table, the server issues the corresponding adaptive configuration to the client, otherwise, the server issues null data.
And step 3: and if the server has the self-adaptive configuration corresponding to the target terminal, receiving the self-adaptive configuration sent by the server.
And 4, step 4: if the server does not have the self-adaptive configuration corresponding to the target terminal, obtaining the Notch information through the first interface of the operating system, and if the Notch information is successfully obtained, generating the game self-adaptive offset value through the Notch information. Specifically, after receiving the adaptive configuration data, the client determines whether the data is empty, and if the data is empty, determines that the current system is above Android P, and if so, acquires the Notch information through a windows instruments.
And 5: and if the attempt to acquire the Notch information through the Android system fails, acquiring the Notch information by adopting an interface provided by a part of hardware system. First, the device model of the target terminal is judged. For example, if the current device is a mobile phone, the Notch information is acquired through an interface provided for the system; if the current equipment is millet equipment, obtaining Notch information through a millet interface; if the current equipment is OPPO equipment, obtaining the Notch information through an OPPO interface; if the current equipment is VIVO equipment, obtaining Notch information through a VIVO interface;
step 6: and judging whether the safety region information is acquired or not when the Notch information acquired through the interface provided by the hardware system is successful. And if the Notch information is not successfully acquired, configuring by adopting a default adaptation mode.
And 7: and if the safety region information is acquired, determining an adaptation scheme according to the safety region information. Specifically, three corresponding adaptation schemes, namely a common screen, a round-corner screen and a bang screen, can be selected according to the safety zone information. And if the safety area information is not acquired, configuring in a default adaptation mode.
And 8: and modifying the currently displayed UI interface adaptation offset value, and modifying the root node offset value to adapt to all newly opened interfaces.
In addition, an adaptation setting interface is further provided for the player in the target application, manual configuration is conducted, and the player can select an adaptation scheme of a common screen, a round-corner screen and a bang screen.
It should be noted that, for simplicity of description, the above-mentioned 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 order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiments of the present invention, there is also provided a display apparatus for an application screen for implementing the above display method for an application screen. As shown in fig. 13, the apparatus includes: an obtaining module 1302, configured to obtain secure area information of a target terminal when the target terminal currently runs a target application and it is determined that first display configuration information corresponding to the target terminal cannot be obtained, where the secure area information is used to represent a first display area that is not blocked in a display screen of the target terminal, and the first display configuration information is used to display an application screen of the target application on the display screen of the target terminal; a generating module 1304, configured to generate second display configuration information according to the security area information, where the second display configuration information is used to display an application screen of the target application on a display screen of the target terminal in a scaled manner; a display module 1306, configured to display the application screen on a second display area in the display screen in a scaled manner according to the second display configuration information, where the first display area includes the second display area.
As an optional embodiment, the obtaining module is further configured to obtain the secure area information through a first interface of an operating system of the target terminal.
As an optional embodiment, the obtaining module is further configured to obtain the secure area information through a second interface of a hardware system of the target terminal.
As an optional embodiment, the generating module is further configured to determine a first distance value from a left boundary of the first display area to a left boundary of the display screen and a second distance value from a right boundary of the first display area to a right boundary of the display screen when the target terminal is in the landscape state; and determining a target offset value according to the first distance value and the second distance value, wherein the second display configuration information comprises the target offset value.
As an optional embodiment, the apparatus is further configured to set the target offset value to the first distance value or the second distance value if the first distance value is equal to the second distance value; setting the target offset value to the greater of the first and second distance values if the first and second distance values are not equal.
As an optional embodiment, the apparatus is further configured to determine the target offset value as a target preset value when a larger value of the first distance value and the second distance value is within a target value range, where the target preset value is greater than or equal to the larger value, and the target preset value is greater than or equal to an upper boundary of the target value range.
As an alternative embodiment, the above apparatus is further configured to determine the target offset value as 30 pixels if the larger value of the first distance value and the second distance value is within the target range of values and if the larger value is less than or equal to 30 pixels; in the case where the larger value is greater than 30 and less than or equal to 50 pixels, the target offset value is determined to be 50 pixels.
As an alternative embodiment, the apparatus is further configured to retract both the left boundary and the right boundary of the display screen of the target terminal in the landscape state into the target offset value to form the second display area; and displaying the application picture on the second display area according to a preset scaling.
As an optional implementation, before obtaining the secure area information of the target terminal, the target application is started in the target terminal, and the device information of the target terminal is reported to a target server, where the device information of the target terminal includes: the device model of the target terminal and the configuration information of the display screen of the target terminal.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic apparatus for implementing the display method of an application screen, as shown in fig. 14, the electronic apparatus includes a memory 1402 and a processor 1404, the memory 1402 stores therein a computer program, and the processor 1404 is configured to execute the steps in any one of the method embodiments by the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, when a target terminal runs a target application currently and it is determined that first display configuration information corresponding to the target terminal cannot be acquired, acquiring security region information of the target terminal, wherein the security region information is used for representing a first display region which is not shielded in a display screen of the target terminal, and the first display configuration information is used for displaying an application picture of the target application on the display screen of the target terminal;
s2, generating second display configuration information according to the safety area information, wherein the second display configuration information is used for displaying the application screen of the target application on the display screen of the target terminal in a zooming manner;
s3, displaying the application picture on a second display area in the display screen in a zooming mode according to the second display configuration information, wherein the first display area comprises the second display area.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 14 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 14 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 14, or have a different configuration than shown in FIG. 14.
The memory 1402 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for displaying an application screen in the embodiment of the present invention, and the processor 1404 executes various functional applications and data processing by running the software programs and modules stored in the memory 1402, that is, implementing the above-described method for displaying an application screen. Memory 1402 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1402 may further include memory located remotely from the processor 1404, which may be connected to a terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. In addition, the display device may further include, but is not limited to, other module units in the display device of the application screen, which is not described in detail in this example.
Optionally, the transmitting device 1406 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1406 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmitting device 1406 is a Radio Frequency (RF) module, which is used to communicate with the internet by wireless means.
In addition, the electronic device further includes: a display 1408 configured to display an application screen of the target application; and a connection bus 1410 for connecting the respective module parts in the above-described electronic apparatus.
According to a further aspect of an embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, when a target terminal runs a target application currently and it is determined that first display configuration information corresponding to the target terminal cannot be acquired, acquiring security region information of the target terminal, wherein the security region information is used for representing a first display region which is not shielded in a display screen of the target terminal, and the first display configuration information is used for displaying an application picture of the target application on the display screen of the target terminal;
s2, generating second display configuration information according to the safety area information, wherein the second display configuration information is used for displaying the application screen of the target application on the display screen of the target terminal in a zooming manner;
s3, displaying the application picture on a second display area in the display screen in a zooming mode according to the second display configuration information, wherein the first display area comprises the second display area.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (12)
1. A method for displaying an application screen, comprising:
the method comprises the steps that safety region information of a target terminal is obtained under the condition that the target terminal runs a target application at present and first display configuration information corresponding to the target terminal cannot be obtained through determination, wherein the safety region information is used for representing a first display region which is not shielded in a display screen of the target terminal, and the first display configuration information is used for displaying an application picture of the target application on the display screen of the target terminal;
generating second display configuration information according to the safety area information, wherein the second display configuration information is used for displaying an application screen of the target application on a display screen of the target terminal in a zooming manner;
displaying the application picture on a second display area in the display screen in a zooming manner according to the second display configuration information, wherein the first display area comprises the second display area.
2. The method according to claim 1, wherein the obtaining the security area information of the target terminal comprises:
and acquiring the safety area information through a first interface of an operating system of the target terminal.
3. The method according to claim 1, wherein the obtaining the security area information of the target terminal comprises:
and acquiring the safety area information through a second interface of a hardware system of the target terminal.
4. The method of claim 1, wherein the generating second display configuration information according to the security area information comprises:
determining a first distance value from the left boundary of the first display area to the left boundary of the display screen and a second distance value from the right boundary of the first display area to the right boundary of the display screen when the target terminal is in a landscape state;
and determining a target offset value according to the first distance value and the second distance value, wherein the second display configuration information comprises the target offset value.
5. The method of claim 4, wherein determining a target offset value based on the first distance value and the second distance value comprises:
setting the target offset value to the first distance value or the second distance value if the first distance value and the second distance value are equal;
setting the target offset value to the greater of the first and second distance values if the first and second distance values are not equal.
6. The method of claim 4, wherein determining a target offset value based on the first distance value and the second distance value comprises:
and under the condition that the larger value of the first distance value and the second distance value is within a target value range, determining the target offset value as a target preset value, wherein the target preset value is greater than or equal to the larger value, and the target preset value is greater than or equal to the upper boundary of the target value range.
7. The method of claim 6, wherein the determining the target offset value as a target preset value if the larger of the first distance value and the second distance value is within a target range of values comprises:
determining the target offset value to be 30 pixels if the larger value is less than or equal to 30 pixels;
in the case where the larger value is greater than 30 and less than or equal to 50 pixels, the target offset value is determined to be 50 pixels.
8. The method according to any one of claims 4 to 6, wherein the displaying the application screen on a second display area in the display screen in a zooming manner according to the second display configuration information comprises:
retracting both the left boundary and the right boundary of the display screen of the target terminal in the landscape state into the target offset value to form a second display area;
and displaying the application picture on the second display area according to a preset scaling.
9. The method according to claim 1, wherein before acquiring the security area information of the target terminal, the method further comprises:
starting the target application in the target terminal, and reporting the device information of the target terminal to a target server, wherein the device information of the target terminal comprises: the device model of the target terminal and the configuration information of the display screen of the target terminal.
10. A display device to which a screen is applied, comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring safe region information of a target terminal under the condition that the target terminal runs a target application currently and determines that first display configuration information corresponding to the target terminal cannot be acquired, the safe region information is used for representing a first display region which is not shielded in a display screen of the target terminal, and the first display configuration information is used for displaying an application picture of the target application on the display screen of the target terminal;
a generating module, configured to generate second display configuration information according to the security area information, where the second display configuration information is used to display an application screen of the target application on a display screen of the target terminal in a scaled manner;
and the display module is used for displaying the application picture on a second display area in the display screen in a zooming mode according to the second display configuration information, wherein the first display area comprises the second display area.
11. A computer-readable storage medium comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 9.
12. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 9 by means of the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010105434.3A CN111258704A (en) | 2020-02-20 | 2020-02-20 | Application screen display method and device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010105434.3A CN111258704A (en) | 2020-02-20 | 2020-02-20 | Application screen display method and device, storage medium and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111258704A true CN111258704A (en) | 2020-06-09 |
Family
ID=70954516
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010105434.3A Pending CN111258704A (en) | 2020-02-20 | 2020-02-20 | Application screen display method and device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111258704A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021258319A1 (en) * | 2020-06-24 | 2021-12-30 | 深圳传音控股股份有限公司 | Application window display method, terminal device, and storage medium |
CN113867672A (en) * | 2021-09-10 | 2021-12-31 | 埃洛克航空科技(北京)有限公司 | Screen adaptation method and device, computer equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108182043A (en) * | 2018-01-19 | 2018-06-19 | 维沃移动通信有限公司 | A kind of method for information display and mobile terminal |
CN109308205A (en) * | 2018-08-09 | 2019-02-05 | 腾讯科技(深圳)有限公司 | Display adaptation method, device, equipment and the storage medium of application program |
CN110764850A (en) * | 2018-07-26 | 2020-02-07 | 阿里巴巴集团控股有限公司 | Interface display method, parameter assignment method, system and equipment |
-
2020
- 2020-02-20 CN CN202010105434.3A patent/CN111258704A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108182043A (en) * | 2018-01-19 | 2018-06-19 | 维沃移动通信有限公司 | A kind of method for information display and mobile terminal |
CN110764850A (en) * | 2018-07-26 | 2020-02-07 | 阿里巴巴集团控股有限公司 | Interface display method, parameter assignment method, system and equipment |
CN109308205A (en) * | 2018-08-09 | 2019-02-05 | 腾讯科技(深圳)有限公司 | Display adaptation method, device, equipment and the storage medium of application program |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021258319A1 (en) * | 2020-06-24 | 2021-12-30 | 深圳传音控股股份有限公司 | Application window display method, terminal device, and storage medium |
CN113867672A (en) * | 2021-09-10 | 2021-12-31 | 埃洛克航空科技(北京)有限公司 | Screen adaptation method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102651856B (en) | Method, system and device for improving Internet surfing security of terminal | |
CN109388762B (en) | Application sharing method and device | |
CN108721898B (en) | Frame rate determination method and apparatus, storage medium, and electronic apparatus | |
CN110399064A (en) | Switching method and apparatus, storage medium and the electronic device of display interface | |
JP2014510353A (en) | Risk detection processing method and apparatus for website address | |
CN112114928B (en) | Processing method and device for display page | |
CN107872534B (en) | Information pushing method and device, server and readable storage medium | |
CN111324275B (en) | Broadcasting method and device for elements in display picture | |
CN111258704A (en) | Application screen display method and device, storage medium and electronic device | |
CN110336805B (en) | Network access management method and mobile terminal | |
CN111399957A (en) | App interface display method and device, terminal equipment and readable storage medium | |
CN104978358A (en) | Method for displaying web page fragment on desktop and system for capturing web page fragment to desktop for displaying | |
CN103838851B (en) | The rendering intent and device of three-dimensional scene models file | |
CN113242308A (en) | Information pushing method, device, equipment and storage medium | |
CN112272118A (en) | Network repairing method, device, storage medium and electronic equipment | |
CN110109668A (en) | Application page display method and device, terminal device and medium | |
CN108647069B (en) | Interface display method and device, storage medium and electronic device | |
CN106658670B (en) | A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal | |
CN112799955A (en) | Model change detection method and device, storage medium and electronic equipment | |
CN107360389A (en) | A kind of video communication method, device and terminal | |
CN115208671B (en) | Firewall configuration method, device, electronic equipment and storage medium | |
CN104063277A (en) | Information processing method and electronic equipment | |
CN114281449A (en) | Building visual display processing method and related equipment | |
CN106376096B (en) | Wireless network connection method and equipment thereof | |
CN110941484B (en) | Application program calling method and device |
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 | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40024671 Country of ref document: HK |