CN113360032A - Screen display method and device, electronic equipment and readable storage medium - Google Patents

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

Info

Publication number
CN113360032A
CN113360032A CN202110491376.7A CN202110491376A CN113360032A CN 113360032 A CN113360032 A CN 113360032A CN 202110491376 A CN202110491376 A CN 202110491376A CN 113360032 A CN113360032 A CN 113360032A
Authority
CN
China
Prior art keywords
screen
area
content
proximity sensor
occlusion
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
Application number
CN202110491376.7A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou 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 Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202110491376.7A priority Critical patent/CN113360032A/en
Publication of CN113360032A publication Critical patent/CN113360032A/en
Pending legal-status Critical Current

Links

Images

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a screen display method and device, electronic equipment and a readable storage medium, and belongs to the technical field of electronics. The method mainly comprises the following steps: displaying first content on a screen of an electronic device; adaptively displaying the first content on a second area of the screen when the first area of the screen is blocked; the second area is an area of the screen except the first area.

Description

Screen display method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a screen display method and device, electronic equipment and a readable storage medium.
Background
Generally, a built-in lithium battery is used for supplying power to an electronic device, wherein the electronic device displays contents such as time, characters, pictures, videos and controls through a screen, and consumes more electric quantity. In the related art, the power consumption of the screen is reduced by reducing the brightness of the screen.
The screen brightness is matched with the ambient brightness of the electronic equipment, so that a better viewing effect can be achieved, the screen brightness is reduced, and the display content of the screen can not be displayed clearly.
Disclosure of Invention
An object of the embodiments of the present application is to provide a screen display method, an apparatus, an electronic device, and a readable storage medium, which can solve the problem of how to reduce power consumption of a screen on the premise of clearly displaying screen display content:
in a first aspect, an embodiment of the present application provides a screen display method, including:
displaying first content on a screen of an electronic device;
adaptively displaying the first content on a second area of the screen when the first area of the screen is blocked;
the second area is an area of the screen except the first area.
In a second aspect, an embodiment of the present application provides an apparatus for screen display, where the apparatus includes: the display device comprises a first display module and a second display module;
the first display module is used for displaying first content on a screen of the electronic equipment;
the second display module is configured to adaptively display the first content displayed by the first display module on a second area of the screen when the first area of the screen is blocked;
the second area is an area of the screen except the first area.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method as described above in the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, the present application provides a computer program product stored in a non-volatile storage medium, the program product being executed by at least one processor to implement the method as provided in the first aspect.
In the embodiment of the application, a first content is displayed on a screen of an electronic device, and when a first area of the screen is blocked, the first content is adaptively displayed on a second area of the screen, wherein the second area is an area except for the first area in the screen. In this way, the first content is adaptively displayed on a second area (an area which is not occluded and does not affect the viewing of the user) except for the first area (an area which is occluded and affects the viewing of the user in the screen) in the screen of the electronic device, so that the power consumption of the screen can be saved under the condition that the user is guaranteed not to be affected in viewing the first content.
Drawings
FIG. 1 is a flowchart illustrating a screen display method according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a method for displaying first content on a second area according to an embodiment of the present application;
FIG. 3 is a second flowchart illustrating a screen display method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a proximity sensor position and a position of an occlusion region based on a smart watch according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a method for determining a first area according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a method for displaying first content in a second area based on a smart watch according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a screen display device according to an embodiment of the present disclosure;
fig. 8 is a second schematic structural diagram of a screen display device according to an embodiment of the present application;
FIG. 9 is a hardware diagram of an electronic device provided by an embodiment of the present application;
fig. 10 is a second hardware schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
As the application of battery-powered electronic devices becomes more and more widespread, the standby time of the electronic devices gradually becomes an important parameter for considering the performance of the electronic devices. In the related art, the capacities of the batteries of the same material per unit volume are almost the same, and therefore, the electronic devices generally adopt different power saving strategies to prolong the standby time. Especially, if the electronic device is a smart wearable product, because the weight that the smart wearable product can bear is limited, the size of the battery configured in the smart wearable product is limited, that is, it is more important for the smart wearable device to adopt a power saving strategy to prolong the standby time.
In order to solve the problem that the power consumption for lighting the screen in the electronic device is large, in the screen display method, the device, the electronic device and the readable storage medium provided by the embodiment of the application, the first content is displayed on the screen of the electronic device, and when the first area of the screen is shielded, the first content is adaptively displayed on the second area of the screen, wherein the second area is an area except the first area in the screen. In this way, the first content is adaptively displayed on a second area (an area which is not occluded and does not affect the viewing of the user) except the first area (an area which is occluded and affects the viewing of the user in the screen) in the screen of the electronic device, so that the viewing of the first content by the user is guaranteed not to be affected, and the power consumption of the screen can be saved.
The hardware configured in the electronic device applied in the embodiment of the application at least comprises a proximity sensor, a screen, a battery and a processor, wherein the battery is respectively connected with the proximity sensor, the screen and the processor and supplies power. The proximity sensor is arranged on a side frame of the electronic equipment, detects whether a proximity event exists or not through the proximity sensor, and judges whether a part or all of an area on a screen corresponding to the proximity sensor is shielded or not. The number of proximity sensors is related to the size of the screen and the granularity of division of the screen, and is not limited in the embodiment of the present application.
The proximity sensor is a sensor that can detect without touching a detection object, and examples thereof include photoelectric proximity sensors (light emitting sources include semiconductor light sources, light emitting diodes, laser diodes, or infrared emitting diodes), capacitive proximity sensors, and the like. The powered proximity sensor acquires sensing signals according to a preset period, and the processor judges whether a proximity event exists according to the sensing signals so as to detect whether the proximity sensor is shielded.
As shown in fig. 1, an embodiment of the present application provides a screen display method. The method may include steps 101 and 102 described below. The method is exemplified below by taking the execution subject as a screen display device.
Step 101: the screen display device displays first content on a screen of the electronic device.
In an embodiment of the present application, the first content is a content to be browsed by a user, and the first content includes at least one of: the interface of the currently running application program (such as a video playing interface, a chat conversation interface or an audio playing interface), the current time, the current date, an incoming call reminder, a received message reminder, a stop alarm ringing control and the like.
Step 102: the screen display device adaptively displays the first content on a second area of the screen when the first area of the screen is blocked.
In an embodiment of the present application, the second area is an area other than the first area in the screen. The first area may be regarded as an occluded area in the screen of the electronic device, and correspondingly, the second area may be regarded as an unoccluded area in the screen of the electronic device.
It should be noted that, when the time for which the first area is blocked exceeds the preset threshold, it is determined that the first area of the screen is blocked, so as to avoid that the first area is restored to the non-blocked state after the second area adaptively displays the first content because the first area is accidentally blocked, which causes frequent change of a screen range (a screen or a second area of the electronic device) displaying the first content, which is not beneficial for a user to view the first content, and is also not beneficial for saving system resources of the electronic device.
Optionally, in this embodiment of the application, if the electronic device updates the first content in response to the touch screen input, the user may manually solve the problem that the screen is disturbed. Therefore, the screen display device detects the shielding condition of the screen when the screen of the electronic equipment does not receive the touch screen report point.
It should be noted that the touch screen touch-off point refers to receiving a trigger signal for triggering a certain position in the screen of the electronic device. The screen of the electronic device does not receive the touch screen report, that is, the first content currently displayed on the screen of the electronic device is the content to be browsed by the user, so that the browsing requirement of the user can be met. On the contrary, if the screen of the electronic device receives a touch screen hit, that is, the user is using the electronic device, the display on the whole screen of the electronic device is more suitable for the user's requirement.
Optionally, in this embodiment of the present application, the screen display device determines, according to a state of the proximity sensor, an occluded state of the screen, that is, determines an occluded first area in the screen.
Further optionally, in this embodiment of the application, the screen display device may obtain the sensing signal of the proximity sensor according to a preset period, determine whether the proximity sensor corresponding to the sensing signal is blocked according to a preset signal change table, and finally determine the blocked condition of the screen according to the blocked proximity sensor. The preset signal change table stores the corresponding relation between the sensing signal and whether the proximity sensor is shielded or not.
Illustratively, the first region includes at least one of: a region of fixed shape and fixed area, and a region of fixed area and fixed area. Wherein, the fixed shape can be rectangle, circle, trapezoid, etc.
Optionally, in this embodiment of the present application, the screen display device adaptively displays the first content in the second area according to the system brightness, so as to ensure that the current brightness does not affect the user to browse the first content.
Optionally, in this embodiment of the application, the screen display device may display the first content according to a region size of the second region. It is understood that the screen display device may adaptively adjust a display attribute of the first content according to a region size of the second region so that the second region may completely display the first content, wherein the display attribute includes at least one of: picture size, font size, video play window size.
Optionally, in this embodiment of the application, the screen display device may display the first content in the second area according to a display attribute of the first content on the screen of the electronic device. Wherein the display attributes include at least one of: picture size, font size, video play window size.
It is to be understood that in the case of displaying the first content on the second area, a scroll bar is provided at the edge of the second area so as to prompt the user of a partially hidden content in addition to the currently displayed content, wherein parameters such as transparency, color, position, display scale in the second area, and the like may be set for the scroll bar.
Alternatively, as shown in fig. 2, in this embodiment of the application, in the case that the first content is a text content, the step 102 may be implemented by adaptively displaying the first content in the second area of the screen through steps 201 and 202.
Step 201: and the screen display device determines a third area in the second area based on the number of the characters under the condition that the number of the characters corresponding to the text content is less than a preset threshold value.
Step 202: the screen display device displays the text content in the third area.
In the embodiment of the present application, the text content includes characters, corner marks, and the like, and the third area is a partial area in the second area.
In this embodiment of the application, in a case that the number of characters corresponding to the text content is smaller than a preset threshold, the screen display device may reduce the size of the area of the second area, and determine the third area in the second area based on the number of characters, so that the third area can meet a requirement for clearly seeing the text content, and power consumption of screen display of the electronic device can be reduced by reducing the size of the area.
Illustratively, the screen display device determines a third area in the second area, including: setting the font size of the first content as a preset font size, calculating the area of a display area required when the first content is displayed according to the preset font size, and determining a third area in the second area according to the area of the display area from the position farthest from the first area in the second area. Wherein, the preset character size is the minimum display character size.
In the screen display method provided by the embodiment of the application, first content is displayed on a screen of an electronic device, and when a first area of the screen is blocked, the first content is adaptively displayed on a second area of the screen, wherein the second area is an area except for the first area in the screen. In this way, the first content is adaptively displayed in a second region (a region which is not occluded and does not affect the viewing of the user) other than the first region (a region which is occluded and affects the viewing of the user in the screen) in the screen of the electronic device, so that the power consumption of the screen can be saved while ensuring that the viewing of the first content by the user is not affected.
Optionally, in this embodiment of the present application, as shown in fig. 3, after step 102, the screen display method provided in this embodiment of the present application may further include step 301.
Step 301: the screen display device controls the first area to be turned off.
In the embodiment of the application, the screen display device performs screen turn-off on the first area, that is, the brightness of the position of the screen of the electronic device corresponding to the first area is adjusted to be minimum, so that the power consumption caused by the screen brightness is reduced to the maximum extent.
Optionally, in this embodiment of the application, the proximity sensors are disposed at a side frame of the electronic device, and the number of the proximity sensors is M. The proximity sensor provided in the side frame can sense a sensing signal approaching the screen. Based on this, before step 101, the screen display method provided in the embodiment of the present application may further include step 101 a.
Step 101 a: the screen display device divides the screen into N shielding areas according to the positions of the M proximity sensors.
In the embodiment of the application, the screen is divided into N shielding areas according to the actual scene shielded by the screen.
In an example, assuming that the electronic device is a tablet computer, since other activities, such as housework, sports, eating, and the like, are generally considered during playing a video file using the tablet computer, if a screen of the tablet computer is blocked during use, a user needs to pause the considered other activities to purposely eliminate interference so as to normally watch the video file. In the case that the tablet computer screen is shielded, the shielding objects may be food, clothes, sports equipment and the like, so that the shielding position and the shielding area of the tablet computer screen have stronger randomness.
Further optionally, the screen display device divides the screen into N occlusion regions along a first direction or a second direction through the position of each proximity sensor; wherein the first direction is perpendicular to the second direction.
Further optionally, after the screen display device divides the screen into N occlusion areas, the screen display device may further record segmentation line segments of the N occlusion areas, and determine the occlusion area corresponding to the proximity sensor according to the segmentation line segment areas.
Specifically, 8 proximity sensors are arranged on the side frame of the tablet computer screen, and 9 shielding areas are divided. The method comprises the steps that 2 proximity sensors are arranged on each side edge, the side edge is equally divided by the 2 proximity sensors, the screen is divided into 9 divided areas along the first direction or the second direction after passing through the positions of the 8 proximity sensors, the divided line segments of the 9 divided areas are recorded, and the 9 divided areas are determined to be 9 shielding areas.
In another example, assuming that the electronic device is a smart watch, the smart watch can perform health monitoring while taking into account the functions of a common watch, and is generally worn around the wrist of the user by a watchband, and if the user wears a long-sleeved jacket, especially a multi-layer garment, the long-sleeved jacket can shield the screen of the smart watch if the user stretches the wrist beyond the cuff to a large extent, and therefore the boundary of the shielded screen of the smart watch is often parallel to the cuff and perpendicular to the extending direction of the arm to the fingertip. It is assumed that the wristband is oriented in a first direction, i.e. parallel to the cuff.
Further optionally, the screen display device divides the screen into N occlusion regions along the first direction through the position of each of the proximity sensors.
Further optionally, after the screen display device divides the screen into N occlusion areas, the screen display device may further record segmentation line segments of the N occlusion areas, and determine the occlusion area corresponding to the proximity sensor according to the segmentation line segment areas.
Specifically, as shown in fig. 4, 4 proximity sensors (including a first proximity sensor 41, a second proximity sensor 42, a third proximity sensor 43, and a fourth proximity sensor 44) are disposed on a side frame of the smart watch screen. According to the screen frame of the rectangle or fillet rectangle screen of intelligent wrist-watch, carry out the trisection with the last frame and the lower frame of screen frame, first proximity sensor 41 sets up the position of the last frame at the side frame and does: the vertical distance from the left side frame where the second proximity sensor 42 is located is the position of one third of the length of the upper frame, and the position where the third proximity sensor 43 is arranged on the lower frame of the side frame is: the vertical distance from the left side frame where the second proximity sensor 42 is located is two thirds of the length of the upper frame. The second proximity sensor 42 is provided at the center of the left side frame of the outer border, and the fourth proximity sensor 44 is provided at the center of the right side frame of the side frame.
If the screen of the smart watch is circular or oval, similar to the sensor position setting described above, the second proximity sensor 42 is set at the center of the left side frame and the fourth proximity sensor 44 is set at the center of the right side frame according to the virtual circumscribed frame of the screen. Then, the first proximity sensor 41 is disposed on the screen side frame of the smart watch, and the vertical distance from the left side frame where the second proximity sensor 42 is located is one third of the length of the upper frame, and is close to the position of the upper frame of the virtual circumscribed frame. Finally, the third proximity sensor is arranged on the screen side frame of the smart watch, and the vertical distance from the left side frame where the second proximity sensor 42 is located is two thirds of the length of the upper frame and is close to the position of the lower frame of the virtual circumscribed frame.
Specifically, the screen is divided into 3 first regions in a first direction indicated by a dotted line in the figure according to the positions of the first proximity sensor 41 and the third proximity sensor 43, respectively, and the dotted line passing through the screen is a dividing line. Because the intelligent watch is often parallel with the cuff by the border that is sheltered from the screen in the use characteristics, with first proximity sensor 41 and third proximity sensor 43 only need last frame and lower frame diagonal angle place can satisfy and detect the area of coverage demand.
Further alternatively, the screen display device may determine a correspondence between a detection result of the proximity sensor for the proximity event and the occlusion region according to the occlusion region to which the segmentation line segment corresponding to the proximity sensor belongs, and record the correspondence between the M proximity sensors and the N occlusion regions through a truth table. It can be understood that, according to the detection results of the 4 proximity sensors on the proximity events, 3 corresponding occlusion areas are recorded.
The following is a description by way of a few examples.
Example 1: under the condition that above-mentioned 4 proximity sensor all do not detect the proximity event, the intelligent wrist-watch screen does not have the sheltering from, does not have corresponding sheltering from the region.
Example 2: in case only one proximity sensor detects a proximity event: since the segment corresponding to the first proximity sensor 41 belongs to both the first occlusion region 45 and the second occlusion region 46, when the first proximity sensor 41 detects a proximity event, the occlusion region corresponding to the first proximity sensor 41 is: a first occlusion region 45 and a second occlusion region 46; similarly, since the segment corresponding to the second proximity sensor 42 belongs to the first occlusion region 45, when the second proximity sensor 42 detects a proximity event, the occlusion region corresponding to the second proximity sensor 42 is: a first occlusion region 45.
Example 3: in the case where only two proximity sensors detect a proximity event: since the segment corresponding to the first proximity sensor 41 belongs to the first occlusion region 45 and the second occlusion region 46, and the segment corresponding to the second proximity sensor 42 belongs to the first occlusion region 45, when the first proximity sensor 41 and the second proximity sensor 42 detect a proximity event, the corresponding occlusion regions are: a first occlusion region 45 and a second occlusion region 46.
Example 4: in the case where only three proximity sensors detect a proximity event: the proximity sensor is specified from the shielded areas to which the segment corresponding to the proximity sensor belongs, and it is understood that the segment corresponding to the first proximity sensor 41 belongs to the first shielded area 45 and the second shielded area 46, the segment corresponding to the second proximity sensor 42 belongs to the first shielded area 45, and the segment corresponding to the third proximity sensor 43 belongs to the second shielded area 46 and the third shielded area 47. Furthermore, since the fourth proximity sensor 44 is not blocked, the third blocked area 47 may be in a partially blocked state, and in order to display the first content, when the first proximity sensor 41, the second proximity sensor 42 and the third proximity sensor 43 detect a proximity event, the corresponding blocked areas are: a first occlusion region 45 and a second occlusion region 46.
Example 5: under four proximity sensor detected the condition of proximity event, the intelligent wrist-watch screen was all sheltered from, and the corresponding region of sheltering from is: a first occlusion region 45, a second occlusion region 46 and a third occlusion region 47.
In this way, the partitioned occlusion regions are relatively fixed, and when one or some proximity sensors detect a proximity event, the first region corresponding to the occluded proximity sensor can be quickly determined according to the truth table.
In this embodiment of the present application, in a case that a screen is divided into N occlusion areas, as shown in fig. 2, in a process of displaying text content in a third area, a screen display device determines the third area in a second area, including: setting the font size of the first content as a preset font size, calculating the area of a display area required when the first content is displayed according to the preset font size, selecting a shielding area from the position farthest from the first area in the second area, judging whether the area of the shielding area is larger than the area of the display area, if so, determining that the shielding area is a third area, if not, selecting another shielding area, wherein the two sequentially selected shielding areas are adjacent, continuously judging whether the area of the two sequentially selected shielding areas is larger than the area of the display area, and repeating the steps until the third area is determined, wherein the preset font size is the minimum display font size, the third area consists of K shielding areas, and K is larger than or equal to 1.
Further optionally, as shown in fig. 5, in the embodiment of the present application, in a case that the screen is divided into N occlusion areas, the screen display device determines that the screen is occluded according to the state of the proximity sensor, and may include step 501 and step 502.
Step 501: the screen display device determines at least one shielding area corresponding to the proximity sensor when the state of the proximity sensor is a first state.
Step 502: and the screen display device merges the at least one occlusion area and takes the merged area as a first area.
In an embodiment of the present application, the first state is used to indicate that a blockage is present within a predetermined range monitored by the proximity sensor. Since the at least one occlusion region corresponding to the occluded proximity sensor may overlap each other, the first region corresponding to the occluded proximity sensor may be more easily determined by combining the at least one occlusion regions.
It can be understood that, in the process of merging the at least one occlusion region, the screen display device also needs to eliminate the mutually overlapped parts of the at least one occlusion region.
Specifically, as shown in fig. 4, when the proximity sensor and the second proximity sensor 41 and the second proximity sensor 42 detect a proximity event, the corresponding occlusion area is: the first occlusion region 45 and the second occlusion region 46 merge the first occlusion region 45 and the second occlusion region 46, and the merged region is taken as the first region. In the case where the first content is to display the current time, as shown in fig. 6, the current time 18:53, 12 months, 18 days, monday are displayed in the area other than the first occlusion area 45 and the second occlusion area 46, i.e., the third occlusion area 45, in the smart watch screen.
It should be noted that, in the screen display method provided in the embodiment of the present application, the execution main body may be a screen display device, or a control module in the screen display device for executing the screen display method. The screen display device provided by the embodiment of the present application is described by taking a method for executing screen display by the screen display device as an example.
As shown in fig. 7, an embodiment of the present application provides a screen display device. The screen display device includes: a first display module 71 and a second display module 72;
the first display module 71 is configured to display first content on a screen of the electronic device;
the second display module 72 is configured to adaptively display the first content displayed by the first display module 71 on a second area of the screen when the first area of the screen is blocked;
the second area is an area of the screen except the first area.
Optionally, as shown in fig. 8, the apparatus further includes: a screen-off module 73;
the screen-off module 73 is configured to, when the first area of the screen is blocked, control the second display module 72 to adaptively display the first content displayed by the first display module 71 on the second area of the screen and then to control the first area to be turned off.
Optionally, as shown in fig. 8, the apparatus further includes: a determination module 74;
the determining module 74 is configured to determine, after the first display module displays the first content on the screen of the electronic device, an occlusion condition of the screen according to a state of the proximity sensor.
Optionally, proximity sensors are disposed at a side frame of the electronic device, where the number of the proximity sensors is M;
as shown in fig. 8, the above apparatus further includes: a dividing module 75;
the dividing module 75 is configured to divide the screen into N occlusion areas according to the positions of the M proximity sensors before the determining module 74 determines the occlusion condition of the screen according to the states of the proximity sensors.
Optionally, the dividing module 75 is specifically configured to divide the screen into N occlusion areas along a first direction through the position of each proximity sensor;
as shown in fig. 8, the above apparatus further includes: a processing module 76;
the processing module 76 is configured to, after the dividing module 75 divides the screen into N occlusion areas according to the positions of the M proximity sensors, record segmentation line segments of the N occlusion areas, and determine an occlusion area corresponding to the proximity sensor according to the segmentation line segment areas.
Optionally, the determining module 74 is specifically configured to: determining at least one shielding area corresponding to the proximity sensor under the condition that the state of the proximity sensor is a first state, wherein the first state is used for indicating that a shielding object exists in a preset range monitored by the proximity sensor; and combining the at least one occlusion area, and determining the combined area as a first area.
Optionally, the first content is text content; the second display module 72 is further configured to: determining a third area in the second area based on the number of characters under the condition that the number of characters corresponding to the text content is smaller than a preset threshold; and displaying the text content on the third area.
In the screen display device provided by the embodiment of the application, first content is displayed on a screen of an electronic device, and when a first area of the screen is shielded, the first content is adaptively displayed on a second area of the screen, wherein the second area is an area except the first area in the screen. In this way, the first content is adaptively displayed on a second area (an area which is not occluded and does not affect the viewing of the user) except for the first area (an area which is occluded and affects the viewing of the user in the screen) in the screen of the electronic device, so that the power consumption of the screen can be saved under the condition that the user is guaranteed not to be affected in viewing the first content.
The screen display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The screen display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The screen display device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 6, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 9, an electronic device 900 is further provided in this embodiment of the present application, and includes a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and executable on the processor 901, where the program or the instruction is executed by the processor 901 to implement each process of the foregoing screen display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The display unit 1006 is configured to display a first content on a screen of the electronic device; adaptively displaying the first content on a second area of the screen when the first area of the screen is blocked; the second area is an area of the screen except the first area.
Optionally, the processor 1010 is configured to: and controlling the first area to be turned off after the first content is adaptively displayed in the second area of the screen in a case where the first area of the screen is blocked.
Optionally, the processor 1010 is further configured to: after the screen of the electronic equipment displays the first content, the shielded condition of the screen is determined through the state of the proximity sensor.
Optionally, the proximity sensors are disposed at a side frame of the electronic device, and the number of the proximity sensors is M; the processor 1010 is further configured to divide the screen into N occlusion regions according to positions of M proximity sensors before determining the occlusion condition of the screen according to the states of the proximity sensors.
Optionally, the processor 1010 is further configured to divide the screen into N occlusion regions along a first direction through the position of each of the proximity sensors;
the processor 1010 is further configured to, after the screen is divided into N occlusion areas according to the positions of the M proximity sensors, record segmentation segments of the N occlusion areas, and determine an occlusion area corresponding to the proximity sensor according to the segmentation segment areas.
Optionally, the processor 1010 is further configured to determine at least one blocking area corresponding to the proximity sensor when the state of the proximity sensor is a first state, where the first state is used to indicate that a blocking object exists within a preset range monitored by the proximity sensor; and combining the at least one occlusion area, and determining the combined area as a first area.
Optionally, the first content is text content; the processor 1010 is further configured to determine a third area in the second area based on the number of characters when the number of characters corresponding to the text content is smaller than a preset threshold;
the display unit 1006 is further configured to display the text content on the third area.
In the electronic device provided by the embodiment of the application, first content is displayed on a screen of the electronic device, and when a first area of the screen is blocked, the first content is adaptively displayed on a second area of the screen, wherein the second area is an area except for the first area in the screen. In this way, the first content is adaptively displayed on a second area (an area which is not occluded and does not affect the viewing of the user) except for the first area (an area which is occluded and affects the viewing of the user in the screen) in the screen of the electronic device, so that the power consumption of the screen can be saved under the condition that the user is guaranteed not to be affected in viewing the first content.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the screen display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above-mentioned screen display method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for on-screen display, the method comprising:
displaying first content on a screen of an electronic device;
adaptively displaying the first content on a second area of the screen in a case where a first area of the screen is occluded;
wherein the second region is a region of the screen other than the first region.
2. The method of claim 1, wherein after adaptively displaying the first content on the second area of the screen in the case that the first area of the screen is occluded, the method further comprises:
and controlling the first area to be turned off.
3. The method of claim 1, wherein after displaying the first content on the screen of the electronic device, the method further comprises:
and determining the shielded condition of the screen according to the state of the proximity sensor.
4. The method of claim 3, wherein the proximity sensors are disposed at a bezel of the electronic device, the number of proximity sensors being M;
before determining the shielded condition of the screen through the state of the proximity sensor, the method further comprises:
and dividing the screen into N occlusion areas according to the positions of the M proximity sensors.
5. The method of claim 4, wherein the dividing the screen into N occlusion regions according to the positions of the M proximity sensors comprises:
dividing the screen into N shielding areas along a first direction through the position of each proximity sensor;
after the dividing the screen into N occlusion regions according to the positions of the M proximity sensors, the method further includes:
and recording segmentation line segments of the N occlusion areas, and determining the occlusion area corresponding to the proximity sensor according to the segmentation line segment areas.
6. The method according to claim 4 or 5, wherein the determining the occlusion condition of the screen by the state of the proximity sensor comprises:
determining at least one shielding area corresponding to the proximity sensor under the condition that the state of the proximity sensor is a first state, wherein the first state is used for indicating that a shielding object exists in a preset range monitored by the proximity sensor;
and merging the at least one occlusion region, and determining the merged region as a first region.
7. The method of claim 1, wherein the first content is textual content;
the adaptively displaying the first content on a second area of the screen comprises:
determining a third area in the second area based on the number of characters under the condition that the number of characters corresponding to the text content is smaller than a preset threshold;
displaying the text content on the third area.
8. An on-screen display device, the device comprising: the display device comprises a first display module and a second display module;
the first display module is used for displaying first content on a screen of the electronic equipment;
the second display module is used for adaptively displaying the first content displayed by the first display module on the second area of the screen under the condition that the first area of the screen is blocked;
wherein the second region is a region of the screen other than the first region.
9. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the screen display method of any one of claims 1-7.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the screen display method according to any one of claims 1 to 7.
CN202110491376.7A 2021-05-06 2021-05-06 Screen display method and device, electronic equipment and readable storage medium Pending CN113360032A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110491376.7A CN113360032A (en) 2021-05-06 2021-05-06 Screen display method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110491376.7A CN113360032A (en) 2021-05-06 2021-05-06 Screen display method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113360032A true CN113360032A (en) 2021-09-07

