[go: up one dir, main page]

CN107341016B - Focus state implementation method and device under split screen mechanism, terminal and storage medium - Google Patents

Focus state implementation method and device under split screen mechanism, terminal and storage medium Download PDF

Info

Publication number
CN107341016B
CN107341016B CN201710525424.3A CN201710525424A CN107341016B CN 107341016 B CN107341016 B CN 107341016B CN 201710525424 A CN201710525424 A CN 201710525424A CN 107341016 B CN107341016 B CN 107341016B
Authority
CN
China
Prior art keywords
control
focus
focus state
monitored
manager
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
CN201710525424.3A
Other languages
Chinese (zh)
Other versions
CN107341016A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201710525424.3A priority Critical patent/CN107341016B/en
Publication of CN107341016A publication Critical patent/CN107341016A/en
Application granted granted Critical
Publication of CN107341016B publication Critical patent/CN107341016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3013Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is an embedded system, i.e. a combination of hardware and software dedicated to perform a certain function in mobile devices, printers, automotive or aircraft systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Mathematical Physics (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method, a device, a terminal and a storage medium for realizing a focus state under a split screen mechanism, wherein the method comprises the following steps: if the application program to be monitored is started, registering a monitor associated with a focus state for the application program to be monitored, if the application program to be monitored enters an operation page, adding a control in the operation page into a preset focus manager, monitoring an operation event through the monitor, if the operation event is triggered, operating the control in the operation page through the focus manager, and setting the switched control to the focus state after the operation. The scheme enables the operation of the application in the terminal to be smoother, and meanwhile, the focus state cannot be lost.

Description

Focus state implementation method and device under split screen mechanism, terminal and storage medium
Technical Field
The embodiment of the invention relates to computer technology, in particular to a method, a device, a terminal and a storage medium for realizing a focus state under a split screen mechanism.
Background
With the development of science and technology, the car networking products are more and more popular. The interconnection of terminal equipment (such as a mobile phone of a user) and a vehicle machine is realized through a vehicle networking technology, so that richer functions are realized at a vehicle machine end, such as a mobile phone function is used on a screen of the vehicle machine.
In the prior art, when a non-touch screen is adopted as a screen at a car end, a knob, a rocker and a hard key on a car are required to be used for operating application contents at a mobile end, the selection of a focus in an operation process is realized based on a screen capture method, and the selection of the focus state of a control has defects and needs to be improved.
Disclosure of Invention
The invention provides a method, a device, a terminal and a storage medium for realizing a focus state under a split screen mechanism, which enable the operation of application in the terminal to be smoother and the focus state not to be lost.
In a first aspect, an embodiment of the present invention provides a method for implementing a focus state under a split screen mechanism, where the method includes:
if the application program to be monitored is started, registering a monitor associated with the focus state for the application program to be monitored;
if the application program to be monitored enters an operation page, adding a control in the operation page into a preset focus manager, and monitoring an operation event through the monitor;
and if an operation event is triggered, operating the control in the operation page through the focus manager, and setting the control switched to after operation to be in a focus state.
In a second aspect, an embodiment of the present invention further provides a device for implementing a focus state under a split screen mechanism, where the device includes:
the monitor creating module is used for registering a monitor associated with a focus state for the application program to be monitored if the application program to be monitored is started;
the control monitoring module is used for adding the control in the operation page into a preset focus manager if the application program to be monitored enters the operation page, and monitoring the operation event through the monitor;
and the focus switching module is used for operating the control in the operation page through the focus manager if an operation event is triggered, and setting the control switched after operation to be in a focus state.
In a third aspect, an embodiment of the present invention further provides a terminal, where the terminal includes: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the focus state implementation method under the split screen mechanism.
In a fourth aspect, an embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for implementing a focus state in a split-screen mechanism, the method including:
if the application program to be monitored is started, registering a monitor associated with the focus state for the application program to be monitored;
if the application program to be monitored enters an operation page, adding a control in the operation page into a preset focus manager, and monitoring an operation event through the monitor;
and if an operation event is triggered, operating the control in the operation page through the focus manager, and setting the control switched to after operation to be in a focus state.
According to the technical scheme provided by the embodiment of the invention, if the application program to be monitored is started, a monitor associated with the focus state is registered for the application program to be monitored, if the application program to be monitored enters an operation page, a control in the operation page is added into a preset focus manager, the monitor monitors an operation event, if the operation event is triggered, the focus manager operates the control in the operation page, and the control switched after the operation is set to the focus state, so that the operation of the application in the terminal is smoother, and meanwhile, the focus state is not lost.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1a is a flowchart of a method for implementing a focus state under a split screen mechanism according to an embodiment of the present invention;
FIG. 1b is a diagram illustrating a control being in a focus state after being selected according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for implementing a focus state under another split-screen mechanism according to an embodiment of the present invention;
FIG. 3a is a flowchart of a method for implementing a focus state under another split-screen mechanism according to an embodiment of the present invention;
FIG. 3b is a schematic view of an interface provided by an embodiment of the present invention;
FIG. 4 is a flowchart of a method for implementing a focus state under another split-screen mechanism according to an embodiment of the present invention;
fig. 5 is a block diagram of a focus state implementation apparatus under a split screen mechanism according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1a is a flowchart of a method for implementing a focus state in a split screen mechanism according to an embodiment of the present invention, where the method for implementing a focus state in a control in a vehicle-end screen in a vehicle-end interconnected state is implemented in this embodiment, and the method may be executed by a terminal device, such as an intelligent terminal connected to a vehicle-end, e.g., a mobile phone, a tablet computer, and the like, as shown in fig. 1a, a specific scheme provided in this embodiment is as follows:
s101, if the application program to be monitored is started, registering a monitor associated with the focus state for the application program to be monitored.
In one embodiment, a vehicle end and a mobile terminal device used by a user realize network interconnection, wherein a vehicle end screen can synchronously display the picture content of the mobile terminal in real time, so that the functions of the mobile terminal, such as GPS navigation, complex software application and the like, are realized through vehicle end execution. When a user uses the vehicle-end control component to realize the operation of the content of the mobile terminal, the selected focus needs to be displayed on the vehicle-end screen and the mobile terminal screen, and the selected control is usually displayed in a focus state, such as highlighting the control, amplifying the focus control in equal proportion or surrounding frames around the selected control. As shown in fig. 1b, fig. 1b is a schematic diagram that shows a focus state after a control is selected, where the "follow-up listening" part is selected and then shows the focus state corresponding to the control. As described above, in the existing vehicle-mounted device interconnection mode, a screen capture mode is adopted to achieve consistent mapping between the mobile terminal and the vehicle-mounted device screen, when the control focus state is achieved, the focus selection based on the mobile terminal screen frame mode is also adopted, integrity and global management of the focus state control cannot be achieved, and after a user performs other operations on the mobile terminal, the focus state control previously selected by the vehicle-mounted device will also disappear, and the user needs to perform repeated selection operations, which is low in efficiency.
In one embodiment, after the interconnection between the mobile terminal and the vehicle end is completed, the mobile terminal registers a listener associated with a focus state after receiving a touch operation of a user or receiving a transmission instruction of the vehicle end to start an application program. In particular, the listeners associated with the focus state include a touch mode change listener and a global focus change listener, which can be registered in a root view (rootView). The following are exemplary:
Figure BDA0001338409200000051
and S102, if the application program to be monitored enters an operation page, adding the control in the operation page into a preset focus manager, and monitoring the operation event through the monitor.
In an embodiment, when an operation page is entered, a control that needs to implement a focus state in the operation page is added to a focus manager, where the control that needs to implement the focus state is automatically identified after a program is started and compiled (a programmer may set the control in a programming process, or a selectable control in the control may be set as a control that needs to implement the focus state, such as a button control, a text box control, and the like). Specifically, the implementation manner of setting the control to be stored in the focus manager may be:
Figure BDA0001338409200000061
s103, if an operation event is triggered, operating the control in the operation page through the focus manager, and setting the control switched to after operation as a focus state.
In one embodiment, the monitoring of the focus change is performed by the global focus change monitor registered in S101, and the focus change may be generated by manual control of the vehicle end by the user, such as control by a knob, a joystick or a handwriting pad near the center console of the vehicle. By monitoring the operation event, once the operation event occurs, corresponding control switching is carried out according to the operation event. Specifically, the implementation manner may be:
@Override
public void onGlobalFocusChanged(View oldFocus,View newFocus){
v/Global Focus Change within listening application }
According to the technical scheme, the controls needing to realize the focus state in the page are sequentially added into the focus manager for management to realize the focus state of the controls when the page is initialized, so that the user can click and select the controls in the terminal application more smoothly and conveniently, and meanwhile, the focus state cannot be lost due to the operation of the user on the terminal.
Fig. 2 is a flowchart of a method for implementing a focus state under another split-screen mechanism provided in an embodiment of the present invention, where on the basis of the foregoing embodiment, optionally after setting the switched control to the focus state, the method further includes:
and if the touch mode change monitor monitors that the touch mode changes, judging whether the focus state of the control is lost or not, if so, switching the touch mode into the focus state mode, and setting the control in the focus state to be in the focus state again.
Therefore, the problem that the focus state control is lost after the user performs screen splitting operation on the mobile terminal is solved.
Based on the above optimization, as shown in fig. 2, the technical solution provided in this embodiment is specifically as follows:
s201, if the application program to be monitored is started, registering a monitor associated with the focus state for the application program to be monitored.
S202, if the application program to be monitored enters an operation page, adding the control in the operation page into a preset focus manager, and monitoring the operation event through the monitor.
And S203, if an operation event is triggered, operating the control in the operation page through the focus manager, and setting the control switched to after operation as a focus state.
S204, if the touch mode change monitor monitors that the touch mode changes, whether the focus state of the control is lost or not is judged, if the focus state of the control is lost, the touch mode is switched to the focus state mode, and the control which is in the focus state at last is set to be in the focus state again.
In one embodiment, changes to the touch pattern are listened for by a registered touch pattern change listener. In S202, since the focus manager is used to manage the focus state control, it records the control selected as the focus state, when the mobile terminal is switched to the touch mode for various reasons, the touch mode can be automatically switched to the focus state mode, and the focus control in the focus state mode before the last mode switching is continuously selected and the focus state is realized. Optionally, before the touch mode is automatically switched to the focus mode, whether the car is in an interconnection state or not may be determined, that is, the switching of the focus mode is executed when the mobile terminal and the car end are in the interconnection state. Specifically, the implementation mode is as follows:
Figure BDA0001338409200000081
the embodiment provides a method for realizing a focus state under a split screen mechanism, so that when a mobile terminal performs split screen processing and monitors that a touch mode changes through a touch mode change monitor, whether the focus state of a control is lost or not is judged, if the focus state is lost, the touch mode is switched to the focus state mode, the control in the focus state at last is set to be the focus state again, the problem that the focus state control is lost due to the fact that a user operates the mobile terminal is avoided, and the stability of the focus state of an implementation space is improved.
Fig. 3a is a flowchart of a focus state implementation method under another screen splitting mechanism provided in an embodiment of the present invention, where on the basis of the foregoing embodiment, adding a control in the operation page to a preset focus manager includes: adding the controls in the operation page into a focus manager according to a preset sequence; correspondingly, the operating the control in the operation page through the focus manager includes: and sequentially switching according to the sequence of adding the control into the focus manager according to the rotation direction of the knob, the shaking direction of the rocker or the sliding direction of the handwriting board.
Therefore, global management of the focus state under the vehicle machine interconnection state is achieved.
Based on the above optimization, as shown in fig. 3a, the technical solution provided by this embodiment is specifically as follows:
s301, if the application program to be monitored is started, registering a monitor associated with the focus state for the application program to be monitored.
S302, if the application program to be monitored enters an operation page, the controls in the operation page are added into the focus manager according to a preset sequence, and the monitor monitors operation events.
In one embodiment, the preset sequence may be a left-to-right arrangement (horizontal control) or a top-to-bottom arrangement (vertical control) in the view layout of the operation page. As shown in fig. 3b, fig. 3b is an interface schematic diagram provided by an embodiment of the present invention, the application shown in fig. 3b is a GPS navigation application, and when a menu option is clicked, a page of the optional frame shown in the figure is popped up, controls such as a column "common address", "favorite", "search periphery", "real-time road condition", and "offline map pack" are sequentially added to a focus manager from top to bottom, and an operation event at a vehicle end is monitored.
And S303, if an operation event is triggered, sequentially switching according to the rotation direction of the knob, the shaking direction of the rocker or the sliding direction of the handwriting board and the sequence of adding the control into the focus manager, and setting the control switched after the operation into a focus state.
In one embodiment, when the user rotates left or right through the knob near the vehicle center control, the controls "common address", "favorite", "search periphery", "real-time traffic" and "off-line map pack" in fig. 3b are sequentially selected downward or upward to be in a focus state.
The embodiment provides a method for realizing a focus state under a split screen mechanism, wherein controls in an operation page are added into a focus manager according to a preset sequence, and after an operation event is triggered, the controls are sequentially switched according to the sequence of adding the controls into the focus manager according to the rotation direction of a knob, the shaking direction of a rocker or the sliding direction of a handwriting board, so that the overall management of the focus state under a vehicle-mounted device interconnection state is realized.
Fig. 4 is a flowchart of a focus state implementation method under another screen splitting mechanism provided in an embodiment of the present invention, and on the basis of the foregoing embodiment, optionally adding a control in the operation page to a preset focus manager further includes: adding a number identification to the control in the operation page, and adding the control with the number identification to a focus manager; correspondingly, the operation of the control in the operation page through the focus manager according to the operation event further includes: and selecting a control corresponding to the number identification in the focus manager according to the number recorded in the handwriting board for switching.
Therefore, the control can be directly called to present a focus state through hardware equipment such as a handwriting board and the like, and the original application is not required to be upgraded and improved.
Based on the above optimization, as shown in fig. 4, the technical solution provided by this embodiment is specifically as follows:
s401, if the application program to be monitored is started, registering a monitor associated with the focus state for the application program to be monitored.
S402, if the application program to be monitored enters an operation page, adding a number identification to the control in the operation page, adding the control with the number identification to a focus manager, and monitoring an operation event through the monitor.
And S403, if an operation event is triggered, selecting a control corresponding to the number identifier in the focus manager according to the number recorded in the handwriting board for switching, and setting the switched control to be in a focus state after operation.
In an embodiment, when an operation page is entered and the page is initialized, a number identifier is allocated to a control that needs to implement a focus state, taking fig. 3b as an example, the numbers "1", "2", "3", "4", and "5" are sequentially allocated to "common address", "favorite", "search periphery", "real-time road condition", and "offline map package", and when it is detected that the user enters "4" through a handwriting board, the number identifier is searched through a focus manager correspondingly, and it is determined that the control "real-time road condition" corresponding to the number identifier "4" is in the focus state.
The embodiment provides a method for realizing a focus state under a split screen mechanism, when an operation page is entered, a number identifier is added to a control in the operation page, the control with the number identifier is added to a focus manager, an operation event is monitored through a monitor, after the operation event is triggered, the control corresponding to the number identifier in the focus manager is selected according to a number recorded in a handwriting board to be switched, the switched control is set to be the focus state, and the purpose of quickly positioning the focus state is achieved on the basis of not changing an original application program.
Fig. 5 is a structural block diagram of a focus state implementation apparatus under a screen splitting mechanism according to an embodiment of the present invention, where the apparatus is configured to execute a focus state implementation method under the screen splitting mechanism according to the foregoing embodiment, and has corresponding functional modules and beneficial effects of the execution method. As shown in fig. 5, the apparatus includes an event listener creation module 501, a control listening module 502, and a focus switching module 503.
The listener creating module 501 is configured to register a listener associated with a focus state for an application program to be listened, if the application program to be listened is started;
a control monitoring module 502, configured to add a control in an operation page to a preset focus manager if the application to be monitored enters the operation page, and monitor an operation event through the monitor;
and a focus switching module 503, configured to operate the control in the operation page through the focus manager if an operation event is triggered, and set the control switched after the operation to a focus state.
According to the technical scheme provided by the embodiment of the invention, after the application program is detected to be started, the monitor associated with the focus state is registered, when an operation page is entered, the control in the operation page is added into the focus manager, the monitor monitors the operation event, after the operation event is triggered, the control in the operation page is switched through the focus manager according to the operation event, and the switched control is set to be the focus state, so that the operation of the application in the terminal is smoother, and meanwhile, the focus state is not lost.
On the basis of the above technical solution, the listener creating module 501 is specifically configured to:
and acquiring a root view of the application program to be monitored, and registering a touch mode change monitor and a global focus change monitor in the root view.
On the basis of the above technical solution, the control monitoring module 502 is further configured to:
after the control switched after the operation is set to be in the focus state, if the touch mode change is monitored by the touch mode change monitor, whether the focus state of the control is lost is judged, if the focus state of the control is lost, the touch mode is switched to be in the focus state mode, and the control which is in the focus state at last is set to be in the focus state again.
On the basis of the above technical solution, the control monitoring module 502 is specifically configured to:
adding the controls in the operation page into a focus manager according to a preset sequence;
the focus switching module 503 is specifically configured to:
and sequentially switching according to the sequence of adding the control into the focus manager according to the rotation direction of the knob, the shaking direction of the rocker or the sliding direction of the handwriting board.
On the basis of the above technical solution, the control monitoring module 502 is further configured to:
adding a number identification to the control in the operation page, and adding the control with the number identification to a focus manager;
the focus switching module 503 is further configured to:
and selecting a control corresponding to the number identification in the focus manager according to the number recorded in the handwriting board for switching.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention. Fig. 6 illustrates a block diagram of an exemplary terminal 12 suitable for use in implementing embodiments of the present invention. The terminal 12 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the terminal 12 is embodied in the form of a general purpose computing device. The components of the terminal 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Terminal 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by terminal 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The terminal 12 can further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (commonly referred to as "hard drives"). Which may provide a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media). In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The terminal 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the terminal 12, and/or any devices (e.g., network card, modem, etc.) that enable the terminal 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the terminal 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the terminal 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the terminal 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes programs stored in the system memory 28 to execute various functional applications and data processing, for example, to implement a focus state implementation method under the split screen mechanism provided by the embodiment of the present invention.
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a method for implementing a focus state under a split-screen mechanism, where the method includes:
if the application program to be monitored is started, registering a monitor associated with the focus state for the application program to be monitored;
if the application program to be monitored enters an operation page, adding a control in the operation page into a preset focus manager, and monitoring an operation event through the monitor;
and if an operation event is triggered, operating the control in the operation page through the focus manager, and setting the control switched to after operation to be in a focus state.
Optionally, registering a listener associated with the focus state for the application to be monitored includes:
and acquiring a root view of the application program to be monitored, and registering a touch mode change monitor and a global focus change monitor in the root view.
Optionally, after setting the control to which the operation is switched to the focus state, the method further includes:
and if the touch mode is monitored to be changed through the touch mode change monitor, judging whether the focus state of the control is lost or not, if so, switching the touch mode into the focus state mode, and setting the control in the focus state to be in the focus state again.
Optionally, adding the control in the operation page to a preset focus manager includes:
adding the controls in the operation page into a focus manager according to a preset sequence;
correspondingly, the operating the control in the operation page through the focus manager includes:
and sequentially switching according to the sequence of adding the control into the focus manager according to the rotation direction of the knob, the shaking direction of the rocker or the sliding direction of the handwriting board.
Optionally, adding the control in the operation page to a preset focus manager further includes:
adding a number identification to the control in the operation page, and adding the control with the number identification to a focus manager;
correspondingly, the operation of the control in the operation page through the focus manager according to the operation event further includes:
and selecting a control corresponding to the number identification in the focus manager according to the number recorded in the handwriting board for switching.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for realizing a focus state under a split screen mechanism is characterized by comprising the following steps:
if the application program to be monitored is started, registering a monitor associated with the focus state for the application program to be monitored;
if the application program to be monitored enters an operation page, adding a control in the operation page into a preset focus manager, and monitoring an operation event through the monitor;
if an operation event is triggered, operating the control in the operation page through the focus manager, and setting the control switched to after operation as a focus state;
wherein, after the control to which the operation is switched is set to the focus state, the method further comprises:
and if the touch mode is monitored to be changed through the touch mode change monitor, judging whether the focus state of the control is lost or not, if so, switching the touch mode into the focus state mode, and setting the control in the focus state to be in the focus state again.
2. The method of claim 1, wherein registering a listener associated with a focus state for the application to be listened to comprises:
and acquiring a root view of the application program to be monitored, and registering a touch mode change monitor and a global focus change monitor in the root view.
3. The method of any of claims 1-2, wherein adding the control in the action page to a pre-set focus manager comprises:
adding the controls in the operation page into a focus manager according to a preset sequence;
correspondingly, the operating the control in the operation page through the focus manager includes:
and sequentially switching according to the sequence of adding the control into the focus manager according to the rotating direction of the knob, the shaking direction of the rocker or the sliding direction of the handwriting board.
4. The method of claim 3, wherein adding the control in the action page to a pre-set focus manager further comprises:
adding a number identification to the control in the operation page, and adding the control with the number identification to a focus manager;
correspondingly, the operation of the control in the operation page through the focus manager according to the operation event further includes:
and selecting a control corresponding to the number identification in the focus manager according to the number recorded in the handwriting board for switching.
5. A focus state implementation device under a split screen mechanism is characterized by comprising:
the monitor creating module is used for registering a monitor associated with a focus state for the application program to be monitored if the application program to be monitored is started;
the control monitoring module is used for adding the control in the operation page into a preset focus manager if the application program to be monitored enters the operation page, and monitoring the operation event through the monitor;
the focus switching module is used for operating the control in the operation page through the focus manager if an operation event is triggered, and setting the control switched to after operation as a focus state;
wherein the control monitor module is further configured to:
after the control switched after the operation is set to be in the focus state, if the touch mode change is monitored by the touch mode change monitor, whether the focus state of the control is lost is judged, if the focus state of the control is lost, the touch mode is switched to be in the focus state mode, and the control which is in the focus state at last is set to be in the focus state again.
6. The apparatus of claim 5, wherein the listener creation module is specifically configured to:
and acquiring a root view of the application program to be monitored, and registering a touch mode change monitor and a global focus change monitor in the root view.
7. The apparatus according to any one of claims 5-6, wherein the control listening module is specifically configured to:
adding the controls in the operation page into a focus manager according to a preset sequence;
the focus switching module is specifically configured to:
and sequentially switching according to the sequence of adding the control into the focus manager according to the rotating direction of the knob, the shaking direction of the rocker or the sliding direction of the handwriting board.
8. The apparatus of claim 7, wherein the control listening module is further configured to:
adding a number identification to the control in the operation page, and adding the control with the number identification to a focus manager;
the focus switching module is further configured to:
and selecting a control corresponding to the number identification in the focus manager according to the number recorded in the handwriting board for switching.
9. A terminal, characterized in that the terminal comprises: one or more processors; a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the method for implementing a focus state under a split screen mechanism as claimed in any one of claims 1 to 4.
10. A storage medium containing computer-executable instructions which, when executed by a computer processor, perform a method for focus state implementation in a split screen mechanism, the method comprising:
if the application program to be monitored is started, registering a monitor associated with the focus state for the application program to be monitored;
if the application program to be monitored enters an operation page, adding a control in the operation page into a preset focus manager, and monitoring an operation event through the monitor;
if an operation event is triggered, operating the control in the operation page through the focus manager, and setting the control switched to after operation as a focus state;
wherein, after setting the control switched to after the operation to the focus state, the method further comprises:
and if the touch mode is monitored to be changed through the touch mode change monitor, judging whether the focus state of the control is lost or not, if so, switching the touch mode into the focus state mode, and setting the control in the focus state to be in the focus state again.
CN201710525424.3A 2017-06-30 2017-06-30 Focus state implementation method and device under split screen mechanism, terminal and storage medium Active CN107341016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710525424.3A CN107341016B (en) 2017-06-30 2017-06-30 Focus state implementation method and device under split screen mechanism, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710525424.3A CN107341016B (en) 2017-06-30 2017-06-30 Focus state implementation method and device under split screen mechanism, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107341016A CN107341016A (en) 2017-11-10
CN107341016B true CN107341016B (en) 2020-09-04

