CN107132962B - Navigation bar control method and device - Google Patents

Navigation bar control method and device Download PDF

Info

Publication number
CN107132962B
CN107132962B CN201710301185.3A CN201710301185A CN107132962B CN 107132962 B CN107132962 B CN 107132962B CN 201710301185 A CN201710301185 A CN 201710301185A CN 107132962 B CN107132962 B CN 107132962B
Authority
CN
China
Prior art keywords
navigation bar
display
terminal equipment
module
layer
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
CN201710301185.3A
Other languages
Chinese (zh)
Other versions
CN107132962A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201710301185.3A priority Critical patent/CN107132962B/en
Publication of CN107132962A publication Critical patent/CN107132962A/en
Application granted granted Critical
Publication of CN107132962B publication Critical patent/CN107132962B/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/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
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04804Transparency, e.g. transparent or translucent windows

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)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)
  • Navigation (AREA)

Abstract

The embodiment of the invention provides a navigation bar control method and a device, wherein the method comprises the following steps: receiving touch screen operation input by a user through an interception layer, wherein the interception layer is displayed on the uppermost layer of a display interface when a navigation bar of the terminal equipment is hidden, and the interception layer is a transparent window with the same size as a display screen of the terminal equipment; judging whether the terminal equipment is allowed to respond to touch screen operation input by a user or not according to the value of the operation mark bit of the terminal equipment; if so, displaying the navigation bar and canceling the display interception layer; and if not, detecting the value of the operation marker bit and the display duration of the interception layer, displaying the navigation bar and canceling the display of the interception layer until the value of the operation marker bit is a preset value or the display duration of the interception layer is longer than the preset duration, wherein the preset value is used for indicating that the terminal equipment is allowed to respond to the touch screen operation input by the user. The method and the device are used for improving the reliability of controlling the navigation bar.

Description

