CN112099650B - Screen display method, apparatus, electronic device and computer readable storage medium - Google Patents

Screen display method, apparatus, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN112099650B
CN112099650B CN202010983825.5A CN202010983825A CN112099650B CN 112099650 B CN112099650 B CN 112099650B CN 202010983825 A CN202010983825 A CN 202010983825A CN 112099650 B CN112099650 B CN 112099650B
Authority
CN
China
Prior art keywords
display
screen
fillet
radius
display area
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
CN202010983825.5A
Other languages
Chinese (zh)
Other versions
CN112099650A (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.)
Xian Wingtech Electronic Technology Co Ltd
Original Assignee
Xian Wingtech Electronic 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 Xian Wingtech Electronic Technology Co Ltd filed Critical Xian Wingtech Electronic Technology Co Ltd
Priority to CN202010983825.5A priority Critical patent/CN112099650B/en
Publication of CN112099650A publication Critical patent/CN112099650A/en
Application granted granted Critical
Publication of CN112099650B publication Critical patent/CN112099650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • 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

Abstract

The embodiment of the application provides a screen display method, a device, electronic equipment and a computer readable storage medium, and relates to the technical field of display. And acquiring direction information of the second direction by monitoring whether the screen direction of the display screen is changed from the first direction to the second direction or not. And acquiring target fillet display parameters associated with the direction information of the second direction according to the association relation between the pre-stored direction information and the fillet display parameters. The screen display is configured based on the target rounded corner display parameter such that the screen display is adapted to the second direction in rounded corner form. Therefore, the problem that the round angle in the display screen is inconsistent with the direction is solved after the direction of the display screen is changed, and the display effect of the electronic equipment is improved.

Description