Family

ID=60219401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710525424.3A Active CN107341016B (en) 2017-06-30 2017-06-30 Focus state implementation method and device under split screen mechanism, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107341016B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109561202B (en) * 2018-09-29 2021-10-08 百度在线网络技术(北京)有限公司 Control processing method and device, terminal equipment, vehicle machine and system
CN109918012A (en) * 2019-03-11 2019-06-21 百度在线网络技术(北京)有限公司 A kind of control method of mobile terminal, device, equipment and storage medium
CN111123758A (en) * 2019-11-06 2020-05-08 思特沃克软件技术(北京)有限公司 Vehicle-mounted item selection method and device and steering wheel
CN112929717B (en) * 2019-12-06 2022-07-29 青岛海信传媒网络技术有限公司 Focus management method and display device
CN113032055A (en) * 2019-12-09 2021-06-25 深圳顺丰快运科技有限公司 Terminal display interface control method and device, computer equipment and storage medium
CN111666029B (en) * 2020-05-28 2024-09-20 阿波罗智联(北京)科技有限公司 Method, device, equipment and readable storage medium for operating vehicle map
CN112351347B (en) * 2020-10-26 2024-02-09 深圳Tcl新技术有限公司 Screen focus moving display method, display device and storage medium
CN112738582A (en) * 2020-12-15 2021-04-30 广州迈聆信息科技有限公司 Control method of interface control based on remote controller and intelligent equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1160887A (en) * 1996-03-29 1997-10-01 国际商业机器公司 Method, memory and device for delaying transfer of focus to newly opened window
CN1963755A (en) * 2006-11-26 2007-05-16 华为技术有限公司 Control apparatus and method of GUI interface of key-control-type apparatus
CN101042628A (en) * 2003-09-25 2007-09-26 索尼株式会社 On-vehicle device and content providing method
CN104602092A (en) * 2015-02-12 2015-05-06 江苏银河电子股份有限公司 Method for adaption of intelligent set top box to mobile phone applications under Android system
CN105808032A (en) * 2014-12-30 2016-07-27 Tcl集团股份有限公司 Focus control method and device based on android control
CN106843643A (en) * 2016-12-30 2017-06-13 百度在线网络技术(北京)有限公司 Page processing method and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060090169A1 (en) * 2004-09-29 2006-04-27 International Business Machines Corporation Process to not disturb a user when performing critical activities

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1160887A (en) * 1996-03-29 1997-10-01 国际商业机器公司 Method, memory and device for delaying transfer of focus to newly opened window
CN101042628A (en) * 2003-09-25 2007-09-26 索尼株式会社 On-vehicle device and content providing method
CN1963755A (en) * 2006-11-26 2007-05-16 华为技术有限公司 Control apparatus and method of GUI interface of key-control-type apparatus
CN105808032A (en) * 2014-12-30 2016-07-27 Tcl集团股份有限公司 Focus control method and device based on android control
CN104602092A (en) * 2015-02-12 2015-05-06 江苏银河电子股份有限公司 Method for adaption of intelligent set top box to mobile phone applications under Android system
CN106843643A (en) * 2016-12-30 2017-06-13 百度在线网络技术(北京)有限公司 Page processing method and mobile terminal