Navigation bar control method and device
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a navigation bar control method and device.
Background
At present, a plurality of navigation bars of terminal equipment (such as a mobile phone, a tablet computer, etc.) of an Android system are arranged in a display screen, and the navigation bars can be hidden or displayed according to actual needs, and generally include a return key, an HOME key, and a menu key.
In the actual application process, in the process that the terminal device runs the application program, in order to improve the use experience of a user on the application program, when the application program runs to a preset node (for example, when the application program needs to play a video in a full screen), the application program requests the Android system of the terminal device to hide the navigation bar, the Android system hides the navigation bar according to the request, the value of the operation mark bit of the terminal device is set to be a preset value so as to indicate that the terminal device is allowed to respond to the operation input by the user, and an interception layer is added to the uppermost layer of a display interface of the terminal device. After the navigation bar is hidden, if the user needs to display the navigation bar, the user can input any touch screen operation in the display interface of the terminal device to display the navigation bar, specifically, because the topmost layer of the display interface is an interception layer, the terminal device can receive the touch screen operation input by the user through the interception layer and judge whether the value of the operation marker bit is a preset value, if so, the navigation bar is displayed and the display of the interception layer is cancelled, and if not, any touch screen operation is not responded.
In an actual application process, in a process of hiding a navigation bar by a terminal device, other operations (for example, operations on a status bar and a floating window) input by a user in the terminal device may change a value of an operation marker bit, so that after the navigation bar is hidden, an interception layer is successfully added to the uppermost layer of a display interface, but the value of the operation marker bit is set to be a non-preset value, and thus, after the user inputs a touch screen operation, the terminal device cannot respond to the touch screen operation, which not only results in that the navigation bar cannot be displayed, but also results in that a screen fixing fault occurs to the terminal device.
Disclosure of Invention
The embodiment of the invention provides a navigation bar control method and device, which improve the reliability of control over a navigation bar.
In a first aspect, an embodiment of the present invention provides a navigation bar control method, which is applied to an Android terminal device, and includes:
receiving touch screen operation input by a user through an interception layer, wherein the interception layer is displayed on the uppermost layer of a display interface when a navigation bar of terminal equipment is hidden, and the interception layer is a transparent window with the same size as a display screen of the terminal equipment;
judging whether the terminal equipment is allowed to respond to touch screen operation input by a user or not according to the value of the operation mark bit of the terminal equipment;
if so, displaying a navigation bar and canceling to display the interception layer;
and if not, detecting the value of the operation marker bit and the display time of the interception layer, displaying the navigation bar and canceling the display of the interception layer until the value of the operation marker bit is a preset value or the display time of the interception layer is longer than the preset time, wherein the preset value is used for indicating that the terminal equipment is allowed to respond to the touch screen operation input by the user.
In a possible implementation, before receiving, by the interceptor layer, a touch screen operation input by a user, the method further includes:
acquiring a navigation bar hiding request sent by an application program in the terminal equipment;
hiding the navigation bar according to the navigation bar hiding request;
setting the value of the mark bit as the preset value, and displaying the interception layer on the uppermost layer of the display interface of the terminal equipment.
In another possible implementation manner, after the intercepting layer is displayed on the uppermost layer of the display interface of the terminal device, the method further includes:
and starting a timer corresponding to the interception layer.
In another possible implementation manner, detecting a value of the operation marker bit and a display duration of the interception layer, until the value of the operation marker bit is a preset value or the display duration of the interception layer is greater than a preset duration, displaying the navigation bar, and canceling displaying the interception layer includes:
judging whether the timer is overtime or not;
if so, judging whether the navigation bar is in a display state, if so, canceling to display the interception layer, otherwise, displaying the navigation bar, and canceling to display the interception layer;
if not, judging whether the value of the operation mark bit is the preset value or not, judging whether the navigation bar is in a display state or not until the value of the operation mark bit is the preset value or the timer is overtime, if so, canceling the display of the interception layer, otherwise, displaying the navigation bar and canceling the display of the interception layer.
In another possible embodiment, a navigation bar is displayed, comprising:
and sending a display instruction to a navigation bar control corresponding to the navigation bar so that the navigation bar control displays the navigation bar according to the display instruction.
In another possible implementation, hiding the navigation bar according to the navigation bar hiding request includes:
and sending a hiding instruction to a navigation bar control corresponding to the navigation bar according to the navigation bar hiding request so that the navigation bar control hides the navigation bar according to the hiding instruction.
In a second aspect, an embodiment of the present invention provides a navigation bar control device, including a receiving module, a determining module, a displaying module, and a detecting module,
the receiving module is used for receiving touch screen operation input by a user through an intercepting layer, the intercepting layer is displayed on the uppermost layer of a display interface when a navigation bar of the terminal equipment is hidden, and the intercepting layer is a transparent window with the same size as a display screen of the terminal equipment;
the judging module is used for judging whether the terminal equipment is allowed to respond to the touch screen operation input by the user according to the value of the operation mark bit of the terminal equipment;
the display module is used for displaying a navigation bar and canceling the display of the interception layer when the judgment module judges that the terminal equipment is allowed to respond to the touch screen operation input by the user;
the detection module is used for detecting the value of the operation mark bit and the display duration of the interception layer when the judgment module judges that the terminal device is not allowed to respond to the touch screen operation input by the user, until the value of the operation mark bit is a preset value or the display duration of the interception layer is greater than the preset duration, the display module is used for displaying the navigation bar and canceling the display of the interception layer, and the preset value is used for indicating that the terminal device is allowed to respond to the touch screen operation input by the user.
In one possible embodiment, the apparatus further comprises an acquisition module, a hiding module, and a setting module, wherein,
the acquisition module is used for acquiring a navigation bar hiding request sent by an application program in the terminal equipment before the receiving module receives a touch screen operation input by a user on an interception layer of the terminal equipment;
the hiding module is used for hiding the navigation bar according to the navigation bar hiding request;
the setting module is used for setting the value of the mark bit as the preset value;
the display module is used for displaying the interception layer on the uppermost layer of a display interface of the terminal equipment.
In another possible embodiment, the apparatus further comprises an activation module, wherein,
the starting module is used for starting the timer corresponding to the interception layer after the display module displays the interception layer on the uppermost layer of the display interface of the terminal equipment.
In another possible implementation, the detecting module is specifically configured to determine whether the timer is overtime;
when the detection module judges that the timer is over time, the detection module is further used for judging whether the navigation bar is in a display state; when the detection module judges that the navigation bar is in the display state, the display module is used for canceling the display of the interception layer, and when the detection module judges that the navigation bar is in the display state, the display module is used for displaying the navigation bar and canceling the display of the interception layer;
when the detection module judges that the timer is overtime, the detection module is further used for judging whether the value of the operation mark bit is the preset value or not, judging whether the navigation bar is in a display state or not until the value of the operation mark bit is the preset value or the timer is overtime, when the detection module judges that the navigation bar is in the display state, the display module is used for canceling the display of the interception layer, and when the detection module judges that the navigation bar is in the display state, the display module is used for displaying the navigation bar and canceling the display of the interception layer.
In another possible implementation manner, the display module is specifically configured to:
and sending a display instruction to a navigation bar control corresponding to the navigation bar so that the navigation bar control displays the navigation bar according to the display instruction.
In another possible implementation, the hiding module is specifically configured to:
and sending a hiding instruction to a navigation bar control corresponding to the navigation bar according to the navigation bar hiding request so that the navigation bar control hides the navigation bar according to the hiding instruction.
According to the navigation bar control method and device provided by the embodiment of the invention, after the navigation bar of the terminal device is hidden and the intercepting layer is displayed on the uppermost layer of the display interface of the terminal device, when the touch screen operation input by a user is received through the intercepting layer of the terminal device, whether the terminal device is allowed to respond to the touch screen operation input by the user is judged according to the value of the operation mark bit of the terminal device, if yes, the navigation bar is directly displayed, and the display of the intercepting layer is cancelled; and if not, simultaneously detecting the value of the operation marker bit and the display duration of the interception layer, displaying the navigation bar until the value of the operation marker bit is modified to a preset value or the display duration of the interception layer is greater than the preset duration, and canceling the display of the interception layer. In the process, when the interception layer is arranged on the uppermost layer of the display interface of the terminal equipment and the operation marking position indicates that the terminal equipment is not allowed to respond to the touch screen operation input by the user, whether the navigation bar is displayed or not and the display of the interception layer is cancelled can be determined according to the display duration of the interception layer, so that the problems that the navigation bar cannot be displayed and the screen fixing fault of the terminal equipment occurs can be avoided, and the reliability of controlling the navigation bar is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a navigation bar control method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a navigation bar control method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for hiding and displaying a navigation bar according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a terminal interface provided by an embodiment of the invention;
FIG. 5 is a first schematic structural diagram of a navigation bar control device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a navigation bar control device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic view of an application scenario of a navigation bar control method according to an embodiment of the present invention. Referring to fig. 1, a terminal interface 101 and a terminal interface 102 are included. The terminal interface 101 comprises a navigation bar M, the navigation bar M is located in a display interface of the terminal device, the navigation bar M is drawn and displayed through software, the navigation bar M comprises a return key, a HOME key and a menu key, and a user can operate keys in the navigation bar to control the terminal device.
When the terminal device displays a partial page (e.g., the page shown in 101) of the application program, the navigation bar M is in a display state. At this time, when the user inputs a touch screen operation in the terminal device, for example, a button in the application program is clicked, the touch screen operation may trigger a corresponding control in the application program, so that the application program directly responds to the touch screen operation input by the user.
When the terminal device displays a part of pages (for example, a full-screen video playing page in 102) of the application program, the application program may request to hide the navigation bar M for better page display, and add an interception layer N on the top layer of the display interface of the terminal device while hiding the navigation bar M, where the interception layer N is a fully transparent window and has the same size as the display interface of the terminal device. At this time, when the user inputs a touch screen operation in the terminal device, since the uppermost layer of the display interface is the interception layer N, the touch screen operation does not trigger a corresponding control in the application program, and the application program does not respond to the touch screen operation input by the user. After the terminal device receives a touch screen operation input by a user through the interception layer N, the terminal device displays a navigation bar M and cancels the display of the interception layer N according to the value of an operation mark bit of the terminal device and the display duration of the interception layer.
In the application, after the touch screen operation input by a user is received through the intercepting layer, the values of the operation mark bits and the display duration of the intercepting layer are integrated, the navigation bar is determined to be displayed, and the display intercepting layer is cancelled, so that the problems that the navigation bar cannot be displayed and the screen fixing fault occurs in the terminal equipment when the intercepting layer is successfully added to the uppermost layer of the display interface of the terminal equipment and the value indication of the operation mark bits does not allow the user to respond to the operation can be avoided.
The technical means shown in the present application will be described in detail below with reference to specific examples. It should be noted that the following specific embodiments may be combined with each other, and description of the same or similar contents is not repeated in different embodiments.
Fig. 2 is a schematic flow chart of a navigation bar control method according to an embodiment of the present invention. Referring to fig. 2, the method may include:
s201, receiving touch screen operation input by a user through an interception layer, wherein the interception layer is displayed on the uppermost layer of a display interface when a navigation bar of the terminal device is hidden, and the interception layer is a transparent window with the same size as a display screen of the terminal device.
The execution main body of the embodiment of the present invention may be a navigation bar control device, and the navigation bar control device may be disposed in a terminal device, and optionally, the navigation bar control device may be implemented by software, or implemented by a combination of software and hardware.
After hiding the navigation bar of the terminal device and displaying the interception layer on the uppermost layer of the display interface of the terminal device, when a user needs to display the navigation bar in the terminal device, the user may input a touch screen operation in the terminal device, and optionally, the touch screen operation may be a click operation, a slide operation, or the like.
The intercepting layer is added on the uppermost layer of the display interface of the terminal equipment when the navigation bar of the terminal equipment is hidden, and the intercepting layer is located on the uppermost layer of the display interface, so that touch screen operation input by a user can trigger the intercepting layer, and the display interface of an application program located below the intercepting layer cannot be triggered. Furthermore, the interception layer is a transparent window, so that the display effect of the terminal equipment cannot be affected after the interception layer is added to the uppermost layer of the display interface.
S202, judging whether the terminal equipment is allowed to respond to the touch screen operation input by the user or not according to the value of the operation mark bit of the terminal equipment.
If yes, go to S203.
If not, go to S204.
In the embodiment of the invention, the touch screen operation mark bit is a mark bit carried by an Android system, the touch screen operation mark bit is used for indicating whether the terminal device is allowed to respond to the touch screen operation input by the user, the values of the touch screen operation mark bit can be two, when the value of the touch screen operation mark bit is a preset value, the terminal device is indicated to be allowed to respond to the touch screen operation input by the user, and when the value of the touch screen operation mark bit is a non-preset value, the terminal device is indicated not to be allowed to respond to the touch screen operation input by the user. For example, when the value of the touch screen operation flag bit is true, it is indicated that the terminal device is allowed to respond to the touch screen operation input by the user, and when the value of the touch screen operation flag bit is false, it is indicated that the terminal device is not allowed to respond to the touch screen operation input by the user.
In the actual application process, various operations input by the user in the terminal device and various response actions of the application program on the user input operation may affect the value of the operation marker bit, for example, the application program may request to hide the operation of the navigation bar, the user may operate the status bar, the user may operate the floating window, and the like, and the value of the operation marker bit may be changed.
It should be noted that, in the actual application process, the value of the operation flag bit may be set according to actual needs, which is not specifically limited in the embodiment of the present invention.
S203, displaying the navigation bar and canceling the display interception layer.
And when the value of the operation mark bit is determined to indicate that the terminal equipment is allowed to respond to the touch screen operation input by the user, directly displaying the navigation bar and canceling the display of the interception layer.
Optionally, a display instruction may be sent to a navigation bar control corresponding to the navigation bar, and the navigation bar control displays the navigation bar according to the display instruction. For example, the navigation bar control may draw the navigation bar according to the display instruction, and display the drawn navigation bar at a corresponding position in the display screen of the terminal device.
Optionally, the cancellation of the display interception layer may be implemented by setting attribute information of the interception layer, for example, the visibility attribute of the interception layer may be set to hidden, so as to implement the cancellation of the display interception layer.
S204, detecting the value of the operation marker bit and the display duration of the interception layer, displaying the navigation bar until the value of the operation marker bit is a preset value or the display duration of the interception layer is longer than the preset duration, and canceling the display of the interception layer.
When the value of the operation marker bit is determined to indicate that the terminal device is not allowed to respond to the touch screen operation input by the user, the terminal device is not allowed to modify the value of the operation marker bit to a preset value in time, or the value of the operation marker bit is disordered.
Optionally, after the application requests to hide the navigation bar, the value of the operation marker bit is set to be a preset value, and meanwhile, the terminal device starts to hide the navigation bar. However, it takes a long time to hide the navigation bar, and in the process of hiding the navigation bar, the user may input other operations in the terminal device, and the input other operations may modify the value of the operation marker bit to a non-preset value, which may cause the value of the operation marker bit to be confused.
And when the value of the operation marker bit is determined to indicate that the terminal equipment is not allowed to respond to the touch screen operation input by the user, detecting the value of the operation marker bit and the display duration of the intercepting layer in real time, displaying the navigation bar until the value of the operation marker bit is modified to a preset value or the display duration of the intercepting layer is greater than the preset duration, and canceling the display of the intercepting layer.
According to the navigation bar control method provided by the embodiment of the invention, after the navigation bar of the terminal equipment is hidden and the intercepting layer is displayed on the uppermost layer of the display interface of the terminal equipment, when the touch screen operation input by a user is received through the intercepting layer of the terminal equipment, whether the terminal equipment is allowed to respond to the touch screen operation input by the user is judged according to the value of the operation marking bit of the terminal equipment, if so, the navigation bar is directly displayed, and the display of the intercepting layer is cancelled; and if not, simultaneously detecting the value of the operation marker bit and the display duration of the interception layer, displaying the navigation bar until the value of the operation marker bit is modified to a preset value or the display duration of the interception layer is greater than the preset duration, and canceling the display of the interception layer. In the process, when the interception layer is arranged on the uppermost layer of the display interface of the terminal equipment and the operation marking position indicates that the terminal equipment is not allowed to respond to the touch screen operation input by the user, whether the navigation bar is displayed or not and the display of the interception layer is cancelled can be determined according to the display duration of the interception layer, so that the problems that the navigation bar cannot be displayed and the screen fixing fault of the terminal equipment occurs can be avoided, and the reliability of controlling the navigation bar is improved.
Based on the embodiment shown in fig. 2, the following describes the hiding and displaying process of the navigation bar in detail through the embodiment shown in fig. 3.
Fig. 3 is a schematic flow chart of a method for hiding and displaying a navigation bar according to an embodiment of the present invention. Referring to fig. 3, the method may include:
s301, a navigation bar hiding request sent by an application program in the terminal equipment is obtained.
In the process that the terminal device runs the application program, when a preset page in the application program needs to be displayed, the application program displays the page in a full screen mode, and then the application program sends a navigation bar hiding request to an Android system to request for hiding the navigation bar.
S302, hiding the navigation bar according to the navigation bar hiding request.
Optionally, a hiding instruction may be sent to the navigation bar control corresponding to the navigation bar according to the navigation bar hiding request, so that the navigation bar control hides the navigation bar according to the hiding instruction.
Optionally, the navigation bar control may hide the navigation bar by modifying the attribute information of the navigation bar, for example, the visibility attribute of the navigation bar may be set to hidden to hide the navigation bar.
And S303, setting the value of the mark bit as a preset value, and displaying an interception layer on the uppermost layer of a display interface of the terminal equipment.
In the embodiment of the invention, when the value of the flag bit is set to be a preset value, the flag bit indicates that the terminal device is allowed to perform touch screen operation corresponding to user input. Optionally, the preset value may be true, 1, or the like, and in an actual application process, the preset value may be set according to actual needs.
Optionally, an interception layer (a transparent window) may be drawn according to the size of the display screen of the terminal device, and the interception layer is displayed on the uppermost layer of the display interface of the terminal device, so that the interception layer covers the page of the application program. Meanwhile, the interception layer is transparent, so that a user cannot observe the interception layer in the terminal equipment.
And S304, starting a timer corresponding to the interception layer.
And the timer of the interception layer is used for recording the display duration of the interception layer, and the timer starts to time after the timer corresponding to the interception layer is started.
S305, receiving touch screen operation input by a user through an interception layer of the terminal equipment.
It should be noted that the execution process of S305 may refer to the execution process of S201, and is not described herein again.
S306, judging whether the terminal equipment is allowed to respond to the touch screen operation input by the user or not according to the value of the operation mark bit of the terminal equipment.
If so, S309-S310 are performed.
If not, go to step S307.
It should be noted that the execution process of S306 may refer to the execution process of S202, and is not described herein again.
And S307, judging whether the timer is overtime.
If yes, go to step S308.
If not, go to S306.
Optionally, the timer may start to perform forward cumulative timing from 0, and determine whether the timing duration of the timer is greater than a preset duration, if so, it may be determined that the timer is overtime. For example, assuming that the preset time duration is 100 milliseconds, the timer starts to count up from 0, that is, every time 1 millisecond elapses, the counted time duration of the timer is incremented by 1, and when the counted time duration of the timer is determined to be greater than or equal to 100, the timer is determined to be overtime.
Optionally, the timer may further start to count down from a preset time length, and determine whether the remaining time length of the timer is less than or equal to zero, if so, it may be determined that the timer is overtime. For example, assuming that the preset time duration is 100 milliseconds, the timer starts to count up from 100, that is, every time 1 millisecond elapses, the counted time duration of the timer is decreased by 1, and when the counted time duration of the timer is determined to be less than or equal to 0, the timer is determined to be overtime.
It should be noted that, in the actual application process, the preset time period may be set according to actual needs, and this is not specifically limited in the embodiment of the present invention.
S308, judging whether the navigation bar is in a display state.
If yes, go to S310.
If so, S309-S310 are performed.
In the actual application process, after an application program requests to hide the navigation bar, under a normal condition, the navigation bar is hidden, and the interception layer is successfully added to the uppermost layer of the display interface of the terminal equipment; in an abnormal situation, the navigation bar may hide the failure and the interception layer is successfully added to the uppermost layer of the display interface of the terminal device.
And S309, displaying a navigation bar.
And S310, canceling the display interception layer.
It should be noted that the execution process of S309-S310 may refer to the execution process of S202, and is not described herein again.
In the process, the timer corresponding to the interception layer is started while the interception layer is added to the uppermost layer of the display interface of the terminal equipment, so that after touch screen operation input by a user is received through the interception layer of the terminal equipment, if the interception layer is arranged on the uppermost layer of the display interface of the terminal equipment and the operation mark bit indicates that the terminal equipment is not allowed to respond to the touch screen operation input by the user, whether the navigation bar is displayed or not and the display of the interception layer is cancelled can be determined according to the timing duration of the timer corresponding to the interception layer, the problems that the navigation bar cannot be displayed and the screen fixing fault occurs in the terminal equipment can be solved, and the reliability of controlling the navigation bar is improved.
The technical solution shown in the above method embodiment is described in detail by specific examples with reference to fig. 4.
Fig. 4 is a schematic diagram of a terminal interface provided in an embodiment of the present invention. See fig. 4, including interface 401-interface 403.
Referring to the interface 401, a video application is run in the terminal device, the interface 401 is a page of the video application, and a navigation bar M of the terminal device is also displayed in the interface 401. When the user needs to watch the video 2, the user can click the link of the video 2, so that the video 2 can be played in a full screen mode through the terminal equipment.
When the application program needs to play the video 2 in a full screen mode in a display interface of the terminal device, the application program sends a navigation bar hiding request to an Android system, and the Android system informs a navigation bar control to hide the navigation bar according to the navigation bar hiding request.
Referring to the interface 402, the terminal device plays the video 2 in full screen according to a request input by a user, the navigation bar M is hidden, and meanwhile, an interception layer N is further added to the uppermost layer (full screen video playing page) of the display interface of the terminal device, so that the video playing page is covered by the interception layer N, the size of the interception layer N is the same as that of the display interface, and the interception layer N is transparent. And starting a timer corresponding to the interception layer N while adding the interception layer N, and setting the value of the operation marker bit to true.
Since the navigation bar needs a certain time period for hiding the navigation bar by the navigation bar control, it is assumed that the user also inputs other operations in the terminal device in the process of hiding the navigation bar by the navigation bar control, so that the other operations trigger the terminal device to modify the value of the operation mark bit to false.
When a user needs to use the navigation bar, the user can input a touch screen operation, such as a click operation, a sliding operation and the like, in a screen of the terminal device, and since the interception layer N is located on the upper layer of the video playing page, the touch screen operation input by the user triggers the interception layer, and the video playing page is not triggered.
After the terminal device receives a touch screen operation input by a user through the intercepting layer N, the terminal device obtains a value false of an operation marking bit, at the moment, the operation marking bit indicates that the terminal device is not allowed to respond to the touch screen operation input by the user, the terminal device judges whether a timer is overtime, if not, the terminal device continuously judges whether the value of the operation marking bit is true, if not, the terminal device continuously judges whether the timing is overtime, the process is repeated, until the value of the operation marking bit is true or the timer is overtime, whether the state of the navigation bar is a display state is judged, if yes, the display intercepting layer is cancelled, if not, the navigation bar is displayed, and the display intercepting layer is cancelled.
Referring to the interface 403, after the user inputs a touch screen operation in the interface 402, a navigation bar M is displayed in the display interface of the terminal device.
Fig. 5 is a first schematic structural diagram of a navigation bar control device according to an embodiment of the present invention. The navigation bar control device may be provided in a terminal device, see fig. 5, and may include a receiving module 11, a judging module 12, a display module 13, and a detecting module 14, wherein,
the receiving module 11 is configured to receive a touch screen operation input by a user through an interception layer, where the interception layer is displayed on the uppermost layer of a display interface when a navigation bar of a terminal device is hidden, and the interception layer is a transparent window having the same size as a display screen of the terminal device;
the judging module 12 is configured to judge whether to allow the terminal device to respond to a touch screen operation input by a user according to a value of an operation flag bit of the terminal device;
the display module 13 is configured to display a navigation bar and cancel displaying the interception layer when the determination module 12 determines that the terminal device is allowed to respond to a touch screen operation input by a user;
the detection module 14 is configured to, when the determination module 12 determines that the terminal device is not allowed to respond to the touch screen operation input by the user, detect a value of the operation marker bit and a display duration of the interception layer until the value of the operation marker bit is a preset value or the display duration of the interception layer is greater than a preset duration, and the display module 13 is configured to display the navigation bar and cancel displaying the interception layer, where the preset value is used to indicate that the terminal device is allowed to respond to the touch screen operation input by the user.
The navigation bar control device provided by the embodiment of the invention can execute the technical scheme shown in the method embodiment, the implementation principle and the beneficial effect are similar, and the detailed description is omitted here.
Fig. 6 is a schematic structural diagram of a navigation bar control device according to an embodiment of the present invention. On the basis of the embodiment shown in fig. 5, please refer to fig. 6, the apparatus further includes an obtaining module 15, a hiding module 16 and a setting module 17, wherein,
the obtaining module 15 is configured to obtain a navigation bar hiding request sent by an application program in a terminal device before the receiving module 11 receives a touch screen operation input by a user on an interception layer of the terminal device;
the hiding module 16 is configured to hide the navigation bar according to the navigation bar hiding request;
the setting module 17 is configured to set a value of the flag bit to the preset value;
the display module 13 is configured to display the interception layer on the uppermost layer of the display interface of the terminal device.
In a possible embodiment, the device further comprises an activation module 18, wherein,
the starting module 18 is configured to start a timer corresponding to the interception layer after the display module 13 displays the interception layer on the uppermost layer of the display interface of the terminal device.
In another possible implementation, the detecting module 14 is specifically configured to determine whether the timer is overtime;
when the detection module 14 determines that the timer is over time, the detection module 14 is further configured to determine whether the navigation bar is in a display state; when the detection module 14 determines that the navigation bar is in the display state, the display module 13 is configured to cancel displaying the interception layer, and when the detection module 14 determines that the navigation bar is in the display state, the display module 13 is configured to display the navigation bar and cancel displaying the interception layer;
when the detection module 14 determines that the timer is in time out, the detection module 14 is further configured to determine whether the value of the operation marker bit is the preset value, determine whether the navigation bar is in a display state until the value of the operation marker bit is the preset value or the timer is in time out, when the detection module 14 determines that the navigation bar is in the display state, the display module 13 is configured to cancel displaying the interception layer, and when the detection module 14 determines that the navigation bar is in the display state, the display module 13 is configured to display the navigation bar and cancel displaying the interception layer.
In another possible implementation, the display module 13 is specifically configured to:
and sending a display instruction to a navigation bar control corresponding to the navigation bar so that the navigation bar control displays the navigation bar according to the display instruction.
In another possible embodiment, the hiding module 16 is specifically configured to:
and sending a hiding instruction to a navigation bar control corresponding to the navigation bar according to the navigation bar hiding request so that the navigation bar control hides the navigation bar according to the hiding instruction.
The navigation bar control device provided by the embodiment of the invention can execute the technical scheme shown in the method embodiment, the implementation principle and the beneficial effect are similar, and the detailed description is omitted here.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the embodiments of the present invention.

