CN108762643B - Control bar display method, electronic device and computer readable storage medium - Google Patents

Control bar display method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN108762643B
CN108762643B CN201810556532.1A CN201810556532A CN108762643B CN 108762643 B CN108762643 B CN 108762643B CN 201810556532 A CN201810556532 A CN 201810556532A CN 108762643 B CN108762643 B CN 108762643B
Authority
CN
China
Prior art keywords
sensing device
blind area
control bar
display
sliding block
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
CN201810556532.1A
Other languages
Chinese (zh)
Other versions
CN108762643A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810556532.1A priority Critical patent/CN108762643B/en
Publication of CN108762643A publication Critical patent/CN108762643A/en
Application granted granted Critical
Publication of CN108762643B publication Critical patent/CN108762643B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • G06F3/0485Scrolling or panning
    • G06F3/04855Interaction with scrollbars
    • 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
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

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

Abstract

The embodiment of the application provides a control bar display method, an electronic device and a computer readable storage medium, relates to the technical field of communication, and can be applied to an electronic device with a special-shaped screen, wherein the special-shaped screen is provided with a display blind area, and the method comprises the following steps: monitoring a target event, wherein the target event is used for triggering and adjusting a parameter value of a target object; when the target event is monitored, displaying the control bar at a preset position around the display blind area; or when the target event is monitored, displaying one part of the control bar in the display blind area, and respectively displaying the rest parts of the control bar on two sides of the display blind area. The control bar display method, the electronic device and the computer readable storage medium can solve the problem that the control bar shields the screen, and improve the use experience of a user and the product viscosity.

Description