Family

ID=77525919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110491376.7A Pending CN113360032A (en) 2021-05-06 2021-05-06 Screen display method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113360032A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867603A (en) * 2021-09-27 2021-12-31 联想(北京)有限公司 Control method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729298A (en) * 2017-10-31 2018-02-23 努比亚技术有限公司 Screen occlusion area processing method, mobile terminal and computer-readable recording medium
CN110286826A (en) * 2019-06-27 2019-09-27 上海闻泰信息技术有限公司 Show processing method, device, equipment and the storage medium of content

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729298A (en) * 2017-10-31 2018-02-23 努比亚技术有限公司 Screen occlusion area processing method, mobile terminal and computer-readable recording medium
CN110286826A (en) * 2019-06-27 2019-09-27 上海闻泰信息技术有限公司 Show processing method, device, equipment and the storage medium of content

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867603A (en) * 2021-09-27 2021-12-31 联想(北京)有限公司 Control method and device

Similar Documents

Publication Publication Date Title
CN108008896B (en) Display control method and related product
US20140285455A1 (en) Sliding control method and terminal device thereof
WO2014071073A1 (en) Touch screen operation using additional inputs
CN111857509A (en) Split screen display method and device and electronic equipment
US20140059478A1 (en) Apparatus and method for providing a digital bezel without occluding interactive content
CN112445407B (en) Display method and electronic device
US20230214111A1 (en) Notification message display control method and apparatus, electronic device, and readable storage medium
CN112764624B (en) Information screen display method and device
US20230152956A1 (en) Wallpaper display control method and apparatus and electronic device
WO2022247744A1 (en) Icon display method and apparatus, and electronic device
CN112214112A (en) Parameter adjusting method and device
US20240045566A1 (en) Notification message display method and apparatus, device, readable storage medium, and chip
CN113138818A (en) Interface display method and device and electronic equipment
CN113709306B (en) Session processing method and device and electronic equipment
CN113360032A (en) Screen display method and device, electronic equipment and readable storage medium
CN111638810B (en) Touch control method and device and electronic equipment
CN113835558A (en) Screen parameter adjusting method and device and electronic equipment
CN108984062A (en) A kind of content display method, terminal
CN112929734A (en) Screen projection method and device and electronic equipment
CN112764611A (en) Application program control method and device and electronic equipment
CN112148193A (en) Navigation gesture setting method and device and electronic equipment
WO2023030304A1 (en) Prompt information display method and apparatus, and electronic device
CN114222355B (en) Terminal power-saving display method and device and electronic equipment
CN113934483A (en) Bullet frame display method and device
CN111930296A (en) Electronic equipment control method and device and electronic equipment

Legal Events

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