Claims (6)

1. A navigation bar control method is applied to Android terminal equipment and is characterized by comprising the following steps:
after an interception layer is displayed on the uppermost layer of a display interface of the terminal equipment, starting a timer corresponding to the interception layer;
receiving touch screen operation input by a user through an interception layer, wherein the interception layer is a transparent window which is displayed on the uppermost layer of a display interface when a navigation bar of the terminal equipment is hidden and has the same size as a display screen of the terminal equipment;
judging whether the terminal equipment is allowed to respond to touch screen operation input by a user or not according to the value of the operation mark bit of the terminal equipment;
if the terminal equipment is allowed to respond to the touch screen operation input by the user, displaying a navigation bar, and canceling to display the interception layer;
if the terminal equipment is not allowed to respond to the touch screen operation input by the user, judging whether the timer is overtime or not;
if yes, judging whether the navigation bar is in a display state, if yes, canceling to display the interception layer, and if not, displaying the navigation bar and canceling to display the interception layer;
and if not, judging whether the value of the operation mark bit is a preset value or not until the value of the operation mark bit is the preset value, wherein the preset value is used for indicating that the terminal equipment is allowed to respond to the touch screen operation input by the user.
2. The method of claim 1, wherein before receiving, by the interception layer, a touch screen operation input by a user, the method further comprises:
acquiring a navigation bar hiding request sent by an application program in the terminal equipment;
hiding the navigation bar according to the navigation bar hiding request;
setting the value of the mark bit as the preset value, and displaying the interception layer on the uppermost layer of the display interface of the terminal equipment.
3. The method of any of claims 1-2, wherein displaying a navigation bar comprises:
and sending a display instruction to a navigation bar control corresponding to the navigation bar so that the navigation bar control displays the navigation bar according to the display instruction.
4. The method of claim 2, wherein hiding the navigation bar in accordance with the navigation bar hiding request comprises:
and sending a hiding instruction to a navigation bar control corresponding to the navigation bar according to the navigation bar hiding request so that the navigation bar control hides the navigation bar according to the hiding instruction.
5. A navigation bar control device is characterized by comprising a receiving module, a judging module, a display module, a detection module and a starting module, wherein,
the starting module is used for starting a timer corresponding to an interception layer after the uppermost layer of a display interface of the terminal equipment displays the interception layer;
the receiving module is used for receiving touch screen operation input by a user through an intercepting layer, and the intercepting layer is a transparent window which is displayed on the uppermost layer of a display interface when a navigation bar of the terminal equipment is hidden and has the same size as a display screen of the terminal equipment;
the judging module is used for judging whether the terminal equipment is allowed to respond to the touch screen operation input by the user according to the value of the operation mark bit of the terminal equipment;
the display module is used for displaying a navigation bar and canceling the display of the interception layer when the judgment module judges that the terminal equipment is allowed to respond to the touch screen operation input by the user;
the detection module is used for judging whether the timer is overtime or not;
when the detection module judges that the timer is over time, the detection module is further used for judging whether the navigation bar is in a display state; when the detection module judges that the navigation bar is in a display state, the display module is used for canceling the display of the interception layer, and when the detection module judges that the navigation bar is not in the display state, the display module is used for displaying the navigation bar and canceling the display of the interception layer;
when the detection module judges that the timer does not time out, the detection module is further used for judging whether the value of the operation mark bit is a preset value or not until the value of the operation mark bit is the preset value, and the preset value is used for indicating that the terminal equipment is allowed to respond to touch screen operation input by a user.
6. The apparatus of claim 5, further comprising an acquisition module, a concealment module, and a setup module, wherein,
the acquisition module is used for acquiring a navigation bar hiding request sent by an application program in the terminal equipment before the receiving module receives a touch screen operation input by a user on an interception layer of the terminal equipment;
the hiding module is used for hiding the navigation bar according to the navigation bar hiding request;
the setting module is used for setting the value of the mark bit as the preset value;
the display module is used for displaying the interception layer on the uppermost layer of a display interface of the terminal equipment.
CN201710301185.3A 2017-05-02 2017-05-02 Navigation bar control method and device Active CN107132962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710301185.3A CN107132962B (en) 2017-05-02 2017-05-02 Navigation bar control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710301185.3A CN107132962B (en) 2017-05-02 2017-05-02 Navigation bar control method and device