Control bar display method, electronic device and computer readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a control bar display method, an electronic device, and a computer-readable storage medium.
Background
With the development of mobile terminals and network technologies, the popularity of smart mobile terminals such as smart phones and tablet computers is increasing. People often use a physical volume key to adjust the volume when using the mobile terminal. To facilitate user adjustment, a volume control bar is displayed above the screen. However, in many scenes such as viewing a screen, browsing an electronic book, browsing a web page, etc., the volume control bar may block a part of the content displayed in the screen, thereby affecting the user experience.
Disclosure of Invention
The embodiment of the application provides a control bar display method, an electronic device and a computer-readable storage medium, which can be used for solving the problem that a screen is shielded by a control bar and improving the use experience of a user and the product viscosity.
An aspect of the present application provides a control bar display method, which is applied to an electronic device having a special-shaped screen, where the special-shaped screen has a display blind area, and the method includes: monitoring a target event, wherein the target event is used for triggering and adjusting a parameter value of a target object; when the target event is monitored, displaying a control bar at a preset position around the display blind area; or when the target event is monitored, displaying one part of the control bar in the display blind area, and displaying the rest parts of the control bar on two sides of the display blind area respectively.
An aspect of the embodiments of the present application further provides an electronic device, where the electronic device has a special-shaped screen, and the special-shaped screen has a display blind area, and the device includes: the monitoring module is used for monitoring a target event, wherein the target event is used for triggering and adjusting a parameter value of a target object; the first display module is used for displaying the control bar at a preset position around the display blind area when the target event is monitored; and the second display module is used for displaying one part of the control bar in the display blind area when the target event is monitored, and displaying the rest parts of the control bar on two sides of the display blind area respectively.
An aspect of an embodiment of the present application further provides an electronic device, including: the control bar display method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and is characterized in that when the processor executes the computer program, the control bar display method provided by the embodiment of the application is realized.
An aspect of the present embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor, and the control bar display method provided in the embodiment of the present application is implemented.
Above-mentioned each embodiment, through showing the control strip in the position of predetermineeing around the display blind area, perhaps, show the control strip partly in the display blind area, the rest shows respectively in the both sides of display blind area, because display blind area and around it be idle region usually, consequently can not produce the problem of the content that shelters from and show in the screen to user's use experience and product viscidity can be improved, on the other hand has also improved display screen's utilization ratio.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a control bar display method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a control bar display position in the control bar display method according to the embodiment of the present application;
fig. 3 is another schematic diagram of a control bar display position in the control bar display method according to the embodiment of the present application;
fig. 4 is another schematic diagram of a control bar display position in the control bar display method according to the embodiment of the present application;
fig. 5 is a schematic flow chart illustrating an implementation of a control bar display method according to another embodiment of the present application;
FIG. 6 is a schematic diagram of a control bar display method according to another embodiment of the present application, in which an optical distance sensor and a front camera are used to control the movement of a slider;
fig. 7 is a schematic flow chart illustrating an implementation of a control bar display method according to another embodiment of the present application;
FIG. 8 is a schematic view of a control bar showing a method for controlling a slider to move in one direction by using an optical distance sensor according to another embodiment of the present application;
fig. 9 is a schematic flow chart illustrating an implementation of a control bar display method according to another embodiment of the present application;
FIG. 10 is a schematic view of a control bar showing method according to another embodiment of the present application, in which an optical distance sensor and a front camera are used to control the slider to move in two directions;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of an electronic device according to another embodiment of the present application;
fig. 13 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application
Fig. 14 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Please refer to fig. 1, which is a schematic flow chart illustrating an implementation of a control bar display method according to an embodiment of the present application. The control bar display method provided by the embodiment can be applied to an electronic device with a special-shaped screen, and the special-shaped screen is provided with a display blind area. The display blind area is usually a concave part of the special-shaped screen, and is generally used for accommodating components such as a microphone, a front camera or a distance sensor. When the display blind area is positioned above the special-shaped screen, the display blind area can be called Liuhai. As shown in fig. 1, the method mainly comprises the following steps:
101. monitoring a target event through an event monitor;
102. when the target event is monitored, the control bar is displayed at a preset position around the display blind area, or a part of the control bar is displayed in the display blind area, and the rest of the control bar is displayed on two sides of the display blind area respectively.
Specifically, an event listener is preset in the electronic device, and is configured to listen to various events occurring in the system, and send the listened events to a corresponding processing method for processing.
The target event is used to trigger adjustment of a parameter value of the target object. Target objects may include, but are not limited to: the volume, the screen brightness, the page display content, the font size, the playing progress and other parameter values can be controlled and adjusted through the control bar.
Target events may include, for example, but are not limited to: a pressing event of a physical target object adjusting key (such as a pressing event of a physical volume adjusting key), a clicking event of a target object adjusting shortcut button, a menu, an icon or a shortcut key, an event of acquiring a voice instruction of a control bar of an instruction display target object, and the like.
And when the target event is monitored through the event monitor, displaying the control bar corresponding to the target object at a preset position around the display blind area. Optionally, as shown in fig. 2, the control bar is displayed on the left side of the dead zone. Alternatively, as shown in FIG. 3, the control bar is shown to the right of the shadow display area.
Optionally, the control bar can be selectively displayed in the non-display blind area on the side with the larger area according to the area of the blank area in the non-display blind areas on the two sides of the display blind area.
Or when the target event is monitored, displaying one part of the control bar in the display blind area, and respectively displaying the other parts of the control bar on two sides of the display blind area. That is, as shown in fig. 4, the two ends of the control bar are respectively displayed in the non-display blind areas at the two sides of the display blind area, and the middle part of the control bar is displayed in the display blind area. It will be appreciated that since the dead zone is free of a display screen, the portion of the control bar within the dead zone is not normally displayed, and is essentially a portion of the control bar that is virtually out of view. In practical applications, the portion of the control bar located in the dead display area may or may not be drawn. Preferably, in order to increase the drawing speed, only the part of the control bar which is not a display blind area can be drawn. In practical application, the lengths of the two ends of the control bar respectively displaying the non-display blind areas at the two sides of the display blind area can be equal or different.
Optionally, after the control bar is displayed, the slider on the control bar can be controlled to move by pressing the physical adjustment key, so as to adjust the parameters of the target object; or the sliding gesture of pressing and dragging the sliding block on the control bar in the non-display blind area is controlled to move by clicking operation at different positions on the control bar, and the parameters of the target object are adjusted according to the moving direction and the moved position of the sliding block. Such as: taking the volume control bar as an example, assume that the left side of the control bar corresponds to decreasing volume and the right side corresponds to increasing volume. When the operation that the user presses the physical key for increasing the volume is detected, the slider is controlled to move to the right side of the control bar according to the amplitude corresponding to the pressing times, and the volume value is increased to the volume value corresponding to the position of the slider after the slider moves; or when the slider is detected to be dragged to the right along the extending direction of the control bar by the user, the value of the volume is added to the volume value corresponding to the position of the slider after moving.
It should be noted that fig. 2 to fig. 4 are examples of a scene in which the display blind area is bang, and in practical applications, the position of the control bar may not be limited to the upper side of the screen according to the position of the display blind area. The left side and the right side of the display blind area related to each embodiment are also taken as examples of a scene in which the display blind area is a bang and is placed in a positive direction, and when the display blind area is located at other positions or other placing directions of the screen, the corresponding display blind area may be a side surface in an upper side, a lower side or other directions.
Optionally, when a part of the control bar is displayed in the display blind area and the rest of the control bar is displayed on two sides of the display blind area, the sensing device in the display blind area can sense the preset operation of the user. When the sensing device senses the preset operation, the sliding block on the control bar is moved according to the position of the sensing device or the preset operation, and the parameter value of the target object is adjusted to be the corresponding parameter value. A specific method of moving the slider on the control bar and adjusting the parameter value of the target object to a corresponding parameter value according to the position or preset operation of the sensing device may refer to the embodiments shown in fig. 5 to 10 described later.
Optionally, when a part of the control bar is displayed in the display blind area and the rest of the control bar is displayed on both sides of the display blind area, the preset operation of the user can be sensed by the sensing device in the display blind area only when the slider on the control bar is moved to the edge of the display blind area. When the sensing device senses the preset operation, the sliding block on the control bar is moved according to the position of the sensing device or the preset operation, and the parameter value of the target object is adjusted to be the corresponding parameter value. A specific method of moving the slider on the control bar and adjusting the parameter value of the target object to a corresponding parameter value according to the position or preset operation of the sensing device may refer to the embodiments shown in fig. 5 to 10 described later.
According to the control bar display method provided by the embodiment, the control bar is displayed at the preset position around the display blind area, or a part of the control bar is displayed in the display blind area, and the rest of the control bar is displayed on two sides of the display blind area respectively.
Please refer to fig. 5, which is a schematic flow chart illustrating an implementation of a control bar display method according to another embodiment of the present application. The control bar display method provided by the embodiment can be applied to an electronic device with a special-shaped screen, and the special-shaped screen is provided with a display blind area. The display blind area is usually a concave part of the special-shaped screen, and is generally used for accommodating components such as a microphone, a front camera or a distance sensor. When the display blind area is positioned above the special-shaped screen, the display blind area can be called Liuhai. As shown in fig. 5, the method mainly includes the following steps:
201. monitoring a target event through an event monitor;
202. when a target event is monitored, displaying one part of the control bar in the display blind area, and respectively displaying the rest parts of the control bar on two sides of the display blind area;
specifically, an event listener is preset in the electronic device, and is configured to listen to various events occurring in the system, and send the listened events to a corresponding processing method for processing.
The target event is used to trigger adjustment of a parameter value of the target object. Target objects may include, but are not limited to: the volume, the screen brightness, the page display content, the font size, the playing progress and other parameter values can be controlled and adjusted through the control bar.
Target events may include, for example, but are not limited to: a pressing event of a physical target object adjusting key (such as a pressing event of a physical volume adjusting key), a clicking event of a target object adjusting shortcut button, a menu, an icon or a shortcut key, an event of acquiring a voice instruction of a control bar of an instruction display target object, and the like.
When the target event is monitored, one part of the control bar is displayed in the display blind area, and the rest of the control bar is displayed in the non-display blind areas on the two sides of the display blind area respectively. That is, as shown in fig. 4, two ends of the control bar are respectively displayed at two sides of the display blind area, and the middle part of the control bar is displayed in the display blind area. It will be appreciated that since the dead zone is free of a display screen, the portion of the control bar within the dead zone is not normally displayed, and is essentially a portion of the control bar that is virtually out of view. In practical applications, the portion of the control bar located in the dead display area may or may not be drawn. Preferably, in order to increase the drawing speed, only the part of the control bar which is not a display blind area can be drawn.
203. When the sliding block on the control bar is moved to the edge of the display blind area from the non-display blind area, sensing whether an object approaches through a sensing device in the display blind area;
specifically, before the slider on the control bar is moved from the non-display blind area to the edge of the display blind area, the slider can be controlled to move by pressing the physical adjustment key or by pressing and dragging the sliding gesture of the slider on the control bar in the non-display blind area, and the parameters of the target object can be adjusted according to the moving direction of the slider and the position of the slider after the movement. Such as: taking the volume control bar as an example, assume that the left side of the control bar corresponds to decreasing volume and the right side corresponds to increasing volume. When the operation that the user presses the physical key for increasing the volume is detected, the slider is controlled to move to the right side of the control bar according to the amplitude corresponding to the pressing times, and the volume value is increased to the volume value corresponding to the position of the slider after the slider moves; alternatively, when it is detected that the slider is moved rightward by the user in the direction in which the control bar extends, the value of the sound volume is increased to the value of the sound volume corresponding to the position at which the slider is moved.
The blind display area is usually provided with a sensing device, such as a light sensor, a distance sensor, a front camera device, and the like. When the sliding block on the control bar is detected to be moved to the edge of the display blind area from the non-display blind area, whether an object is close to the display blind area is sensed by the sensing device in the display blind area. The object may be a user's finger or a stylus or other similar object. The edge of the display shadow area comprises the outer edge or the inner edge of the display shadow area. Optionally, in order to reduce power consumption, the sensing device in the display blind area may be activated when the slider on the control bar is detected to be moved from the non-display blind area to the edge of the display blind area.
Optionally, if a sensing device is disposed in the display blind area, when the slider on the control bar is moved from the non-display blind area to the edge of the display blind area, the sensing device is started to sense whether an object is close to the display blind area.
Optionally, if a plurality of sensing devices are disposed in the display blind area, when the slider on the control bar is moved from the non-display blind area to the edge of the display blind area, all the sensing devices in the display blind area are simultaneously turned on, so as to respectively sense whether an object is close to the respective positions of the sensing devices through the sensing devices.
Optionally, if two sensing devices are arranged in the display blind area, when the slider on the control bar is moved from the non-display blind area to the edge of the display blind area, the slider is sequentially started and senses whether an object is close to the slider through the sensing devices in the display blind area according to the sequence of the distances between the sensing devices and the edge from near to far and along with the moving position of the slider. In the sensing process, when an approaching object is sensed to leave, the currently started sensing device is closed, and the other sensing device is switched to be started for sensing, so that misjudgment is avoided, and power consumption can be reduced. In addition, in order to further reduce the power consumption, all sensing devices used for controlling the moving slide block in the display blind area can be closed when the slide block moves out of the display blind area.
For example: supposing that an optical distance sensor, a microphone and a front camera are sequentially arranged in the display blind area according to the sequence from left to right, when a sliding block on a control bar is moved to the left edge of the display blind area from a non-display blind area, firstly starting and sensing whether an object is close to the sliding block through the optical distance sensor, when the object is sensed to leave through the optical distance sensor, closing the optical distance sensor, and simultaneously starting and sensing whether an object is close to the sliding block through the front camera, then when the object is sensed to leave through the front camera, closing the front camera and starting the optical distance sensor, but when the sliding block is moved out of the display blind area, closing the front camera and the optical distance sensor.
On the contrary, when the slider on the control strip is moved to the right side edge of demonstration blind area from non-demonstration blind area, start at first and whether there is the object to be close to through leading camera sensing, when sensing the object and leaving through leading camera, close leading camera, start simultaneously and whether there is the object to be close to through light distance sensor sensing. And then when the optical distance sensor senses that the object leaves, the optical distance sensor is closed and the front camera is started, but when the sliding block moves out of the display blind area, the front camera and the optical distance sensor are closed.
Optionally, even if the slider is moved into the display blind area, the slider may be controlled to move and the parameter value of the target object may be adjusted by pressing a physical adjustment key or by voice. Or, even if the slider is in the non-display blind area, the sensing device in the display blind area can sense the preset operation of the user, and according to the preset operation, the slider is controlled to move along the control bar in the display blind area, and the parameter value of the target object is correspondingly adjusted.
It should be noted that, in the embodiment, the movement from the non-display blind area to one side edge of the display blind area may or may not include: and moving from the non-display blind area to the display blind area and then moving out of the display blind area uninterruptedly. Preferably not included.
204. When the sensing device senses that an object approaches, the sliding block is determined to be moved to a position on the control strip corresponding to the sensing device;
205. and adjusting the parameter value of the target object to the parameter value corresponding to the position.
The electronic device may be preset with the corresponding relationship between the position of each sensing device in the display blind area, different positions on the control bar and different parameter values. When an object is sensed to approach through a sensing device in the display blind area, it is determined that the sliding block on the control bar is moved to the position, corresponding to the sensing device, on the control bar, a target parameter value corresponding to the position is determined according to the corresponding relation, and then the parameter value of the target object is adjusted to the target parameter value.
Optionally, in another embodiment of the present application, the sensing device includes an optical distance sensor and a camera. The optical distance sensor is used for sensing the intensity change of ambient light and the distance change between an external obstacle and the optical distance sensor. The distance change between the external obstacle and the camera can be sensed through the picture shot by the camera.
When the current environment brightness is lower than the previous environment brightness sensed by the light distance sensor and the distance between an obstacle and the light distance sensor is smaller than a preset threshold value, it is determined that an object approaches. Otherwise, the object is determined to be away.
When the proportion of the object in the picture shot by the camera is larger than the preset proportion, the object is determined to be close to the camera. And when the proportion of the object in the picture shot by the camera is smaller than the preset proportion and has a trend of becoming smaller and smaller, determining that the object leaves.
Taking an application scenario of volume adjustment as an example, with reference to fig. 6, assuming that a slider on a control bar is dragged from the left side of a display blind area to a left edge position 1 of the display blind area, an optical distance sensor is started, and the optical distance sensor senses whether an object approaches, and when detecting that an object approaches, the slider is moved from the position 1 to a position 2 on the control bar corresponding to the position of the optical distance sensor, and a value of volume is increased to a target value corresponding to the position 2. And then, if the optical distance sensor senses that the object leaves, closing the optical distance sensor, starting the front camera at the same time, moving the sliding block from the position 2 to the position 3 corresponding to the position of the front camera on the control bar when the front camera senses that the object approaches, and increasing the volume value to a target value corresponding to the position 3. Similarly, when the front camera senses that the object leaves, the front camera is closed and the optical distance sensor is started, and when the optical distance sensor senses that the object approaches, the sliding block is moved from the position 3 to the position 2 corresponding to the position of the optical distance sensor on the control bar, and the volume value is reduced to the target value corresponding to the position 2. Repeating the steps until the sliding block moves out of the display blind area, and closing the optical distance sensor and the front camera. When the slider on the control bar is dragged to the left edge position 1 of the display blind area from the left side of the display blind area again, the above method can be repeated, and the details are not repeated here.
It can be understood that whether the slider is moved out of the dead display area can be determined according to the position of the slider before each movement, the movement amplitude, or the sliding gesture or the clicking operation of the user based on the control bar, which is detected by the touch screen in the dead non-display area.
It can be understood that, in a scene where the slider on the control bar is dragged from the non-display blind area on the right side of the display blind area to the right side edge of the display blind area, the processing logic of the slider on the control bar is similar to a scene where the slider on the control bar is dragged from the non-display blind area on the left side of the display blind area to the left side edge position 1 of the display blind area, and details are not repeated here.
According to the control bar display method provided by the embodiment, the control bar is displayed at the preset position around the display blind area, or a part of the control bar is displayed in the display blind area, and the rest of the control bar is displayed on two sides of the display blind area respectively. Furthermore, the sensing device arranged in the display blind area is used for controlling the sliding block to move, so that the controllability of the control strip can be improved, and the utilization rate of the sensing device is improved.
Please refer to fig. 7, which is a schematic flow chart illustrating an implementation of a control bar display method according to another embodiment of the present application. The control bar display method provided by the embodiment can be applied to an electronic device with a special-shaped screen, and the special-shaped screen is provided with a display blind area. The display blind area is usually a concave part of the special-shaped screen, and is generally used for accommodating components such as a microphone, a front camera or a distance sensor. When the display blind area is positioned above the special-shaped screen, the display blind area can be called Liuhai. As shown in fig. 7, the method mainly includes the following steps:
301. monitoring a target event through an event monitor;
302. when a target event is monitored, displaying one part of the control bar in the display blind area, and respectively displaying the rest parts of the control bar on two sides of the display blind area;
step 301 and step 302 are the same as step 201 and step 202 in the embodiment shown in fig. 5, and are not described again here.
303. When the sliding block on the control bar is moved from the non-display blind area to the edge of the display blind area, sensing the preset operation of a user through a sensing device in the display blind area;
in this embodiment, when the slider on the control bar is moved from the non-display blind area to the edge of the display blind area, any one of the sensing devices in the display blind area is activated, and the activated sensing device senses the preset operation of the user. The sensing devices that are activated in actual use may be customized by the user, or any one selected from among the idle sensing devices may be activated.
304. When the preset operation is sensed by the sensing device, the sliding block moves towards the opposite direction of the edge by the amplitude corresponding to the preset operation, and the parameter value of the target object is adjusted according to the adjusting mode corresponding to the moving direction of the sliding block and the position or moving amplitude to which the sliding block moves.
The preset operation may be, for example, an operation of staying in front of the sensing device or repeatedly approaching the sensing device. The electronic device is preset with corresponding relations between different amplitudes of preset operations and different moving amplitudes, such as corresponding relations between different stay time lengths or closing times and different moving amplitudes.
The electronic device is also preset with the corresponding relation between different moving amplitudes and different parameter value adjustment quantities of the target object. Or, the corresponding relations between different positions on the control bar and different parameter values of the target object are preset.
The adjustment means may for example comprise increasing or decreasing the parameter value. The electronic device is also preset with the corresponding relation between different moving directions and adjusting modes of the sliding block.
When the preset operation is sensed through the sensing device, the amplitude of the movement can be determined according to the corresponding relation between different preset amplitudes of the preset operation and different movement amplitudes. And then moving the slider in a direction opposite to the edge along the direction in which the control bar extends according to the determined moving amplitude. And then determining an adjusting mode according to the preset corresponding relation between different moving directions of the sliding block and the adjusting mode. Then, adjusting the parameter value of the target object according to the determined adjusting mode and the determined moving amplitude; or adjusting the parameter value of the target object according to the determined adjusting mode and the position to which the sliding block moves.
Optionally, in another embodiment of the present application, when the slider on the control bar is moved from the non-display blind area to the edge of the display blind area, the sensing device in the display blind area senses whether an object approaches and stays or approaches repeatedly. When the sensing device senses that an object approaches and stays or repeatedly approaches, the sliding block is moved towards the direction opposite to the edge according to the stay time or the amplitude corresponding to the approaching times, and the parameter value of the target object is adjusted according to the adjusting mode corresponding to the moving direction of the sliding block and the position or the moving amplitude to which the sliding block moves each time. Wherein the sensing device can be an optical distance sensor or a front camera arranged in the display dead zone. The specific manner of sensing whether an object is approaching and staying or repeatedly approaching by the optical distance sensor or the front-facing camera is the same as that in the embodiment shown in fig. 5, and is not described herein again.
Optionally, in order to reduce power consumption, the sensing device in the display blind area is activated when the slider on the control bar is moved from the non-display blind area to the edge of the display blind area. And when the sliding block moves out of the display blind area, closing the sensing device used for controlling the sliding block to move in the display blind area. When the sliding block is moved to one side edge of the display dead zone again, the sensing device is started again.
For example, referring to fig. 8, if the slider is controlled to move by the optical distance sensor in the volume adjusting scene, as shown in fig. 8, when the slider is moved from the non-display blind area on the left side of the display blind area to the left edge of the display blind area, the optical distance sensor is activated, and the optical distance sensor senses whether an object approaches and stays, if an object approaches and stays, the slider is moved from the position 1 to the position 2 when the stay time is 0.1 second, and when the stay time reaches 0.2 second, the slider is moved from the position 2 to the position 3, and the volume value is increased accordingly. That is, in the dead zone, the slider can be controlled to move in one direction by the optical distance sensor or other sensors. The specific moving direction is consistent with the moving direction of the sliding block moving from the non-display blind area to one side edge of the display blind area.
According to the control bar display method provided by the embodiment, the control bar is displayed at the preset position around the display blind area, or a part of the control bar is displayed in the display blind area, and the rest of the control bar is displayed on two sides of the display blind area respectively. Furthermore, the sensing device arranged in the display blind area is used for controlling the sliding block to move, so that the controllability of the control strip can be improved, and the utilization rate of the sensing device is improved.
Please refer to fig. 9, which is a schematic flow chart illustrating an implementation of a control bar display method according to another embodiment of the present application. The control bar display method provided by the embodiment can be applied to an electronic device with a special-shaped screen, and the special-shaped screen is provided with a display blind area. The display blind area is usually a concave part of the special-shaped screen, and is generally used for accommodating components such as a microphone, a front camera or a distance sensor. When the display blind area is positioned above the special-shaped screen, the display blind area can be called Liuhai. As shown in fig. 9, the method mainly includes the following steps:
401. monitoring a target event through an event monitor;
402. when a target event is monitored, displaying one part of the control bar in the display blind area, and respectively displaying the rest parts of the control bar on two sides of the display blind area;
step 401 and step 402 are the same as step 201 and step 202 in the embodiment shown in fig. 5, and are not described again here.
403. When the sliding block on the control bar is moved to the edge of the display blind area from the non-display blind area, sensing whether an object approaches and stays or repeatedly approaches through a first target sensing device which is closer to the edge in a first sensing device and a second sensing device in the display blind area;
specifically, two sensing devices can be disposed in the display blind area, such as: an optical distance sensor and a front camera. When the slider on the control bar is moved from the non-display blind area to the edge of the display blind area, according to the position relation between each sensing device arranged in the display blind area and the edge, the sensing device closest to the edge is determined as a first target sensing device, and the first target sensing device senses whether an object approaches and stops or repeatedly approaches. Optionally, to reduce power consumption, the first target sensing device may be activated when the slider on the control bar is detected to move from the non-display blind area to the edge of the display blind area.
The specific method for sensing whether an object is approaching and staying or repeatedly approaching through the optical distance sensor and the front-facing camera can refer to the related description in the foregoing embodiments, and details are not repeated here.
404. When an object is sensed to approach through the first target sensing device and stays or repeatedly approaches, the sliding block is moved towards the opposite direction of the edge according to the stay time or the amplitude corresponding to the approaching times, and the parameter value of the target object is adjusted according to the adjusting mode corresponding to the moving direction of the sliding block and the position or the moving amplitude to which the sliding block moves each time;
specifically, the first target sensing device is used for moving the slider along the extending direction of the control bar in the direction opposite to the edge of the display blind area where the slider is currently located. For example: if the slide block is moved to the left edge of the display blind area from the non-display blind area on the left side, when the first target sensing device senses that an object approaches and stays or repeatedly approaches, the slide block is moved to the right direction according to the stay time length or the amplitude corresponding to the approach times. If the slide block is moved to the right side edge of the display blind area from the non-display blind area on the right side, when the first target sensing device senses that an object approaches and stays or repeatedly approaches, the slide block is moved to the left direction according to the stay duration or the amplitude corresponding to the approach times.
The manner of controlling the movement of the slider and adjusting the parameter value of the target object can refer to the related contents in the foregoing embodiments, and details are not repeated herein.
405. When the sliding block is moved into the display blind area, sensing whether an object approaches and stays or repeatedly approaches through the first target sensing device and the second target sensing device respectively;
specifically, when the slider is moved into the display blind area, two sensing devices in the display blind area sense whether an object approaches and stays or approaches repeatedly. According to the position relationship between each sensing device arranged in the dead display area and the edge where the slider is located in step 403, the sensing device farther away from the edge of the two sensing devices is determined as the second target sensing device. Optionally, to reduce power consumption, the second target sensing device may be activated when it is detected that the slider on the control bar is moved into the dead zone.
406. If the first target sensing device senses that an object approaches and stays or repeatedly approaches, the sliding block is moved towards the direction opposite to the edge according to the stay time or the amplitude corresponding to the approaching times, and the parameter value of the target object is adjusted according to the adjusting mode corresponding to the moving direction of the sliding block and the position or the moving amplitude to which the sliding block moves each time;
step 406 is the same as step 404 and is not described herein again.
407. If the second target sensing device senses that an object approaches and stays or repeatedly approaches, the sliding block is moved towards the edge direction according to the stay time or the amplitude corresponding to the approaching times, and the parameter value of the target object is adjusted according to the adjusting mode corresponding to the moving direction of the sliding block and the position or the moving amplitude to which the sliding block moves each time.
For example, referring to fig. 10, assuming that the slider is controlled to move by the optical distance sensor and the front camera at the same time in the volume adjusting scene, as shown in fig. 10, when the slider is moved from the non-display blind area on the left side of the display blind area to the left edge of the display blind area, the optical distance sensor is activated, and the optical distance sensor senses whether an object approaches and stops, if an object approaches and stops, when the stopping time is 0.1 second, the slider is moved from position 1 to position 2, and accordingly the volume value is increased.
After the slider is moved to the display blind area, if the slider is moved to the position 2, the front camera is started, and simultaneously whether an object is close to and stays is sensed through the optical distance sensor and the front camera, if the object is close to and stays for 0.1 second is sensed through the optical distance sensor, the slider is moved to the position 3 from the position 2, and the volume is correspondingly increased. And then, if the front camera senses that an object approaches and stays, reversely moving the sliding block from the position 3 to the position 2 according to the stay time when the stay time is 0.1 second, and correspondingly reducing the volume value.
That is to say, in the display blind area, the slider can be controlled to move towards different directions through the optical distance sensor and the front camera respectively. In practical applications, the moving direction corresponding to each sensing device can be customized by a user, or determined according to the position of the sensing device.
Optionally, in order to reduce power consumption, when the slider moves out of the display blind area, the sensing device for controlling the slider to move in the display blind area is turned off. When the sliding block is moved to one side edge of the display dead zone again, the sensing device is started again.
It is understood that in practical applications, the sensing device disposed in the blind display area is not limited to the optical distance sensor and the front camera, and the positions of the optical distance sensor and the front camera are not limited to those shown in fig. 10.
According to the control bar display method provided by the embodiment, the control bar is displayed at the preset position around the display blind area, or a part of the control bar is displayed in the display blind area, and the rest of the control bar is displayed on two sides of the display blind area respectively. Furthermore, the sensing device arranged in the display blind area is used for controlling the sliding block to move, so that the controllability of the control strip can be improved, and the utilization rate of the sensing device is improved.
Fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device can be used for implementing the control bar display method provided by the embodiment shown in fig. 1. The electronic device is provided with a special-shaped screen, and the special-shaped screen is provided with a display blind area. The display blind area is usually a concave part of the special-shaped screen, and is generally used for accommodating components such as a microphone, a front camera or a distance sensor. When the display blind area is positioned above the special-shaped screen, the display blind area can be called Liuhai. As shown in fig. 11, the electronic device mainly includes: a listening module 501, a first display module 502 and a second display module 503.
The monitoring module 501 is configured to monitor a target event, where the target event is used to trigger adjustment of a parameter value of a target object.
The first displaying module 502 is configured to display the control bar at a preset position around the blind display area when the target event is monitored.
A second displaying module 503, configured to display a part of the control bar in the display blind area when the target event is monitored, and display the remaining part of the control bar on two sides of the display blind area respectively.
It should be noted that, in the embodiment of the electronic device illustrated in fig. 11, the division of the functional modules is only an example, and in practical applications, the above functions may be distributed by different functional modules according to needs, for example, configuration requirements of corresponding hardware or convenience of implementation of software, that is, the internal structure of the electronic device is divided into different functional modules to complete all or part of the functions described above. In practical applications, the corresponding functional modules in this embodiment may be implemented by corresponding hardware, or may be implemented by corresponding hardware executing corresponding software. The above description principles can be applied to various embodiments provided in the present specification, and are not described in detail below.
For a specific process of each function module in the electronic device provided in this embodiment to implement each function, please refer to the specific content described in the embodiment shown in fig. 1, which is not described herein again.
The electronic device that this embodiment provided shows through predetermineeing the position around the display blind area with the control strip, perhaps, shows the partly in the display blind area of control strip, and the rest shows respectively in the both sides of display blind area, because display blind area and the region that is idle usually around it, consequently can not produce the problem of the content that shelters from and show in the screen to can improve user's use experience and product viscidity, on the other hand has also improved display screen's utilization ratio.
Please refer to fig. 12, which is a schematic structural diagram of an electronic device according to another embodiment of the present application. The electronic device can be used for implementing the control bar display method provided by the embodiments shown in fig. 1 to 10. Unlike the embodiment of fig. 11, as shown in fig. 12,
further, be provided with at least one sensing device in this display blind area, the device still includes:
a first sensing module 601, configured to sense whether an object approaches through the sensing device when the slider on the control bar is moved from the non-display blind area to the edge of the display blind area;
a determining module 602, configured to determine that the slider is moved to a position on the control bar corresponding to the sensing device when the sensing device senses that an object is approaching;
a first adjusting module 603, configured to adjust the parameter value of the target object to a parameter value corresponding to the position.
Furthermore, two sensing devices are arranged in the display blind area, and the first sensing module 601 is further configured to sequentially start and sense whether an object is approaching through each sensor according to a sequence from near to far from the edge when the slider on the control bar is moved from the non-display blind area to the edge of the display blind area;
the electronic device further includes:
the control module 604 is used for turning off the currently started sensing device and switching on another sensing device when the approaching object is sensed to leave;
the control module 604 is further configured to turn off all of the sensing devices when the slider moves out of the display blind area.
Further, the sensing device comprises an optical distance sensor and a camera;
the first sensing module 601 is further configured to determine that an object is close to the first sensing module when the light distance sensor senses that the current ambient brightness is lower than the ambient brightness at the previous time and the distance between an obstacle and the light distance sensor is smaller than a preset threshold;
the first sensing module 601 is further configured to determine that an object is close to the camera when a ratio of the object in the picture shot by the camera in the picture is greater than a preset ratio.
Further, be provided with sensing device in this display blind area, this electron device still includes:
a second sensing module 605, configured to sense whether an object approaches and stays or approaches repeatedly through the sensing device when the slider on the control bar is moved from the non-display blind area to the edge of the display blind area;
and a second adjusting module 606, configured to, when it is sensed by the sensing device that an object approaches and stays or repeatedly approaches, move the slider in a direction opposite to the edge according to an amplitude corresponding to a staying duration or an approaching frequency, and adjust a parameter value of the target object according to an adjusting manner corresponding to a moving direction of the slider and a position or a moving amplitude to which the slider moves each time.
Further, the sensing device includes a first sensing device and a second sensing device arranged side by side, and the electronic device further includes:
a third sensing module 607, configured to sense whether an object approaches and stays or repeatedly approaches through a first target sensing device closer to an edge of the display blind area in the first sensing device and the second sensing device when the slider on the control bar is moved from the non-display blind area to the edge of the display blind area;
a third adjusting module 608, configured to, when an object is detected to approach and stay or repeatedly approach by the first target sensing device, move the slider in a direction opposite to the edge according to an amplitude corresponding to a stay duration or an approach frequency, and adjust a parameter value of the target object according to an adjusting manner corresponding to a moving direction of the slider and a position or a moving amplitude to which the slider moves each time;
a fourth sensing module 609, configured to sense whether an object approaches and stays or repeatedly approaches through the first target sensing device and a second target sensing device when the slider is moved into the dead display area, respectively, where the second target sensing device is a sensing device farther from the edge of the first sensing device and the second sensing device;
a fourth adjusting module 610, configured to, if it is sensed by the second target sensing device that an object approaches and stays or repeatedly approaches, move the slider toward the edge according to an amplitude corresponding to a staying duration or an approach frequency, and adjust a parameter value of the target object according to an adjusting manner corresponding to a moving direction of the slider and a position or a moving amplitude to which the slider moves each time.
Further, this display blind area is provided with at least one sensing device, and this electronic device still includes:
a fifth sensing module 611, configured to sense a preset operation of a user through the sensing device;
a fifth adjusting module 612, configured to, when the sensing device senses the preset operation, move the slider on the control bar according to the position of the sensing device or the preset operation, and adjust the parameter value of the target object to a corresponding parameter value.
Further, the first displaying module 502 is specifically configured to display the control bar on the left side or the right side of the dead display area when the target event is monitored.
For a specific process of implementing each function by each function module in the display apparatus of the control bar provided in this embodiment, please refer to the specific contents described in the embodiments shown in fig. 1 to fig. 11, which is not described herein again.
The electronic device that this embodiment provided shows through predetermineeing the position around the display blind area with the control strip, perhaps, shows the partly in the display blind area of control strip, and the rest shows respectively in the both sides of display blind area, because display blind area and the region that is idle usually around it, consequently can not produce the problem of the content that shelters from and show in the screen to can improve user's use experience and product viscidity, on the other hand has also improved display screen's utilization ratio. Furthermore, the sensing device arranged in the display blind area is used for controlling the sliding block to move, so that the controllability of the control strip can be improved, and the utilization rate of the sensing device is improved.
Referring to fig. 13, fig. 13 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
The electronic apparatus described in this embodiment includes:
a memory 801, a processor 802, and a computer program stored on the memory 801 and executable on the processor 802, wherein the processor 802 implements the control bar presentation method described in the embodiments of fig. 1 to 10 when executing the computer program.
Further, the electronic device further includes:
at least one input device 803 and at least one output device 804.
The memory 801, the processor 802, the input device 803, and the output device 804 are connected by a bus 805.
The input device 803 may be a camera, a touch panel, a physical button, or the like. The output device 804 may specifically be a display screen.
The Memory 801 may be a high-speed Random Access Memory (RAM) Memory or a non-volatile Memory (non-volatile Memory), such as a disk Memory. The memory 801 is used to store a set of executable program code, and the processor 802 is coupled to the memory 801.
Further, an embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium may be provided in an electronic device in the foregoing embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 13. The computer-readable storage medium has stored thereon a computer program, which when executed by a processor implements the control bar presentation method described in the foregoing embodiments shown in fig. 1 to 10.
For example, the electronic device may be any of various types of computer system apparatuses that are mobile or portable and perform wireless communication. In particular, the electronic apparatus may be a mobile phone or a smart phone (e.g., iPhone-based, Android-based phone), a portable game device (e.g., Nintendo DS, playstatio portable, Gameboy Advance, iPhone), a laptop, a PDA, a portable internet appliance, a music player, and a data storage device, other handheld devices, and a head-mounted device (HMD) such as a watch, a headset, a pendant, a headset, etc., and other wearable devices (e.g., electronic glasses, electronic clothes, an electronic bracelet, an electronic necklace, an electronic tattoo, an electronic device, or a smart watch).
The electronic apparatus may also be any of a number of electronic devices including, but not limited to, cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical devices, vehicle transportation equipment, calculators, programmable remote controllers, pagers, laptop computers, desktop computers, printers, netbook computers, Personal Digital Assistants (PDAs), Portable Multimedia Players (PMPs), moving picture experts group (MPEG-1 or MPEG-2) audio layer 3(MP3) players, portable medical devices, and digital cameras and combinations thereof.
In some cases, the electronic device may perform a variety of functions (e.g., playing music, displaying video, storing pictures, and receiving and sending telephone calls). If desired, the electronic apparatus 0 may be a portable device such as a cellular telephone, media player, other handheld device, wristwatch device, pendant device, earpiece device, or other compact portable device.
As shown in fig. 14, the electronic device 10 may include control circuitry, which may include storage and processing circuitry 30. The storage and processing circuitry 30 may include memory, such as hard drive memory, non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), volatile memory (e.g., static or dynamic random access memory, etc.), and so on, and embodiments of the present application are not limited thereto. Processing circuitry in the storage and processing circuitry 30 may be used to control the operation of the electronic device 10. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 30 may be used to run software within the electronic device 10 such as, for example, an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, etc. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 10, and the like, without limitation of the embodiments of the present application.
The electronic device 10 may also include input-output circuitry 42. The input-output circuitry 42 may be used to enable the electronic device 10 to enable input and output of data, i.e., to allow the electronic device 10 to receive data from external devices and also to allow the electronic device 10 to output data from the electronic device 10 to external devices. The input-output circuitry 42 may further include the sensor 32. The sensors 32 may include ambient light sensors, optical and capacitive based proximity sensors, touch sensors (e.g., optical based touch sensors and/or capacitive touch sensors, where the touch sensors may be part of a touch display screen or may be used independently as a touch sensor structure), acceleration sensors, and other sensors, among others.
Input-output circuitry 42 may also include one or more displays, such as display 14. The display 14 may include one or a combination of liquid crystal displays, organic light emitting diode displays, electronic ink displays, plasma displays, displays using other display technologies. The display 14 may include an array of touch sensors (i.e., the display 14 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 10 may also include an audio component 36. The audio component 36 may be used to provide audio input and output functionality for the electronic device 10. Audio components 36 in electronic device 10 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sound.
The communication circuitry 38 may be used to provide the electronic device 10 with the ability to communicate with external devices. The communication circuit 38 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 38 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 38 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuitry 38 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 38 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
The electronic device 10 may further include a battery, power management circuitry, and other input-output units 40. The input-output unit 40 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, etc.
A user may enter commands through input-output circuitry 42 to control the operation of electronic device 10, and may use output data of input-output circuitry 42 to enable receipt of status information and other outputs from electronic device 10.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the control bar display method, the electronic device and the computer-readable storage medium provided by the present application, those skilled in the art will recognize that there are variations in the embodiments and applications of the control bar display method, the electronic device and the computer-readable storage medium provided by the present application.

Claims (10)

1. A control bar display method is applied to an electronic device with a special-shaped screen, wherein the special-shaped screen is provided with a dead display area, and the method comprises the following steps:
monitoring a target event, wherein the target event is used for triggering and adjusting a parameter value of a target object;
when the target event is monitored, displaying one part of the control bar in the display blind area, and displaying the other parts of the control bar on two sides of the display blind area respectively, wherein the display blind area has no display screen, and the part of the control bar positioned in the display blind area is one part of the control bar which is virtualized out;
two sensing devices are arranged in the display blind area, when the target event is monitored, one part of the control bar is displayed in the display blind area, and the rest parts of the control bar are respectively displayed on two sides of the display blind area, and the method comprises the following steps:
when the sliding block on the control bar is moved from the non-display blind area to the edge of the display blind area, sensing whether an object approaches through the sensing device;
when an object is sensed to approach through the sensing device, determining that the sliding block is moved to a position on the control bar corresponding to the sensing device;
adjusting the parameter value of the target object to the parameter value corresponding to the position;
when the sliding block on the control bar is moved from the non-display blind area to the edge of the display blind area, sensing whether an object approaches through the sensing device, wherein the sensing device comprises:
when the sliding block on the control bar is moved from the non-display blind area to the edge of the display blind area, sequentially starting and sensing whether an object approaches through the sensing devices according to the sequence of the distance from the edge from the near to the far;
when the approaching object is sensed to leave, the currently started sensing device is closed, and the other sensing device is switched to be started;
when the sliding block moves out of the display blind area, all the sensing devices are turned off.
2. The method of claim 1, wherein the sensing device comprises an optical distance sensor and a camera;
when the light distance sensor senses that the current environment brightness is lower than the environment brightness at the previous moment and the distance between an obstacle and the light distance sensor is smaller than a preset threshold value, determining that an object approaches;
and when the proportion of the object in the picture shot by the camera in the picture is larger than the preset proportion, determining that the object is close to the camera.
3. The method as claimed in claim 1, wherein a sensing device is disposed in the dead display area, and the displaying a portion of the control bar in the dead display area and the remaining portions of the control bar after being displayed on both sides of the dead display area respectively when the target event is monitored comprises:
when the sliding block on the control bar is moved from the non-display blind area to the edge of the display blind area, sensing whether an object approaches and stays or repeatedly approaches through the sensing device;
when the sensing device senses that an object approaches and stays or repeatedly approaches, the sliding block is moved towards the direction opposite to the edge according to the stay time or the amplitude corresponding to the approaching times, and the parameter value of the target object is adjusted according to the adjusting mode corresponding to the moving direction of the sliding block and the position or the moving amplitude to which the sliding block moves each time.
4. The method as claimed in claim 1, wherein the sensing devices include a first sensing device and a second sensing device arranged side by side, and the displaying a portion of the control bar in the blind display area and the remaining portions of the control bar after being displayed on both sides of the blind display area respectively when the target event is monitored comprises:
when the sliding block on the control bar is moved from the non-display blind area to the edge of the display blind area, sensing whether an object approaches and stops or repeatedly approaches through a first target sensing device which is closer to the edge in the first sensing device and the second sensing device;
when an object is sensed to approach and stay or approach repeatedly through the first target sensing device, the sliding block is moved towards the direction opposite to the edge according to the stay time or the amplitude corresponding to the approaching times, and the parameter value of the target object is adjusted according to the adjusting mode corresponding to the moving direction of the sliding block and the position or the moving amplitude to which the sliding block moves each time;
when the sliding block is moved into the display blind area, sensing whether an object approaches and stays or repeatedly approaches through the first target sensing device and the second target sensing device respectively, wherein the second target sensing device is a sensing device which is far away from the edge in the first sensing device and the second sensing device;
if the first target sensing device senses that an object approaches and stays or repeatedly approaches, the sliding block is moved towards the direction opposite to the edge according to the stay time or the amplitude corresponding to the approaching times, and the parameter value of the target object is adjusted according to the adjusting mode corresponding to the moving direction of the sliding block and the position or the moving amplitude to which the sliding block moves each time;
and if the second target sensing device senses that an object approaches and stays or repeatedly approaches, moving the sliding block towards the edge according to the staying time or the amplitude corresponding to the approaching times, and adjusting the parameter value of the target object according to the adjusting mode corresponding to the moving direction of the sliding block and the position or the moving amplitude to which the sliding block moves each time.
5. The method of claim 1, wherein the dead display area is provided with at least one sensing device, and the displaying a portion of the control bar in the dead display area and the remaining portions of the control bar after being displayed on both sides of the dead display area respectively when the target event is monitored comprises:
sensing preset operation of a user through the sensing device;
when the sensing device senses the preset operation, the sliding block on the control bar is moved according to the position of the sensing device or the preset operation, and the parameter value of the target object is adjusted to be the corresponding parameter value.
6. An electronic device characterized in that the electronic device has a special-shaped screen having a dead zone, the device comprising:
the monitoring module is used for monitoring a target event, wherein the target event is used for triggering and adjusting a parameter value of a target object;
the second display module is used for displaying one part of the control bar in the display blind area when the target event is monitored, and displaying the rest parts of the control bar on two sides of the display blind area respectively;
be provided with two sensing devices in the display blind area, sensing device includes light distance sensor and camera, the device still includes:
the first sensing module is used for sequentially starting and sensing whether an object approaches through the sensing devices according to the sequence of the distance from the edge from near to far when the sliding block on the control bar is moved from the non-display blind area to the edge of the display blind area; the system is also used for determining that an object approaches when the current ambient brightness sensed by the light distance sensor is lower than the ambient brightness at the previous moment and the distance between an obstacle and the light distance sensor is smaller than a preset threshold value; the camera is further used for determining that an object approaches when the proportion of the object in the picture shot by the camera in the picture is larger than a preset proportion;
the determining module is used for determining that the sliding block is moved to a position on the control bar corresponding to the sensing device when the sensing devices sense that an object approaches;
the first adjusting module is used for adjusting the parameter value of the target object to the parameter value corresponding to the position;
the control module is used for closing the currently started sensing device and switching to start another sensing device when the approaching object is sensed to leave; and the sliding block is also used for turning off all the sensing devices when the sliding block moves out of the display blind area.
7. The electronic device of claim 6, wherein the electronic device further comprises:
the second sensing module is used for sensing whether an object approaches and stops or approaches repeatedly through the sensing device when the sliding block on the control bar is moved to the edge of the display blind area from the non-display blind area;
the second adjusting module is used for moving the sliding block to the direction opposite to the edge according to the stopping time or the amplitude corresponding to the stopping times when the sensing device senses that an object approaches and stays or repeatedly approaches, and adjusting the parameter value of the target object according to the adjusting mode corresponding to the moving direction of the sliding block and the position or the moving amplitude to which the sliding block moves each time; alternatively, the first and second electrodes may be,
the sensing device includes a first sensing device and a second sensing device arranged side by side, and the electronic device further includes:
the third sensing module is used for sensing whether an object approaches and stops or repeatedly approaches through a first target sensing device which is closer to the edge in the first sensing device and the second sensing device when the sliding block on the control bar is moved from the non-display blind area to the edge of the display blind area;
a third adjusting module, configured to, when an object is sensed to approach and stay or repeatedly approach by the first target sensing device, move the slider in a direction opposite to the edge according to an amplitude corresponding to a stay duration or an approach frequency, and adjust a parameter value of the target object according to an adjusting manner corresponding to a moving direction of the slider and a position or a moving amplitude to which the slider moves each time;
a fourth sensing module, configured to sense whether an object approaches and stays or repeatedly approaches through the first target sensing device and the second target sensing device when the slider is moved into the dead display area, where the second target sensing device is a sensing device of the first sensing device and the second sensing device that is farther from the edge;
and the fourth adjusting module is used for moving the sliding block towards the edge direction according to the stopping time or the amplitude corresponding to the stopping times if the second target sensing device senses that an object approaches and stops or repeatedly approaches, and adjusting the parameter value of the target object according to the adjusting mode corresponding to the moving direction of the sliding block and the position or the moving amplitude to which the sliding block moves each time.
8. The electronic device of claim 6, wherein the shadow display area is provided with at least one sensing device, the electronic device further comprising:
the fifth sensing module is used for sensing preset operation of a user through the sensing device;
and the fifth adjusting module is used for moving the sliding block on the control bar according to the position of the sensing device or the preset operation when the sensing device senses the preset operation, and adjusting the parameter value of the target object to be the corresponding parameter value.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the control bar presentation method according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the control bar presentation method according to any one of claims 1 to 5.
CN201810556532.1A 2018-06-01 2018-06-01 Control bar display method, electronic device and computer readable storage medium Active CN108762643B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810556532.1A CN108762643B (en) 2018-06-01 2018-06-01 Control bar display method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810556532.1A CN108762643B (en) 2018-06-01 2018-06-01 Control bar display method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108762643A CN108762643A (en) 2018-11-06
CN108762643B true CN108762643B (en) 2020-10-09

Family

ID=64001671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810556532.1A Active CN108762643B (en) 2018-06-01 2018-06-01 Control bar display method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108762643B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103809843A (en) * 2012-11-08 2014-05-21 腾讯科技(深圳)有限公司 Method and device for adjusting brightness of display screen in browser
CN104571856A (en) * 2014-12-17 2015-04-29 深圳市金立通信设备有限公司 Terminal
CN106293410A (en) * 2016-08-22 2017-01-04 维沃移动通信有限公司 A kind of video progress control method and mobile terminal
CN106453959A (en) * 2016-11-30 2017-02-22 努比亚技术有限公司 Method for controlling volume of mobile terminal and mobile terminal
CN107168620A (en) * 2017-04-21 2017-09-15 北京小米移动软件有限公司 Method, device, terminal device and the computer-readable recording medium of control terminal
CN107506123A (en) * 2017-08-29 2017-12-22 广东欧珀移动通信有限公司 Regulation operation performs method, apparatus and terminal
CN107979775A (en) * 2017-12-20 2018-05-01 广东欧珀移动通信有限公司 Video related information display methods and relevant device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170277421A1 (en) * 2016-03-25 2017-09-28 Le Holdings (Beijing) Co., Ltd. Method and mobile device for adjusting multimedia

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103809843A (en) * 2012-11-08 2014-05-21 腾讯科技(深圳)有限公司 Method and device for adjusting brightness of display screen in browser
CN104571856A (en) * 2014-12-17 2015-04-29 深圳市金立通信设备有限公司 Terminal
CN106293410A (en) * 2016-08-22 2017-01-04 维沃移动通信有限公司 A kind of video progress control method and mobile terminal
CN106453959A (en) * 2016-11-30 2017-02-22 努比亚技术有限公司 Method for controlling volume of mobile terminal and mobile terminal
CN107168620A (en) * 2017-04-21 2017-09-15 北京小米移动软件有限公司 Method, device, terminal device and the computer-readable recording medium of control terminal
CN107506123A (en) * 2017-08-29 2017-12-22 广东欧珀移动通信有限公司 Regulation operation performs method, apparatus and terminal
CN107979775A (en) * 2017-12-20 2018-05-01 广东欧珀移动通信有限公司 Video related information display methods and relevant device

Also Published As

Publication number Publication date
CN108762643A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
EP3816780B1 (en) Display control method and terminal
KR102029242B1 (en) Method of controling mobile terminal
CN108874466B (en) Control calling method, electronic device and computer readable storage medium
US11762621B2 (en) Object management method and mobile terminal
CN109067984B (en) Data transmission method, electronic device and computer readable storage medium
KR20140051719A (en) Mobile terminal and control method thereof
CN109032447B (en) Icon processing method and mobile terminal
CN108762705B (en) Information display method, mobile terminal and computer readable storage medium
CN108983211B (en) Proximity sensor, method of controlling the same, electronic device, and computer-readable storage medium
US11567725B2 (en) Data processing method and mobile device
CN107250969A (en) Screen opening method, device and electronic equipment
CN109407949B (en) Display control method and terminal
CN109407948B (en) Interface display method and mobile terminal
WO2021083117A1 (en) Method and apparatus for displaying file list, and electronic device
CN108446156B (en) Application program control method and terminal
WO2021088706A1 (en) Method for controlling application program and electronic device
CN109165075A (en) Application display method, device, electronic equipment and storage medium
US20130215071A1 (en) Electronic device and method of controlling same
CN110221741B (en) Icon management method and terminal equipment
CN108920052B (en) Page display control method and related product
CN109684011B (en) Interface display control method, electronic device and computer readable storage medium
CN111443860B (en) Touch control method and electronic equipment
CN109885201B (en) Touch area detection method for touch screen, electronic device and computer readable storage medium
CN109410846B (en) Screen backlight setting method, electronic device and computer readable storage medium
CN108762643B (en) Control bar display method, electronic device 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