Also Published As

Publication number Publication date
CN107341016A (en) 2017-11-10

Similar Documents

Publication Publication Date Title
CN107341016B (en) Focus state implementation method and device under split screen mechanism, terminal and storage medium
CN110046021B (en) Page display method, device, system, equipment and storage medium
US20170160890A1 (en) Terminal device and sharing method thereof
EP4210320A1 (en) Video processing method, terminal device and storage medium
CN109885781B (en) Mixed page unified browsing method, device, equipment and storage medium
US20170185422A1 (en) Method and system for generating and controlling composite user interface control
EP4528498A1 (en) Page display method and apparatus, device, computer readable storage medium and product
CN113204345A (en) Page generation method and device, electronic equipment and storage medium
CN113301157A (en) Cloud mobile phone group control method, equipment and storage medium based on android system
US20150234575A1 (en) System and method for controlling smart device mirroring of head unit for vehicle
WO2023155877A1 (en) Application icon management method and apparatus and electronic device
CN116774874A (en) Media content display method, device, equipment and storage medium
CN116560558A (en) Interaction method among multiple screens of vehicle, electronic equipment and vehicle
CN114363654B (en) Video push method, device, terminal equipment and storage medium
CN112416189A (en) Cross-page focus searching method and device and electronic equipment
CN113835791B (en) Method and apparatus for presenting hierarchical relationships of view components
CN112492399B (en) Information display method and device and electronic equipment
EP4528496A1 (en) Picture display method and apparatus, and storage medium and electronic device
CN113438536A (en) Video display method, device, equipment and storage medium
CN111817944A (en) Picture sharing method and device and electronic equipment
CN117032513A (en) Content display method, device, equipment, computer readable storage medium and product
CN112905072B (en) Application processing method and device and electronic equipment
CN116828247A (en) Media content stream processing method, device, equipment and storage medium
CN116668392A (en) Interactive information sending method and device, electronic equipment and storage medium
CN116600164A (en) Method and device for publishing media content, electronic equipment and 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