Publications (2)

Publication Number Publication Date
CN107132962A CN107132962A (en) 2017-09-05
CN107132962B true CN107132962B (en) 2020-09-01

Family

ID=59716514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710301185.3A Active CN107132962B (en) 2017-05-02 2017-05-02 Navigation bar control method and device

Country Status (1)

Country Link
CN (1) CN107132962B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861663B (en) * 2017-09-29 2020-10-16 努比亚技术有限公司 Method and device for displaying dockbar under comprehensive screen
CN108089799B (en) * 2017-12-12 2022-12-13 维沃移动通信有限公司 Control method of screen edge control and mobile terminal
CN108762866B (en) * 2018-05-09 2021-08-13 北京酷我科技有限公司 Short audio rolling display method
CN109460272A (en) * 2018-09-11 2019-03-12 广州优视网络科技有限公司 For the application display method and device of Android system
CN112286400A (en) * 2020-09-24 2021-01-29 杭州易现先进科技有限公司 Projection interaction method and device, electronic equipment and computer storage medium
CN114546556A (en) * 2022-02-15 2022-05-27 西安闻泰信息技术有限公司 Method and device for processing advertisement in application, electronic equipment and storage medium
CN116991302B (en) * 2023-09-22 2024-03-19 荣耀终端有限公司 Application and gesture navigation bar compatible operation method, graphical interface and related device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309756A (en) * 2013-06-14 2013-09-18 广东欧珀移动通信有限公司 Method for preventing application program from quitting or being interrupted accidently and mobile terminal
CN104602135A (en) * 2013-10-31 2015-05-06 腾讯科技(深圳)有限公司 Method and device for controlling full screen play
CN105511746A (en) * 2014-09-24 2016-04-20 深圳富泰宏精密工业有限公司 System and method for optimizing navigation bar

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101537706B1 (en) * 2009-04-16 2015-07-20 엘지전자 주식회사 Mobile terminal and control method thereof
CN102779013A (en) * 2012-07-12 2012-11-14 中兴通讯股份有限公司 Operation control method of touch screen terminal and mobile terminal
CN102999233B (en) * 2012-11-30 2016-12-21 上海易视计算机科技有限公司 The noise spot automatic shield method and device of electronic whiteboard based on imageing sensor
CN103150513B (en) * 2013-03-20 2015-12-09 北京奇虎科技有限公司 The method of the implantation information in interception application program and device
CN103648045A (en) * 2013-12-20 2014-03-19 乐视致新电子科技(天津)有限公司 Method and device for switching display interface through side navigation bar
CN103793224B (en) * 2014-01-17 2017-07-28 北京奇虎科技有限公司 The display methods and device of a kind of window

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309756A (en) * 2013-06-14 2013-09-18 广东欧珀移动通信有限公司 Method for preventing application program from quitting or being interrupted accidently and mobile terminal
CN104602135A (en) * 2013-10-31 2015-05-06 腾讯科技(深圳)有限公司 Method and device for controlling full screen play
CN105511746A (en) * 2014-09-24 2016-04-20 深圳富泰宏精密工业有限公司 System and method for optimizing navigation bar