Screen display method, apparatus, electronic device and computer readable storage medium
Technical Field
The present application relates to the field of display technologies, and in particular, to a screen display method, apparatus, electronic device, and computer readable storage medium.
Background
At present, various mobile terminals are in the life of people, display screens of the mobile terminals are also various, and in order to simplify the processing technology, the display screens on the market are mostly in a right-angle rectangular shape, so that the polishing technology is omitted, and the cost is reduced. However, such display screens often display right-angle rectangular display screens, which have a harder but not smooth display effect and affect the visual perception of the user.
At present, a display screen which is originally in a right-angle rectangular shape is often changed into a display screen in a rounded matrix shape so as to improve the visual perception of a user. However, when the screen of the mobile terminal is rotated, a problem of inconsistent display screen often occurs.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a screen display method, apparatus, electronic device, and computer-readable storage medium capable of monitoring whether a screen direction is changed, and reconfiguring a screen display after the screen direction is changed.
Embodiments of the application may be implemented as follows:
in a first aspect, an embodiment of the present application provides a screen display method, which is applied to an electronic device including a display screen, and includes:
monitoring whether the screen direction of the display screen is changed from a first direction to a second direction, and if so, acquiring direction information of the second direction;
acquiring target fillet display parameters associated with the direction information of the second direction according to the association relation between the pre-stored direction information and the fillet display parameters;
and configuring a screen display picture based on the target fillet display parameter so that the screen display picture is matched with the second direction in a fillet form.
In an alternative embodiment, the rounded corner display parameter includes a rounded corner display area and a rounded corner display radius;
the step of configuring a screen display based on the target fillet display parameter includes:
acquiring at least one first display layer, wherein the first display layer is a layer displayed by the display screen when the screen direction of the display screen is the first direction;
establishing a new display layer, wherein the new display layer completely covers all the first display layers;
displaying a fillet on the new display layer based on the display area and the display radius to obtain a fillet display layer;
and taking all the first display layers and the round corner display layers as screen display pictures.
In an alternative embodiment, the display area includes a first display area and a second display area, the display radius includes a first radius and a second radius, and the first display layer includes a status information display area and a navigation information display area;
and displaying a fillet on the new display layer based on the display area and the display radius, wherein the step of obtaining the fillet display layer comprises the following steps:
displaying a rounded corner at the first display area of the new display layer based on the first radius, wherein the first display area coincides with the status information display area and the first radius is the same as the height of the status information display area;
and displaying a round corner at the second display area of the new display layer based on the second radius to obtain a round corner display layer, wherein the second display area coincides with the navigation information display area, and the second radius is the same as the navigation information display area in height.
In an alternative embodiment, the method further comprises:
and hiding or deleting the fillet display layer in response to a fillet closing request.
In an alternative embodiment, the step of monitoring whether the screen direction of the display screen is changed from the first direction to the second direction includes:
acquiring a rotation angle of the electronic equipment in real time, wherein the rotation angle represents a deflection angle of the electronic equipment compared with a preset reference axis;
comparing whether the current rotation angle is consistent with the historical rotation angle acquired at the previous moment;
if the first direction is not consistent with the second direction, determining that the screen direction of the display screen is changed from the first direction to the second direction;
and if so, determining that the screen direction of the display screen is not changed.
In an alternative embodiment, the electronic device stores an initial rounded display parameter, and before the step of monitoring whether the screen direction of the display screen is changed from the first direction to the second direction, the method further includes:
responding to a fillet opening request, and acquiring the initial fillet display parameters;
and configuring an initial screen display picture based on the initial rounded corner display parameter so as to change the initial screen display picture from a right angle display form to a rounded corner display form.
In an alternative embodiment, the method further comprises:
when the electronic equipment is determined to finish starting up, acquiring the initial fillet display parameters;
and configuring a screen display picture based on the initial fillet display parameter so as to change the screen display picture from a right-angle display form to a fillet display form.
In an optional implementation manner, a monitoring policy configuration file is set in the electronic device; the method further comprises the step of monitoring whether the electronic equipment is started up or not, and the step comprises the following steps:
and based on the monitoring strategy configuration file, monitoring whether a startup broadcast is received, and if the startup broadcast is received, determining that the electronic equipment completes startup.
In a second aspect, an embodiment of the present application provides a screen display device applied to an electronic apparatus including a display screen, the device including:
the monitoring module is used for monitoring whether the screen direction of the display screen is changed from a first direction to a second direction, and if so, acquiring direction information of the second direction;
the acquisition module is used for acquiring target fillet display parameters associated with the direction information of the second direction according to the association relation between the pre-stored direction information and the fillet display parameters;
and the configuration module is used for configuring a screen display picture based on the target fillet display parameter so that the screen display picture is matched with the second direction in a fillet form.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a processor, a memory, and a bus, where the memory stores a computer program executable by the processor, and when the electronic device is running, the processor and the memory communicate with each other through the bus, and the processor executes the computer program to implement a screen display method according to any one of the foregoing embodiments.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program which, when executed by a processor, implements the screen display method of any one of the foregoing embodiments.
According to the screen display method, the device, the electronic equipment and the computer readable storage medium, whether the direction of the screen is changed is monitored, when the direction of the screen is monitored to be changed, the direction information of the current screen is obtained, the corresponding fillet display parameters are obtained according to the direction information of the screen, the screen display picture is configured based on the fillet display parameters, the problem that the fillets in the display picture are inconsistent with the fillets before being changed after the direction of the screen is changed is solved, and the display effect is improved.
In order to make the above objects, features and advantages of the present application more comprehensible, several embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a screen display method according to an embodiment of the present application.
Fig. 2 is a schematic diagram of an implementation scenario of a screen display method according to an embodiment of the present application.
Fig. 3 is a schematic flow chart of step S3 in fig. 1 according to an embodiment of the present application.
Fig. 4 is a second schematic diagram of an implementation scenario of the on-screen display method according to the embodiment of the present application.
Fig. 5 is a third schematic view of an implementation scenario of the on-screen display method according to the embodiment of the present application.
Fig. 6 is a second flowchart of a screen display method according to an embodiment of the application.
Fig. 7 is a block diagram of a screen display device according to an embodiment of the application.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Icon: 100-an electronic device; 110-memory; a 120-processor; 130-a screen display device; 131-a monitoring module; 132-an acquisition module; 133-a configuration module; 134-response module; 140-a communication unit; 150-display screen.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
As introduced in the background art, at present, various mobile terminals are in the life of people, and display screens of the mobile terminals are also various, so that in order to simplify the processing technology, the display screens on the market are mostly in a rectangular right angle shape, so that the polishing technology is omitted, and the cost is reduced. However, such display screens often display right-angle rectangular display screens, which have a harder but not smooth display effect and affect the visual perception of the user.
At present, a screen which is originally in a right-angle rectangular shape is often changed into a screen in a round angle matrix shape so as to improve the visual perception of a user. However, the inventor researches that the widths of the status bar positioned on the upper surface of the display screen and the navigation bar positioned below the display screen of the same mobile phone are different, and the radius and the position of the corresponding round angle are also different, so that when the screen direction of the mobile terminal rotates, the problem of inconsistent display pictures can occur.
Based on the above findings, embodiments of the present application provide a screen display method, apparatus, electronic device, and computer-readable storage medium. Through monitoring whether the direction of the screen changes, when the direction of the screen is monitored to change, the direction information of the current screen is obtained, then corresponding fillet display parameters are obtained according to the direction information of the screen, and the screen display picture is configured based on the fillet display parameters, so that after the direction of the screen is changed, the fillets in the display picture are consistent with those before the direction is not changed, and the display effect is improved. The above-described scheme is explained in detail below.
Referring to fig. 1, fig. 1 is a flowchart of a screen display method according to the present embodiment. The screen display method provided by the application can be applied to electronic equipment, and the electronic equipment can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable equipment. The specific flow shown in fig. 1 is described in detail below.
Step S1, whether the screen direction of the display screen is changed from the first direction to the second direction is monitored, and if the screen direction is changed to the second direction, direction information of the second direction is acquired.
The display screen can be a liquid crystal display screen or an electronic ink display screen.
And S2, acquiring target fillet display parameters associated with the direction information of the second direction according to the association relation between the pre-stored direction information and the fillet display parameters.
The association relationship between the direction information and the rounded corner display parameter may be preset, for example, when the direction information indicates that the direction in which the display screen is located is a vertical direction, the corresponding rounded corner display parameter includes a plurality of parameters adapted to the vertical direction. For another example, when the direction information indicates that the direction in which the display screen is located is a horizontal direction, the corresponding rounded corner display parameters include a plurality of parameters suitable for the horizontal direction.
And step S3, configuring the screen display picture based on the target fillet display parameter so that the screen display picture is matched with the second direction in a fillet form.
The screen display picture is a picture displayed by the display screen after the rounded corner display parameters are configured.
Referring to fig. 2 in combination, in order to more visually illustrate the above steps, the following describes the above steps in one possible implementation scenario. Fig. 2 is a schematic diagram of an implementation scenario of a screen display method according to an embodiment of the present application.
As illustrated in the figure, the first direction characterizes the display screen as a vertical direction and the second direction characterizes the display screen as a horizontal direction. If the mobile terminal monitors that the screen direction of the display screen is converted from the first direction to the second direction, the direction information of the second direction is acquired to be the horizontal direction. And acquiring target fillet display parameters associated with the horizontal direction based on the association relation between the pre-stored direction information and the fillet display parameters. And finally, configuring a screen display picture based on the target fillet display parameter.
According to the screen display method provided by the application, whether the direction of the screen is changed is monitored, when the direction of the display screen of the mobile terminal is monitored to be changed, the direction information of the current display screen is obtained, the corresponding rounded corner display parameters are obtained according to the direction information of the display screen, and the screen display picture is configured based on the rounded corner display parameters, so that after the direction of the display screen is changed, the rounded corner in the display picture is consistent with the direction before the direction is not changed, and the display effect of the mobile terminal is improved.
In an alternative embodiment, step S1 shown in fig. 1 may be implemented by monitoring whether the screen direction of the display screen is changed from the first direction to the second direction by the following steps.
And acquiring the rotation angle of the electronic equipment in real time. And comparing whether the current rotation angle is consistent with the historical rotation angle acquired at the last moment. If the first direction and the second direction are not consistent, the screen direction of the display screen is determined to be changed from the first direction to the second direction. If so, determining that the screen direction of the display screen is unchanged.
The rotation angle represents a deflection angle of the electronic device compared with a preset reference axis. The preset reference axis may be a line that takes any vertex of the electronic device as an origin and connects with the origin. For example, the preset reference axis may be a dotted line as shown in fig. 2.
Alternatively, the above-mentioned deflection angle may be acquired by a gyro sensor, an acceleration sensor, or a rotation vector sensor included in the electronic apparatus. And the above-described deflection angle can be obtained by the following code:
int rotation=mActivity.getWindowManager().getDefaultDisplay().getRotation();
the rotation represents a deflection angle, for example, an anticlockwise rotation angle of the display screen relative to a preset reference axis, and the values are 0 °,90 °,180 ° or 270 °, and getWindowManager (), getDefaultDisplay () and getRotation () are interfaces for acquiring related parameters. Thus, the deflection angle acquired by the sensor can be directly acquired through various interfaces.
Further, whether the display direction of the display screen is changed may be determined by comparing whether the current rotation angle is consistent with the historical rotation angle. For example, the current rotation angle of the electronic device is acquired to be 90 °, and the historical rotation angle acquired at the previous time is acquired to be 0 °. Since the current rotation angle does not coincide with the historical rotation angle, it can be determined that the display direction of the display screen has been changed.
For another example, the current rotation angle of the electronic device is obtained as 0 °, and the historical rotation angle obtained at the previous time is 0 °. Since the current rotation angle coincides with the historical rotation angle, it can be determined that the display direction of the display screen is not changed.
The embodiment of the application determines whether the direction of the display screen included in the electronic equipment changes or not by comparing the current rotation angle and the historical rotation angle of the electronic equipment. After the direction of the display screen of the electronic equipment is changed, the corresponding fillet display information can be obtained, the display picture of the screen is reconfigured, the display content is prevented from being inconsistent with the display content before the change after the direction of the display screen is changed, and the display effect is improved.
The inventor researches that the widths of the state bar and the navigation bar of the same electronic device, such as a smart phone, are different, and the radius and the position of the corresponding rounded corner are also different, so that when the screen direction of the display screen rotates, the problem of inconsistent display pictures can occur.
Optionally, when the screen directions of the display screens are different, the positions of the status bar and the navigation bar included in the display screens are also different at the positions of the display screens. As shown in table 1:
TABLE 1
Direction information Status bar position Status bar height Navigation bar position Navigation bar height
Upper part H1 Lower part(s) H2
90° Right side H1 Left side H2
180° Lower part(s) H1 Upper part H2
270° Left side H1 Right side H2
Wherein H1 may be greater than H2. And meanwhile, the position of the status bar and the position relation of the navigation bar are determined by taking the display screen body as a reference object.
Based on table 1, the association relationship between the pre-stored direction information and the fillet display parameter may be as shown in table 2:
TABLE 2
The direction information is a rotation angle of the electronic equipment, and the first display area, the first display radius, the second display area and the second display radius are all round corner display parameters.
As can be seen from the above table 1 and table 2, when the rotation angle of the display screen is 0 °, the status bar displayed on the display screen is above the displayable screen, the height of the status bar is H1, and the navigation bar is below the displayable screen, and the height of the navigation bar is H2, so that the rounded corner corresponding to the status bar may be above the displayable screen, the position of the rounded corner is the same as the position of the status bar, and the radius R1 of the rounded corner is the same as the height H1 of the status bar. The fillet corresponding to the navigation bar can be arranged below the display screen, the position of the fillet is the same as that of the navigation bar, and the radius R2 of the fillet is the same as the height H2 of the navigation bar.
It will be appreciated that the above-mentioned association relationship between pre-stored direction information and rounded corner display parameters is only illustrative, and the above-mentioned association relationship can be modified according to different requirements. Meanwhile, the fillet display parameters can also comprise a display area, a display radius, a display color and the degree of an arc, and the association relationship and the fillet display parameters can be saved in a resource form.
In a possible embodiment, the rounded display parameters include a display area and a display radius of the rounded corners. Based on this, please refer to fig. 3 in combination, the steps of configuring the screen display based on the target rounded display parameter include steps S31-S34.
Step S31, at least one first display layer is acquired.
The first display layer is a layer displayed on the display screen when the screen direction of the display screen is the first direction. The first display sub-layer may include one or more, and the content displayed by all the first display sub-layers is the effective content displayed by the electronic device, for example, when the electronic device runs a certain APP, the first display sub-layer is the text content, the video content and the like displayed by the APP. For another example, the first display layer may also be desktop navigation content run by the electronic device.
Step S32, a new display layer is established, and the new display layer completely covers all the first display layers.
And step S33, displaying the rounded corners on the new display layer based on the display area and the display radius, and obtaining the rounded corner display layer.
The display area comprises a first display area and a second display area, and the display radius comprises a first radius and a second radius.
Step S34, taking all the first display layers and the round corner display layers as screen display pictures.
The inventor researches that the widths of the upper status bar and the lower navigation bar of the same mobile phone are different, the radius and the position of the corresponding round angle are also different, and when the screen direction of the mobile terminal rotates, the problem of inconsistent display pictures can occur.
Therefore, the problem can be improved by reconfiguring the rounded display layer after the screen direction is changed, for example, the first display layer includes a state information display area (i.e., a display area where the status bar is located) and a rounded display layer corresponding to the navigation information display area (i.e., a display area where the navigation bar is located).
As a possible implementation manner, step S33 may be implemented as follows:
rounded corners are displayed at a first display area of the new display layer based on the first radius. And displaying the rounded corners at the second display area of the new display layer based on the second radius, and obtaining the rounded corner display layer.
The first display area is overlapped with the state information display area, and the first radius is the same as the height of the state information display area. The second display area coincides with the navigation information display area, and the second radius is the same as the height of the navigation information display area.
For example, when the screen display displays only all the first display layers, as shown in fig. 4, the shape of the displayed screen is a right rectangular. The screen display screen obtained after displaying the rounded corners on the new display layer based on the display area and the display radius may be as shown in fig. 5, and the shape of the displayed screen is rounded rectangle.
In the embodiment of the application, since the first display area is overlapped with the state information display area, the first radius is the same as the height of the state information display area, the second display area is overlapped with the navigation information display area, and the second radius is the same as the height of the navigation information display area. Therefore, even if the direction of the display screen is changed, the displayed round-corner picture is consistent with that before the direction of the display screen is not changed.
Further, because the default display mode of some electronic devices is a right angle display mode, the embodiment of the application can also respond to the operation of a user to change the right angle display mode into a round angle display mode.
As an alternative embodiment, referring to fig. 6 in combination, the electronic device stores initial rounded corner display parameters, and before step S1 shown in fig. 1, the screen display method further includes:
and S4, responding to the fillet opening request, and acquiring initial fillet display parameters.
And S5, configuring the initial screen display picture based on the initial fillet display parameter so that the initial screen display picture is changed from a right-angle display form to a fillet display form.
The initial rounded corner display parameter may also include an initial display area and an initial display radius of the rounded corner. The initial screen display may be configured based on the initial display area and the initial display radius, and the configuration process is similar to the process shown in fig. 3 and will not be described herein.
Further, the user may click or slide the virtual key or the physical key for opening the rounded corner based on the touch manner, so as to send a request for opening the rounded corner to the electronic device. The user may also change the electronic device from a right angle display form to a rounded corner display form based on the manner of sound control.
According to the embodiment of the application, the initial screen display picture is configured by utilizing the initial fillet display parameter in response to the operation of a user, so that the display screen originally in the right-angle display form is changed into the fillet display form. The method for changing the display form is convenient and fast, is convenient for a user to operate, and simultaneously changes the right-angle display form into the round-angle display form, so that the visual effect of the display screen is better and softer, and the user experience is improved.
After responding to the operation of a user and changing the display form from the right angle display form to the round angle display form, the embodiment of the application can also configure the screen display picture by using the initial round angle display parameters again after the electronic equipment is restarted, and the user does not need to operate again.
For example, as a possible implementation manner, the initial fillet display parameter may be obtained after it is determined that the electronic device is started up after the electronic device is started up. The screen display is configured based on the initial rounded corner display parameter such that the screen display changes from a right angle display form to a rounded corner display form.
The monitoring policy configuration file can be set in the electronic device to monitor whether the electronic device is started up or not. For example, whether the startup broadcast is received may be monitored based on the monitoring policy configuration file, and if the startup broadcast is received, it is determined that the electronic device completes startup.
The process and principle of configuring the screen display based on the initial rounded corner display parameter can also refer to the process shown in fig. 3, and will not be described herein.
According to the embodiment of the application, after the electronic equipment is restarted by monitoring the configured monitoring strategy configuration file, the initial fillet display parameter configuration screen display picture is acquired and used again, the user does not need to execute changing operation again, and when the electronic equipment is started, the fillet display form can be started automatically, so that the user experience is improved.
Further, in some applications it is desirable for the user not to display rounded corners, but rather to display the application interface in a right angle, or in some applications the display may be obscured by the rounded corner display. Therefore, on the basis of the above, the embodiment of the application can also change the round angle display form into the right angle display form so as to improve the above problems.
As an alternative embodiment, the fillet display layer may be hidden or deleted in response to a close fillet request.
Likewise, the user may click or slide the virtual key or the physical key that closes the rounded corner based on the touch manner to send a request to close the rounded corner to the electronic device. The user may also change the electronic device from a rounded display form to a right angle display form based on the manner of sound control.
According to the embodiment of the application, the fillet display sub-layer is deleted or hidden in response to the operation of a user, and only the first display sub-layer is displayed, so that the display screen originally in the fillet display form is changed into the right-angle display form. The method for changing the display form is convenient and fast, is convenient for a user to operate, avoids the problem that the rounded display form is inapplicable to certain applications, and does not influence the normal use of the user.
Based on the same inventive concept, please refer to fig. 7 and 8 in combination, the embodiment of the present application further provides a screen display device 130, which is applied to an electronic apparatus 100 including a display screen 150, wherein the screen display device 130 includes:
the monitoring module 131 is configured to monitor whether the screen direction of the display screen 150 is changed from the first direction to the second direction, and if so, acquire direction information of the second direction.
The obtaining module 132 is configured to obtain a target fillet display parameter associated with the direction information of the second direction according to the association relationship between the pre-stored direction information and the fillet display parameter.
The configuration module 133 is configured to configure the screen display based on the target rounded corner display parameter, so that the screen display is adapted to the second direction in a rounded corner form.
In an alternative embodiment, the rounded display parameters include a display area and a display radius of the rounded corners. The configuration module 133 is further configured to:
at least one first display layer is obtained, wherein the first display layer is a layer displayed by the display screen when the screen direction of the display screen 150 is the first direction.
A new display layer is built, which completely covers all the first display layers.
And displaying the rounded corners on the new display layer based on the display area and the display radius to obtain the rounded corner display layer.
And taking all the first display layers and the round corner display layers as screen display pictures.
In an alternative embodiment, the display area includes a first display area and a second display area, the display radius includes a first radius and a second radius, and the first display layer includes a status information display area and a navigation information display area. The configuration module 133 is further configured to:
and displaying the rounded corners at a first display area of the new display layer based on the first radius, wherein the first display area is overlapped with the state information display area, and the first radius is the same as the height of the state information display area.
And displaying the rounded corners at a second display area of the new display layer based on the second radius to obtain the rounded corner display layer, wherein the second display area is overlapped with the navigation information display area, and the second radius is the same as the navigation information display area in height.
In an alternative embodiment, the screen display device 130 further includes a response module 134 for hiding or deleting the corner display layer in response to the corner closing request.
In an alternative embodiment, the monitoring module 131 is further configured to:
the rotation angle of the electronic device 100 is obtained in real time, wherein the rotation angle characterizes a deflection angle of the electronic device 100 compared with a preset reference axis.
And comparing whether the current rotation angle is consistent with the historical rotation angle acquired at the last moment.
If not, it is determined that the screen direction of the display screen 150 is changed from the first direction to the second direction.
If so, it is determined that the screen direction of the display screen 150 has not been changed.
In an alternative embodiment, the electronic device 100 stores initial rounded corner display parameters, and the response module 134 is further configured to:
and responding to the fillet opening request, and acquiring initial fillet display parameters.
The initial screen display is configured based on the initial rounded corner display parameters such that the initial screen display changes from a right angle display form to a rounded corner display form.
In an alternative embodiment, the configuration module 133 is further configured to:
when it is determined that the electronic device 100 is completely started, initial fillet display parameters are acquired.
The initial screen display is configured based on the initial rounded corner display parameters such that the screen display changes from a right angle display form to a rounded corner display form.
In an alternative embodiment, a listening policy profile is provided in the electronic device 100. The monitoring module 131 is further configured to monitor whether the electronic device 100 is started up, and the monitoring module 131 is further configured to:
based on the monitoring policy configuration file, whether a startup broadcast is received is monitored, and if the startup broadcast is received, it is determined that the electronic device 100 completes startup.
The specific limitation of the screen display device 130 may be referred to the limitation of the traffic safety prompting method hereinabove, and will not be repeated herein. The respective modules in the above-described screen display device 130 may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of the processor 120 in the mobile terminal, or may be stored in software in the memory 110 in the mobile terminal, so that the processor 120 may call and execute operations corresponding to the above modules.
In one embodiment, an electronic device 100 is provided, where the electronic device 100 may be a device having storage, processing, information transfer, etc. As shown in fig. 8, the internal structure of the electronic device 100 may be that the electronic device 100 includes: a screen display device 130, a memory 110, a processor 120, a communication unit 140, and a display screen 150.
The memory 110, the processor 120, the communication unit 140 and the display screen 150 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 110 stores therein a screen display device 130, and the screen display device 130 includes at least one software function module which may be stored in the memory 110 in the form of software or firmware (firmware), and the processor 120 executes various function applications and data processing by running software programs and modules stored in the memory 110, such as the screen display device 130 in the embodiment of the present application, that is, implements the traffic safety prompting method in the embodiment of the present application.
The Memory 110 may be, but is not limited to, a random access Memory 110 (Random Access Memory, RAM), a Read Only Memory 110 (ROM), a programmable Read Only Memory 110 (Programmable Read-Only Memory, PROM), an erasable Read Only Memory 110 (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable Read Only Memory 110 (Electric Erasable Programmable Read-Only Memory, EEPROM), etc. The memory 110 is used for storing a program, and the processor 120 executes the program after receiving an execution instruction.
The processor 120 may be an integrated circuit chip having data processing capabilities. The processor 120 may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc. The methods, steps and logic blocks disclosed in the embodiments of the present application may be implemented or performed. The general purpose processor may be a microprocessor or the processor 120 may be any conventional processor or the like.
The communication unit 140 is configured to establish a communication connection between the electronic device 100 and other electronic devices through a network, so as to implement a transceiving operation of network signals and data. The network signals may include wireless signals or wired signals.
The display screen 150 provides an interactive interface (e.g., user interface) between the mobile terminal and the user for displaying web page information. In particular, the display screen 150 may display pages and information outputs to the user, the content of which may include text, graphics, video, and any combination thereof. Some output results correspond to some user interface objects. In an embodiment of the present application, the display screen 150 may be a liquid crystal display or a touch display. In the case of a touch display, the touch display may be a capacitive touch screen or a resistive touch screen, etc. supporting single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations generated from one or more locations on the touch display and communicate the sensed touch operations to the processor 120 for computation and processing. In the present embodiment, specific examples of the display screen 150 include, but are not limited to, a liquid crystal display or a light emitting polymer display.
It is to be understood that the configuration shown in fig. 8 is merely illustrative, and that electronic device 100 may also include more or fewer components than those shown in fig. 8, or have a different configuration than that shown in fig. 8. The components shown in fig. 8 may be implemented in hardware, software, or a combination thereof.
In one embodiment, the screen display device 130 provided by the present application may be implemented in the form of a computer program that is executable on the electronic apparatus 100 as shown in fig. 8. The memory 110 of the electronic device 100 may store various program modules constituting the screen display device 130, such as a monitoring module 131, an acquisition module 132, and a configuration module 133 shown in fig. 7. The computer program constituted by the respective program modules causes the processor 120 to execute the steps in the screen display method of the respective embodiments of the present application described in the present specification.
On the basis of the above, in one embodiment, the present application further provides a computer readable storage medium, on which a computer program is stored, which when executed by the processor 120, implements the steps of the method embodiments described above.
In summary, the screen display method, apparatus, electronic device 100 and computer readable storage medium according to the embodiments of the present application monitor whether the screen direction of the display screen 150 is changed from the first direction to the second direction, and if so, acquire the direction information of the second direction. And acquiring target fillet display parameters associated with the direction information of the second direction according to the association relation between the pre-stored direction information and the fillet display parameters. The screen display is configured based on the target rounded corner display parameter such that the screen display is adapted to the second direction in rounded corner form. The problem that the round corners in the display screen are not consistent with the direction change after the direction of the display screen 150 is changed is solved, and the display effect of the electronic device 100 is improved.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (7)

1. A screen display method applied to an electronic device including a display screen, the electronic device storing initial rounded corner display parameters, the method comprising:
responding to a fillet opening request, and acquiring the initial fillet display parameters;
configuring an initial screen display picture based on the initial fillet display parameter so as to change the initial screen display picture from a right-angle display form to a fillet display form;
monitoring whether the screen direction of the display screen is changed from a first direction to a second direction, and if so, acquiring direction information of the second direction;
acquiring target fillet display parameters associated with the direction information of the second direction according to the association relation between the pre-stored direction information and the fillet display parameters;
configuring a screen display based on the target rounded corner display parameter to adapt the screen display to the second direction in a rounded corner form;
the fillet display parameters comprise a display area and a display radius of the fillet;
the step of configuring a screen display based on the target fillet display parameter includes:
acquiring at least one first display layer; the first display layer is a layer displayed by the display screen when the screen direction of the display screen is the first direction;
establishing a new display layer, wherein the new display layer completely covers all the first display layers;
displaying a fillet on the new display layer based on the display area and the display radius to obtain a fillet display layer;
taking all the first display layers and the round corner display layers as screen display pictures;
the display area comprises a first display area and a second display area, the display radius comprises a first radius and a second radius, the first radius is different from the second radius, and the first display layer comprises a state information display area and a navigation information display area;
and displaying a fillet on the new display layer based on the display area and the display radius, wherein the step of obtaining the fillet display layer comprises the following steps:
displaying a rounded corner at the first display area of the new display layer based on the first radius, wherein the first display area coincides with the status information display area and the first radius is the same as the height of the status information display area;
and displaying a round corner at the second display area of the new display layer based on the second radius to obtain a round corner display layer, wherein the second display area coincides with the navigation information display area, and the second radius is the same as the navigation information display area in height.
2. The screen display method according to claim 1, wherein the step of monitoring whether the screen direction of the display screen is changed from the first direction to the second direction comprises:
acquiring a rotation angle of the electronic equipment in real time, wherein the rotation angle represents a deflection angle of the electronic equipment compared with a preset reference axis;
comparing whether the current rotation angle is consistent with the historical rotation angle acquired at the previous moment;
if the first direction is not consistent with the second direction, determining that the screen direction of the display screen is changed from the first direction to the second direction;
and if so, determining that the screen direction of the display screen is not changed.
3. The screen display method of claim 1, wherein the method further comprises:
when the electronic equipment is determined to finish starting up, acquiring the initial fillet display parameters;
and configuring an initial screen display picture based on the initial rounded corner display parameter so as to change the screen display picture from a right-angle display form to a rounded corner display form.
4. The screen display method according to claim 3, wherein a listening policy profile is provided in the electronic device; the method further comprises the step of monitoring whether the electronic equipment is started up or not, and the step comprises the following steps:
and based on the monitoring strategy configuration file, monitoring whether a startup broadcast is received, and if the startup broadcast is received, determining that the electronic equipment completes startup.
5. A screen display device for use in an electronic apparatus including a display screen, the device comprising:
the response module is used for responding to the fillet opening request and acquiring initial fillet display parameters; configuring an initial screen display picture based on the initial fillet display parameter so as to change the initial screen display picture from a right-angle display form to a fillet display form;
the monitoring module is used for monitoring whether the screen direction of the display screen is changed from a first direction to a second direction, and if so, acquiring direction information of the second direction;
the acquisition module is used for acquiring target fillet display parameters associated with the direction information of the second direction according to the association relation between the pre-stored direction information and the fillet display parameters;
the configuration module is used for configuring a screen display picture based on the target fillet display parameter so that the screen display picture is matched with the second direction in a fillet form;
the fillet display parameter comprises a display area and a display radius of the fillet, and the configuration module is further used for: acquiring at least one first display layer; the first display layer is a layer displayed by the display screen when the screen direction of the display screen is the first direction; establishing a new display layer, wherein the new display layer completely covers all the first display layers; displaying a fillet on the new display layer based on the display area and the display radius to obtain a fillet display layer; taking all the first display layers and the round corner display layers as screen display pictures;
the display area comprises a first display area and a second display area, the display radius comprises a first radius and a second radius, the first radius is different from the second radius, the first display layer comprises a state information display area and a navigation information display area, and the configuration module is further used for: displaying a rounded corner at the first display area of the new display layer based on the first radius, wherein the first display area coincides with the status information display area and the first radius is the same as the height of the status information display area; and displaying a round corner at the second display area of the new display layer based on the second radius to obtain a round corner display layer, wherein the second display area coincides with the navigation information display area, and the second radius is the same as the navigation information display area in height.
6. An electronic device comprising a processor, a memory and a bus, the memory storing a computer program executable by the processor, characterized in that when the electronic device is running, the processor and the memory communicate via the bus, the processor executing the computer program implements the screen display method of any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the screen display method of any one of claims 1 to 4.
CN202010983825.5A 2020-09-17 2020-09-17 Screen display method, apparatus, electronic device and computer readable storage medium Active CN112099650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010983825.5A CN112099650B (en) 2020-09-17 2020-09-17 Screen display method, apparatus, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010983825.5A CN112099650B (en) 2020-09-17 2020-09-17 Screen display method, apparatus, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112099650A CN112099650A (en) 2020-12-18
CN112099650B true CN112099650B (en) 2023-11-03

Family

ID=73758953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010983825.5A Active CN112099650B (en) 2020-09-17 2020-09-17 Screen display method, apparatus, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112099650B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113253966A (en) * 2021-07-07 2021-08-13 湖北亿咖通科技有限公司 User interface fillet display method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009301361A (en) * 2008-06-13 2009-12-24 Iwate Univ Method for recognizing fillet surface, fillet surface recognition program, and measurement information processing device
CN107665107A (en) * 2017-09-14 2018-02-06 晶赞广告(上海)有限公司 The multi-screen interaction method and device of chart, storage medium, mobile device
CN109085978A (en) * 2018-07-18 2018-12-25 厦门美图移动科技有限公司 View display methods, storage medium and mobile terminal
CN109542572A (en) * 2018-11-27 2019-03-29 维沃移动通信有限公司 A kind of interface display method and mobile terminal
CN110244891A (en) * 2018-03-07 2019-09-17 深圳天珑无线科技有限公司 Electric terminal and its image display scale method of adjustment, device
CN110443870A (en) * 2019-07-19 2019-11-12 天脉聚源(杭州)传媒科技有限公司 Fillet image display method, system and storage medium based on picture superposition

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228004B (en) * 2018-03-23 2022-10-04 上海中航光电子有限公司 Display panel and display device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009301361A (en) * 2008-06-13 2009-12-24 Iwate Univ Method for recognizing fillet surface, fillet surface recognition program, and measurement information processing device
CN107665107A (en) * 2017-09-14 2018-02-06 晶赞广告(上海)有限公司 The multi-screen interaction method and device of chart, storage medium, mobile device
CN110244891A (en) * 2018-03-07 2019-09-17 深圳天珑无线科技有限公司 Electric terminal and its image display scale method of adjustment, device
CN109085978A (en) * 2018-07-18 2018-12-25 厦门美图移动科技有限公司 View display methods, storage medium and mobile terminal
CN109542572A (en) * 2018-11-27 2019-03-29 维沃移动通信有限公司 A kind of interface display method and mobile terminal
CN110443870A (en) * 2019-07-19 2019-11-12 天脉聚源(杭州)传媒科技有限公司 Fillet image display method, system and storage medium based on picture superposition

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一键将屏幕变圆角;刘新平;《计算机与网络》;第31页 *

Also Published As

Publication number Publication date
CN112099650A (en) 2020-12-18

Similar Documents

Publication Publication Date Title
US11868671B2 (en) Electronic device and display control method thereof
CN107357540B (en) Display direction adjusting method and mobile terminal
US11199964B2 (en) Foldable electronic device and method for controlling screen by using gesture
US20210365165A1 (en) Method of performing a split-screen display, electronic device, and storage medium
KR102353766B1 (en) Apparatus and method for controlling display
KR102604570B1 (en) Method for supporting user input and electronic device supporting the same
EP2950196B1 (en) Electronic device and method for operating display
US20140111548A1 (en) Screen display control method of terminal
CN107643847B (en) Message display method and mobile terminal
US20170345396A1 (en) Configuring virtual display zones within one flexible display
US20150084881A1 (en) Data processing method and electronic device
CN108646969B (en) Image display adjusting method and device, computer equipment and storage medium
KR20210073912A (en) Electronic device and method for configuring layout thereof
US20130074000A1 (en) Electronic device and method for adjusting a touch-control area thereof
CN109683841B (en) Control display method and computing device in multi-display environment
CN111712786B (en) Touch input processing method and electronic device supporting same
WO2023020258A1 (en) Crease compensation method and apparatus, electronic device, and storage medium
CN112099650B (en) Screen display method, apparatus, electronic device and computer readable storage medium
US20150160841A1 (en) Desktop-like device and method for displaying user interface
US9823890B1 (en) Modifiable bezel for media device
CN109871162B (en) Electronic device and icon display method
WO2014097653A1 (en) Electronic apparatus, control method, and program
WO2021150347A1 (en) Dynamic resizing of a portion of a virtual device user interface
WO2017166749A1 (en) Screen rotating method and apparatus, and electronic device
CN109254710B (en) Screen rotation method and device, terminal equipment and computer readable storage medium

Legal Events

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