Also Published As

Publication number Publication date
CN107132962A (en) 2017-09-05

Similar Documents

Publication Publication Date Title
CN107132962B (en) Navigation bar control method and device
US20180095622A1 (en) Terminal multiselection operation method and terminal
KR101896140B1 (en) Password reveal selector
US7979805B2 (en) Button discoverability
CN106302095B (en) Message display control method, device and terminal
US12032976B2 (en) Operation method and apparatus
EP3651007B1 (en) Method, apparatus, and device for enabling task management interface
JP6105822B1 (en) Touch screen control method and apparatus
US20170168628A1 (en) Method and electronic device for split-screen display
US20170168857A1 (en) Information prompting method, devices, computer program and storage medium
US10222927B2 (en) Screen magnification with off-screen indication
CN106775727B (en) Control method and device of mobile terminal
US20160175714A1 (en) Computer-readable recording medium, computer apparatus, and computer processing method
US20170075553A1 (en) Method of controlling indication, user terminal device, and indication control program
CN105094576B (en) Application scenarios switching method and apparatus
CN107992262A (en) Split screen display available interface control method, mobile terminal and computer-readable recording medium
CN106569675B (en) A kind of prompting frame display methods and device
WO2015191894A2 (en) Methods, systems, and media for presenting advertisements during background presentation of media content
CN107783748B (en) Method for synchronous playing of multiple virtual reality devices and virtual reality device
KR20130102168A (en) Method and apparatus for inputting user terminal with touch screen
CN110807158A (en) Label page control method, system, equipment and computer readable storage medium
CN110955480B (en) View display method and device
US20120136930A1 (en) Interruption display system, content information provision server device, and client device
CN103744596A (en) Display control method and electronic device
JP6161556B2 (en) Notification information display device and notification information display method

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
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder