WO2019137092A1 - Data display method and device, and terminal - Google Patents

Data display method and device, and terminal Download PDF

Info

Publication number
WO2019137092A1
WO2019137092A1 PCT/CN2018/115411 CN2018115411W WO2019137092A1 WO 2019137092 A1 WO2019137092 A1 WO 2019137092A1 CN 2018115411 W CN2018115411 W CN 2018115411W WO 2019137092 A1 WO2019137092 A1 WO 2019137092A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
terminal
display screen
state
module
Prior art date
Application number
PCT/CN2018/115411
Other languages
French (fr)
Chinese (zh)
Inventor
张晓亮
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2019137092A1 publication Critical patent/WO2019137092A1/en

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/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
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display

Definitions

  • the present invention relates to the field of communications, and in particular, to a data display method and apparatus, and a terminal.
  • Some terminals of the related art have a small touch module installed on the back, and a touch operation on the back touch module can operate the display content on the front side of the terminal.
  • Some terminals set a fingerprint module on the back of the terminal, and a touch operation on the fingerprint module can operate the display content on the front of the terminal.
  • the two screens of the dual screen terminal can be folded back to back, but the two screens can only operate the content on the screen.
  • the touch module on the back of the terminal in the related art can only be used to operate behind the terminal.
  • the touch modules on the two screens of the dual-screen terminal in the related art can only operate the corresponding display screen, for example, the A touch module operates A.
  • the display, B touch module operates the B display, resulting in inflexible data display.
  • Embodiments of the present invention provide a data display method and apparatus, a terminal, a storage medium, and a processor.
  • a data display method including: determining a state in which a current terminal is located, wherein the state includes: a collapsed state, an expanded state; and determining to display the first touch according to a state in which the terminal is located a display screen of data; wherein the first touch data is data generated by the first touch operation on the first touch module of the terminal, the first touch module corresponding to the first display screen of the terminal; on the determined display screen The first touch data is displayed.
  • a terminal including: a detecting module, a first display screen, a second display screen, a first touch module, and a second touch module; the first display screen corresponds to the first touch module, The second display screen is corresponding to the second touch module; the detecting module is configured to detect a current state of the terminal, wherein the state includes: a folded state and an expanded state; and the first touch module is configured to detect the first action on the first touch module Touching the operation and generating the first touch data, sending the first touch data to the first display screen or the second display screen for display when the terminal is in the expanded state, and receiving the second touch module when the terminal is in the folded state
  • the first display screen displays the first touch data.
  • a data display apparatus including: a first determining module, configured to determine a state in which the current terminal is located, wherein the state includes: a collapsed state, an expanded state; and a second determining module, Determining, according to a state in which the terminal is located, a display screen for displaying the first touch data; wherein the first touch data is data generated by the first touch operation on the first touch module of the terminal, the first touch module and the terminal Corresponding to the first display screen; the display module is configured to display the first touch data on the determined display screen.
  • a storage medium comprising a stored program, wherein the method is executed while the program is running.
  • a processor for running a program wherein the program executes the above method while it is running.
  • FIG. 1 is a block diagram showing the hardware structure of a mobile terminal that implements a data display method according to an embodiment of the present invention
  • FIG. 2 is a flow chart of a data display method according to an embodiment of the present invention.
  • FIG. 3 is a block diagram showing the structure of a data display device according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • Figure 5 is a schematic illustration of the terminal in an unfolded and folded state in accordance with a preferred embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a terminal according to a preferred embodiment of the present invention.
  • Figure 7 is a schematic illustration of gravity and z-axis directions in accordance with an embodiment of the present invention.
  • Figure 8 is a flow diagram of a method in accordance with a preferred embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a terminal in a dual-screen unfolded state in accordance with a preferred embodiment of the present invention.
  • Figure 10 is a schematic illustration of a terminal in a folded state in accordance with a preferred embodiment of the present invention.
  • FIG. 1 is a hardware structural block diagram of a mobile terminal that implements a data display method according to an embodiment of the present invention.
  • the mobile terminal 10 may include one or more (only one shown) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA).
  • the structure shown in FIG. 1 is only an illustration, and does not limit the specific hardware structure of the terminal.
  • the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
  • the memory 104 can be used to store software programs and modules of application software, such as program instructions/modules corresponding to the data display method in the embodiment of the present invention, and the processor 102 executes various programs by running software programs and modules stored in the memory 104. Functional application and data processing, that is, the above method is implemented.
  • Memory 104 may include high speed random access memory and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 104 may further include memory remotely located relative to processor 102, which may be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 106 is for receiving or transmitting data via a network.
  • Specific examples of the above-described network may include a wireless network provided by a communication provider of the mobile terminal 10.
  • the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • FIG. 2 is a flowchart of a data display method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
  • Step S202 determining a state in which the current terminal is located, where the state includes: a collapsed state, an expanded state;
  • Step S204 determining a display screen for displaying the first touch data according to the state of the terminal; wherein the first touch data is data generated by the first touch operation on the first touch module of the terminal, the first touch module Corresponding to the first display of the terminal;
  • Step S206 displaying first touch data on the determined display screen.
  • the display screen displaying the first touch data is determined according to the state of the terminal, the first touch data is displayed on the determined display screen, so that the manner of displaying the first touch data can be determined according to different states of the terminal, and therefore, Increased flexibility in terminal display data and improved user experience.
  • the folded state is a state in which the two display screens of the terminal are folded back to back
  • the unfolded state is a state in which the two display screens of the terminal are placed left and right or placed up and down.
  • step S202 may be performed by determining the state of the current terminal through the Hall element of the terminal. Specifically, it can be expressed that: a Hall element and a magnet are respectively disposed on two display screens of the terminal (or in a corresponding housing of the display screen), and two gates are determined when the Hall element is detected to be close to the magnet. The display is folded back to back, ie in a folded state; in the event that the Hall element is detected to be remote from the magnet, it is determined that the two displays are unfolded, ie, in an unfolded state. Of course, other methods can also be used to determine whether the state of the terminal is an expanded state or a folded state.
  • step S204 may be performed to: when the state in which the terminal is in the folded state, determine that the display screen for displaying the first touch data is the second display screen of the terminal; In the case of the expanded state, it is determined that the display screen for displaying the first touch data is the first display screen and/or the second display screen of the terminal.
  • the first touch data is displayed on the second display screen of the terminal; in the case that the terminal is in the expanded state, the first touch data may be displayed on only the first display screen of the terminal, It is also possible to display the first touch data on the first display screen and the first touch data on the second display screen, or display the first touch data only on the second display screen of the terminal, thereby avoiding the prior art.
  • the first touch data generated on the first touch module can only display the defect on the first display screen, that is, the first touch module can only operate the first display screen and cannot operate the second The defect of the display screen enables the first touch module to operate both the first display screen and the second display screen.
  • the display mode may be determined by the display mode set (stored) in the terminal: mode one, only the first touch data is displayed on the first display screen of the terminal; Second, the first touch data is displayed on the first display screen and the first touch data is displayed on the second display screen. In the third mode, the first touch data is displayed only on the second display screen of the terminal.
  • Each display mode set in the terminal corresponds to one of the display modes. In the case where a plurality of display modes are set in the terminal, for example, the display mode may be switched by the user as needed, or the display mode may be selected by the system according to the currently running program, the environment in which the terminal is located, the current time, and the like.
  • the method may further include: performing coordinate transformation processing on the first touch data; The first touch data after the conversion process is sent to the second touch module corresponding to the second display screen.
  • the coordinates are transformed into coordinates and flipped left and right.
  • the step S206 may be performed as: when the terminal is in the folded state, in the case that the second touch operation on the second touch module is not detected, on the second display screen
  • the first touch data after the coordinate transformation processing is displayed. Before displaying the first touch data after the coordinate transformation processing on the second display screen, it is necessary to determine whether the second touch module receives the second touch operation.
  • the touch data generated by the second touch operation on the second touch module is displayed on the second display screen.
  • the second display screen preferentially displays the touch data generated by the second touch operation.
  • the method further includes: determining that the first display screen is in a sleep state.
  • the display screen in the sleep state is preset as the first display screen, or may be determined by installing a gravity sensor on the terminal.
  • the gravity sensor may be mounted on the first display or on the second display, but is not limited thereto, and may be mounted on the terminal other than the first display and the second display. .
  • the gravity sensor is mounted on the first display screen.
  • the gravity sensor collects the direction of gravity, and the front direction of the first display screen is the z-axis direction toward the front direction of the first display screen, and the gravity direction and the z-axis are used.
  • the angle between the directions is 90-180 degrees
  • the first display screen is considered upward, and at this time, the first display screen is not in a sleep state
  • the angle between the gravity direction and the z-axis direction is 0-90 degrees
  • a display is facing down, where the first display is in a sleep state.
  • the method may further include: identifying a display screen of the terminal in a downward state; and identifying the downwardly facing state
  • the display is designated as the first display.
  • the gravity sensor can be used to identify which display screen of the terminal is in a downward state, and then the display screen in the downward direction is designated as the first display screen, and naturally, the touch module corresponding to the first display screen Designated as the first touch module, the other display screen is designated as the second display screen, and the touch module corresponding to the second display screen is designated as the second touch module.
  • the display screen originally designated as the second display screen will be designated as the first display screen.
  • the first display screen may be specified by using a light sensor, a distance sensor, a camera, or the like.
  • the display screen on the side where the camera that photographed the face is located may be designated as the first display screen.
  • the method further includes: causing the first display The screen enters the off screen state. It will be appreciated that the first display screen may be extinguished (eg, hibernating or powered down) without the need to display the first touch data by the first display screen.
  • the execution body of the foregoing steps may be the foregoing terminal or the like, but is not limited thereto.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a terminal, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a data display device is provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be described again.
  • the term "module” is a combination of software and/or hardware that can perform a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible or conceivable.
  • FIG. 3 is a structural block diagram of a data display device according to an embodiment of the present invention. As shown in FIG. 3, the device includes:
  • the first determining module 32 is configured to determine a state in which the current terminal is located, where the state includes: a folded state, an expanded state;
  • the second determining module 34 is connected to the first determining module 32, and configured to determine a display screen for displaying the first touch data according to the state of the terminal; wherein the first touch data is a first touch operation acting on the terminal The data generated on the first touch module, the first touch module corresponding to the first display screen of the terminal;
  • the display module 36 is coupled to the second determining module 34 and configured to display the first touch data on the determined display screen.
  • the display screen displaying the first touch data is determined by the state of the terminal, the first touch data is displayed on the determined display screen, so that the manner of displaying the first touch data can be determined according to different states of the terminal, and therefore, Increased flexibility in terminal display data and improved user experience.
  • the foregoing second determining module 34 may include: a first determining unit configured to determine, when the state of the terminal is in a folded state, that the display screen for displaying the first touch data is the second terminal of the terminal a second determining unit configured to determine, when the state in which the terminal is in the expanded state, the first display screen and/or the second display screen in which the display screen for displaying the first touch data is the terminal. That is, in the case that the terminal is in the folded state, the first touch data may be displayed on the second display screen of the terminal; in the case that the terminal is in the expanded state, the first touch data may be displayed on only the first display screen of the terminal.
  • the first touch data may be displayed on the first display screen and the first touch data may be displayed on the second display screen, or the first touch data may be displayed only on the second display screen of the terminal, thereby avoiding existing In the technology, no matter what state the terminal is in, the first touch data generated on the first touch module can only display the defect on the first display screen, that is, the first touch module can only operate the first display screen and cannot operate.
  • the defect of the two display screens enables the first touch module to operate both the first display screen and the second display screen.
  • the display mode may be determined by the display mode set in the terminal: mode one, only the first touch data is displayed on the first display screen of the terminal; Displaying the first touch data on the first display screen and displaying the first touch data on the second display screen; and manner 3, displaying the first touch data only on the second display screen of the terminal.
  • Each display mode set in the terminal corresponds to one of the display modes.
  • the apparatus may further include: a processing module configured to perform coordinate transformation processing on the first touch data when the state of the terminal is in a folded state; the sending module, and the processing module Connected, and configured to send the first touch data processed by the coordinate transformation to the second touch module corresponding to the second display screen.
  • the display module 36 is further configured to display the first touch data after the coordinate transformation processing on the second display screen without detecting the second touch operation acting on the second touch module.
  • the apparatus may further include: a third determining module configured to determine that the first display screen is in a sleep state in a case where it is determined that the state of the terminal is a folded state.
  • the apparatus may further include: a designating module configured to identify a display screen of the terminal in a downward state when the state of the terminal is in a folded state, and to identify the The lower display is designated as the first display.
  • a designating module configured to identify a display screen of the terminal in a downward state when the state of the terminal is in a folded state, and to identify the The lower display is designated as the first display.
  • the foregoing apparatus may be located in a terminal, such as a dual screen terminal, but is not limited thereto.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
  • the forms are located in different processors.
  • the first and second touch modules may be touch screens, touch panels, and the like that are superimposed with the corresponding display screens.
  • FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal includes a detecting module 42, a first display screen 44, a second display screen 46, a first touch module 48, and a second touch module 410.
  • the first display screen 44 corresponds to the first touch module 48
  • the second display screen 46 corresponds to the second touch module 410.
  • the detecting module 42 is connected to the first display screen 44 and the second display screen 46, and is configured to detect the current state of the terminal, wherein the state includes a folded state and an expanded state.
  • the first touch module 48 is connected to the first display screen 44 and the second touch module 410, and configured to detect a first touch operation applied to the first touch module 48 and generate first touch data, where the terminal is in an unfolded state.
  • the first touch data is sent to the first display screen 44 or the second display screen 46 for display, and the second touch module 410 receives the first touch data when the terminal is in the folded state, and the second display screen 46 displays the first touch data.
  • One touch data is connected to the first display screen 44 and the second touch module 410, and configured to detect a first touch operation applied to the first touch module 48 and generate first touch data, where the terminal is in an unfolded state.
  • the first touch data is sent to the first display screen 44 or the second display screen 46 for display, and the second touch module 410 receives the first touch data when the terminal is in the folded state, and the second display screen 46 displays the first touch data.
  • One touch data is connected to the first display screen 44 and the second touch module 410, and configured to detect a first touch operation applied to
  • the display screen displaying the first touch data is determined by the state of the terminal, the first touch data is displayed on the determined display screen, so that the manner of displaying the first touch data can be determined according to different states of the terminal, and therefore, Increased flexibility in terminal display data and improved user experience.
  • the first touch module 48 sends the first touch data to the second display screen 46 for display.
  • the first touch module 48 may send the first touch data to the first touch module 48.
  • the second touch module 410 sends the received first touch data directly to the second display screen for display; but is not limited thereto.
  • the terminal it is possible to display the first touch data on the second display screen 46 of the terminal when the terminal is in the folded state; and in the case that the terminal is in the expanded state, it may be only on the first display screen 44 of the terminal.
  • the first touch data is displayed, and the first touch data may be displayed on the first display screen 44 and the first touch data may be displayed on the second display screen 46, or may be displayed only on the second display screen 46 of the terminal. Touching the data, thereby avoiding the defect that the first touch data generated on the first touch module can only be displayed on the first display screen 44 regardless of the state of the terminal in the prior art, that is, the first touch module 48 is avoided. Only the defect that the first display screen 44 cannot operate the second display screen 46 can be operated, and the first touch module can operate the first display screen 44 or the second display screen 46.
  • the display mode may be determined by the display mode set in the terminal: mode one, only the first touch data is displayed on the first display screen of the terminal; Displaying the first touch data on the first display screen and displaying the first touch data on the second display screen; and manner 3, displaying the first touch data only on the second display screen of the terminal.
  • Each display mode set in the terminal corresponds to one of the display modes.
  • the above detection module 42 may be a Hall element, but is not limited thereto.
  • the first touch module 48 is further configured to perform coordinate transformation processing on the first touch data and transmit the first touch data after the coordinate transformation processing to the second when the terminal is in the folded state.
  • Touch module 410 Touch module 410.
  • the second touch module 410 is further configured to detect a second touch operation applied to the second touch module 410 and generate second touch data, and send the second touch data if the terminal is in an expanded state.
  • the second display screen 46 is displayed; the second display screen 46 is further configured to display the second touch data.
  • the second touch module 410 is further configured to determine whether the second touch data is detected when the first touch data after the coordinate transformation processing is received, and if the determination result is negative, The first touch data processed by the coordinate transformation is sent to the second display screen 46.
  • the foregoing terminal may further include: a gravity sensor configured to determine that the first display screen is in a sleep state.
  • the gravity sensor may be connected to the first display screen 44 or the second display screen 46, but is not limited thereto.
  • the foregoing terminal may be a dual screen terminal, but is not limited thereto.
  • Embodiments of the present invention also provide a storage medium including a stored program, wherein the program described above executes the method of any of the above.
  • the above storage medium may be set to store steps for performing the method in Embodiment 1.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • Embodiments of the present invention also provide a processor configured to execute a program, wherein the program executes the steps of any of the above methods when executed.
  • the foregoing program is configured to perform the steps of the method in Embodiment 1 above.
  • Figure 5 is a schematic illustration of a terminal in an unfolded and folded state, in accordance with a preferred embodiment of the present invention, wherein for clarity, the two display screens in a collapsed state are shown in expanded view in Figure 5 .
  • the terminal in this embodiment is a dual-screen mobile phone.
  • the dual-screen phone has two display screens 607, 608, both of which are the same size and have a touch screen.
  • the two display screens 607, 608 can be deployed side by side or folded back to back.
  • the first touch screen operates the first display screen 608, and the second touch screen operates the second display screen 607; when the two display screens 607, 608 are folded back to back, the first touch screen can The second display screen 607 is operated, or the second touch screen can operate the first display screen 608.
  • the coordinate starting points (0, 0) of the first finger screen and the second touch screen are all from the upper left corner of the screen.
  • the two display screens 607, 608 are folded back to back, and the first display screen 608 displays content
  • the coordinate starting point (0, 0) of the first finger touch screen is from the upper left of the screen.
  • the coordinate starting point (0, 0) of the collected finger coordinates of the second touch screen is from the upper right corner of the screen, that is, the coordinates of the first touch screen and the second touch screen are mirrored, and each time on the second touch screen
  • the pixel points have exactly one-to-one correspondence with each pixel on the first touch screen.
  • the two screens of the dual screen mobile phone are connected by a rotating shaft 610, and two screen back-to-back folding and left and right positioning deployment are realized by rotating around the rotating shaft 610, as shown in FIG.
  • the dual screen mobile phone has the following components: a Hall element, a first display screen 608, a second display screen 607, a first touch screen, a second touch screen, a gravitational acceleration sensor, and the like.
  • the first display screen 608 and the first touch screen are superimposed, and the second display screen 607 and the second touch screen are superimposed.
  • the Hall element has two different states, one characterizing that the dual screen is in a folded state and one characterizing that the dual screen is in an expanded state.
  • the first display module sends the display data to the first display screen 608 and the second display module sends the display data to the second display screen 607, and the first display module performs the touch operation of the first touch module (ie, The first display module causes the first display screen 608 to display data generated when the first touch module (first touch screen) is operated, and the second display module performs a touch operation of the second touch module.
  • the first display screen 608 When the dual screen enters the folded state, the first display screen 608 is put into a sleep state, the first touch module flips the coordinates to the left and right, and the reversed coordinates of the first touch module (ie, the coordinates of the first touch screen after the flip) and the first The coordinates of the two touch modules (ie, the coordinates of the second touch screen) are in one-to-one correspondence, and the first touch module transmits the touch data to the second touch module.
  • the second touch screen module determines touch data of the second touch screen module and the first touch screen module, and when the second touch screen module does not collect touch data, the second display module performs a touch operation of the first touch module.
  • the gravity acceleration sensor determines whether the second display screen 607 is in a downward or upward state. When the second display screen 607 is in the upward state, the above operation is performed. When the second display screen 607 is in the downward state, the second display module sends the display data to the first display module, the second display module does not send data to the second display screen 607, and the second display screen 607 enters the off-screen state.
  • the first touch module coordinates are restored by default, the coordinates of the second touch module are flipped left and right, and the touch data is sent to the first touch module.
  • the first touch module determines the touch data of the first touch screen module and the second touch screen module, and when the first touch screen module does not collect the touch data, the first display module performs a touch operation of the second touch module.
  • FIG. 6 is a schematic structural diagram of a terminal according to a preferred embodiment of the present invention.
  • the terminal includes a central processing unit 601, a Hall element, a first display module 604, a second display module 603, a first touch module 606, and a second touch module 605.
  • the central processing unit 601 is connected to the Hall element, the first display module 604, the second display module 603, the first touch module 606, the second touch module 605, the first display screen 608, the second display screen 607, and the gravity sensor.
  • the Hall element 602 is disposed in a display screen (or a housing corresponding to the display screen) and mates with a magnet (not shown) disposed in another display screen (or a corresponding housing).
  • the Hall element 602 is divided into two states according to the proximity and the distance from the magnet. In the approach state, the two display screens are folded back to back, and the two display screens are deployed from the back-to-back state in the away state.
  • the Hall element 602 in the folded state, the Hall element 602 is close to the magnet, the two displays are folded back to back, the Hall element outputs a low potential voltage (low level), and the low potential voltage state is a dual screen mobile phone.
  • Folded state in the unfolded state, the Hall element is away from the magnet, the two display screens are in an unfolded state, the Hall element outputs a high potential voltage (high level), and the high potential voltage state is a dual-screen mobile phone unfolded state.
  • the second display module 603 obtains a folded state or an expanded state according to the state of the Hall element. In the folded state, the second display module 603 transmits the display data to the second display screen 607, and the second display screen 607 lights up the display.
  • the second display module 603 when the second display module 603 receives the sleep information of the whole machine, the second display module 603 stops sending data to the second display screen 607, and the second display module 603 enters a sleep state, and the second display Screen 607 is off.
  • the second display module 603 transmits the display data to the second display screen 607
  • the first display module 604 transmits the display data to the first display screen 608.
  • the central processing unit 601 generates display data according to the folding or unfolding state of the dual screen according to the operation of the user on the touch screen.
  • the display data of the second display screen 607 and the display data of the first display screen 608 are generated, and the central processing unit 601 separates the display data of the second display screen 607 and the display data of the first display screen 608, respectively.
  • the second display module 603 and the first display module 604 are sent.
  • the second touch module 605 collects user finger touch data on the second display screen 607.
  • the second touch module 605 collects user touch data, including data clicked, double-clicked, and swiped by the user, and sends coordinate data to the central processing unit 601, and the central processing unit 601 performs corresponding operations.
  • the central processing unit 601 transmits the display data after the operation is performed to the second display module 603.
  • the central processing unit 601 transmits the display data after the operation is performed to the second display module 603 and the first display module 604.
  • the first touch module 606 collects user finger touch data on the first display screen 608, and when the second display module 603 receives the information that the dual screen provided by the Hall element 602 enters the folded state, the first The coordinate data in a touch module 606 is flipped left and right, as shown in FIG.
  • the upper left corners of the coordinates of the second touch module 605 and the first touch module 606 are both (0, 0), and the lower right corner is (x, y).
  • the upper left corner of the coordinates of the second touch module 605 is (0, 0)
  • the lower right corner is (x, y)
  • the upper left corner of the coordinates of the first touch module 606 is (x, 0)
  • the lower right corner is (0, y).
  • the first touch module 606 sends the collected touch data to the second touch module 605, and the second touch module 605 determines whether the current second touch module 605 has finger touch data, and if so, the second touch module 605 The touch data is sent to the second display module 603, and the second display module 603 performs a touch operation. If not, the second touch module 605 sends the first touch module 606 touch data to the second display module 603, and the second display module 603 performs a touch. operating.
  • the second display screen 607 receives the display data of the second display module 603 for display.
  • the central processing unit 601 powers up the second display screen 607, including powering up the display circuit IC (Integrated Circuit), providing voltage and current required for each pin of the IC, powering up the backlight of the display screen, and providing the voltage required for the backlight circuit and Current.
  • the second display module 603 sends the display data to the display IC, and the IC drives the display circuit to realize display imaging.
  • the first display screen 608 receives the first display module 604 to display data for display.
  • the central processing unit 601 powers up the first display screen, including powering up the display IC, providing voltage and current required for each pin of the IC, powering up the backlight of the display, providing voltage and current required by the backlight circuit, and displaying the first display Module 604 sends the display data to the display IC, which drives the display circuit to effect display imaging.
  • Gravity sensor 609 collects the direction of gravity.
  • 7 is a schematic diagram of gravity and z-axis directions provided in accordance with an embodiment of the present invention.
  • the direction of gravity is the direction of g
  • is the angle between the direction of gravity and the direction of the z-axis.
  • the gravity sensor 609 is mounted on the second display screen 607 with the z-axis direction from the back of the second display screen 607 to the front side of the display screen.
  • the angle ⁇ is 90-180 degrees
  • the second display screen 607 faces upward
  • the angle ⁇ is 0-90 degrees
  • the second display screen 607 faces downward.
  • the first touch module 606 collects user finger touch data on the first display screen 608, and the touch collected by the first touch module 606 The data is sent to the second touch module 605.
  • the second touch module 605 determines whether the current second touch module 605 has finger touch data, and if so, the second touch module 605 sends the touch data to the second display module 603, and the second display module 603 performs a touch operation, if not, the first The two touch module 605 transmits the touch data of the first touch module 606 to the second display module 603, and the second display module 603 performs a touch operation.
  • the second display module 603 sends the display data to the first display module 604, the second display module 603 does not send data to the second display screen 607, and the second display screen 607 enters the screen-off state.
  • the first touch module 606 coordinates are restored by default, the coordinates of the second touch module 605 are flipped left and right, and the touch data is sent to the first touch module 606.
  • the first touch module 606 determines touch data of the first touch module 606 and the second touch module 605. When the first touch module 606 does not collect touch data, the first display module 604 performs a touch operation of the second touch module 605.
  • FIG. 8 is a schematic flow chart of a method according to a preferred embodiment of the present invention. As shown in FIG. 8, the method includes steps S801 to S803.
  • Step S801 Determine whether the dual screen is in a folded state according to the Hall element.
  • the Hall element When the two display screens are in a folded state, the Hall element is close to the magnet, the Hall element outputs a low potential voltage (low level), and the low potential voltage state is a folded state of the dual screen mobile phone; when the two display screens are in an unfolded state The Hall element is away from the magnet, the Hall element outputs a high potential voltage (high level), and the high potential voltage state is a dual-screen mobile phone unfolding state.
  • the central processing unit determines whether the dual screen is in a folded or unfolded state according to the level of the output level of the Hall element.
  • Step S802 In the folded state, the first display screen enters the off-screen standby state, the first touch module coordinates are flipped left and right, and the finger touch data is collected and provided to the second touch module.
  • the central processing unit collects the Hall element in a low potential voltage (low level) state, and the dual screen is in a folded state.
  • the central processor powers off or de-energizes the first display, including powering down the display IC, and powering down the voltage and current required for each pin of the IC, and powering down the backlight of the display to make the first display Enter the screen off state.
  • a touch operation click, double tap, swipe, etc.
  • the finger on the first display screen ie, the first touch screen
  • the first touch module can still be collected by the first touch module.
  • the coordinate data in the first touch module is flipped left and right, and the first touch module collects the user's finger touch data on the first display screen, the upper left corner of the coordinate of the second touch module is (0, 0), and the lower right corner is (x) , y), the upper left corner of the coordinates of the first touch module is (x, 0), and the lower right corner is (0, y).
  • Step S803 The second touch module determines whether the second touch module has a touch operation, and if so, performs a touch operation of the second touch module, and if not, performs a touch operation of the first touch module.
  • the touch data collected by the first touch module is sent to the second touch module, and the second touch module determines whether the current second touch module has finger touch data, and if so, the second touch module sends the touch data to the second display.
  • the second display module performs a touch operation. If not, the second touch module sends the touch data of the first touch module to the second display module, and the second display module performs a touch operation.
  • FIG. 9 is a schematic diagram of a terminal in a dual screen unfolded state according to a preferred embodiment of the present invention.
  • the second display screen 607 displays content in response to the sliding process, and the first display screen 608 does not respond to the sliding. .
  • the first display 608 displays content in response to the sliding process, and the second display 607 does not respond to the slide.
  • FIG. 10 is a schematic diagram of a terminal in a folded state according to a preferred embodiment of the present invention.
  • the coordinates of the upper left corner of the first touch screen correspond to the upper right corner of the second touch screen.
  • the coordinates of the lower right corner of the first touch screen correspond to the lower left corner of the second touch screen.
  • Sliding from A to B on the first touch screen is equivalent to sliding from A to B on the second touch screen, and the second display 607 displays content in response to the sliding process, and the first display screen 608 does not respond to the sliding.
  • first touch screen may also be referred to as a first touch module
  • second touch screen may be referred to as a second touch module.
  • the first display screen in the foregoing embodiments 1 to 4 may be considered as being in the preferred embodiment.
  • the first display screen and the first display module, the second display screens in the above embodiments 1 to 4 can be considered as the second display screen and the second display module in the preferred embodiment, but are not limited thereto.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.

Abstract

A data display method and apparatus, and a terminal. The data display method comprises: determining a state that a current terminal is in, wherein the state comprises: a folded state and an unfolded state (S202); according to the state that the terminal is in, determining a display screen used for displaying first touch data, wherein the first touch data is data generated by a first touch operation acting upon a first touch module of the terminal, the first touch module corresponding to a first display screen of the terminal (S204); and displaying the first touch data on the determined display screen (S206).

Description

数据显示方法及装置、终端Data display method and device, terminal 技术领域Technical field
本发明涉及通信领域,尤其涉及一种数据显示方法及装置、终端。The present invention relates to the field of communications, and in particular, to a data display method and apparatus, and a terminal.
背景技术Background technique
相关技术中有些终端的背部安装了一个小的触摸模块,在背部触摸模块上进行触摸操作可以操作终端正面的显示屏内容。有些终端在终端背面设置指纹模组,在指纹模组上进行触摸操作可以操作终端正面的显示屏内容。Some terminals of the related art have a small touch module installed on the back, and a touch operation on the back touch module can operate the display content on the front side of the terminal. Some terminals set a fingerprint module on the back of the terminal, and a touch operation on the fingerprint module can operate the display content on the front of the terminal.
相关技术中还存在这样的双屏终端,该双屏终端的两个屏幕可以背靠背折叠,但是两个屏幕只可以操作本屏幕上的内容。There are also dual screen terminals in the related art, the two screens of the dual screen terminal can be folded back to back, but the two screens can only operate the content on the screen.
可见,相关技术中的终端背面的触摸模块只能用于在终端背后操作,相关技术中的双屏终端的两个屏幕上的触摸模块只可以操作其对应的显示屏,例如A触摸模块操作A显示屏,B触摸模块操作B显示屏,导致数据显示不够灵活。It can be seen that the touch module on the back of the terminal in the related art can only be used to operate behind the terminal. The touch modules on the two screens of the dual-screen terminal in the related art can only operate the corresponding display screen, for example, the A touch module operates A. The display, B touch module operates the B display, resulting in inflexible data display.
发明内容Summary of the invention
本发明实施例提供了一种数据显示方法及装置、终端、存储介质以及处理器。Embodiments of the present invention provide a data display method and apparatus, a terminal, a storage medium, and a processor.
根据本发明的一个实施例,提供了一种数据显示方法,包括:确定当前终端所处的状态,其中,状态包括:折叠状态,展开状态;根据终端所处的状态确定用于显示第一触摸数据的显示屏;其中,第一触摸数据为第一触摸操作作用于终端的第一触摸模块上所产生的数据,第一触摸模块与终端的第一显示屏对应;在所确定的显示屏上显示第一触摸数据。According to an embodiment of the present invention, a data display method is provided, including: determining a state in which a current terminal is located, wherein the state includes: a collapsed state, an expanded state; and determining to display the first touch according to a state in which the terminal is located a display screen of data; wherein the first touch data is data generated by the first touch operation on the first touch module of the terminal, the first touch module corresponding to the first display screen of the terminal; on the determined display screen The first touch data is displayed.
根据本发明的一个实施例,提供了一种终端,包括:检测模块,第一显示屏,第二显示屏,第一触摸模块,第二触摸模块;第一显示屏和第一 触摸模块对应,第二显示屏与第二触摸模块对应;检测模块配置为检测终端当前的状态,其中,所述状态包括:折叠状态和展开状态;第一触摸模块配置为检测作用于第一触摸模块的第一触摸操作并产生第一触摸数据,在终端处于展开状态的情况下将第一触摸数据发送给第一显示屏或第二显示屏进行显示,在终端处于折叠状态的情况下第二触摸模块接收第一触摸数据,第二显示屏显示第一触摸数据。According to an embodiment of the present invention, a terminal is provided, including: a detecting module, a first display screen, a second display screen, a first touch module, and a second touch module; the first display screen corresponds to the first touch module, The second display screen is corresponding to the second touch module; the detecting module is configured to detect a current state of the terminal, wherein the state includes: a folded state and an expanded state; and the first touch module is configured to detect the first action on the first touch module Touching the operation and generating the first touch data, sending the first touch data to the first display screen or the second display screen for display when the terminal is in the expanded state, and receiving the second touch module when the terminal is in the folded state The first display screen displays the first touch data.
根据本发明的一个实施例,提供了一种数据显示装置,包括:第一确定模块,用于确定当前终端所处的状态,其中,状态包括:折叠状态,展开状态;第二确定模块,用于根据终端所处的状态确定用于显示第一触摸数据的显示屏;其中,第一触摸数据为第一触摸操作作用于终端的第一触摸模块上所产生的数据,第一触摸模块与终端的第一显示屏对应;显示模块,用于在所确定的显示屏上显示第一触摸数据。According to an embodiment of the present invention, a data display apparatus is provided, including: a first determining module, configured to determine a state in which the current terminal is located, wherein the state includes: a collapsed state, an expanded state; and a second determining module, Determining, according to a state in which the terminal is located, a display screen for displaying the first touch data; wherein the first touch data is data generated by the first touch operation on the first touch module of the terminal, the first touch module and the terminal Corresponding to the first display screen; the display module is configured to display the first touch data on the determined display screen.
根据本发明的又一个实施例,还提供了一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行上述方法。According to still another embodiment of the present invention, there is also provided a storage medium comprising a stored program, wherein the method is executed while the program is running.
根据本发明的又一个实施例,还提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行上述方法。According to still another embodiment of the present invention, there is also provided a processor for running a program, wherein the program executes the above method while it is running.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是实施根据本发明实施例的一种数据显示方法的移动终端的硬件结构框图;1 is a block diagram showing the hardware structure of a mobile terminal that implements a data display method according to an embodiment of the present invention;
图2是根据本发明实施例的数据显示方法的流程图;2 is a flow chart of a data display method according to an embodiment of the present invention;
图3是根据本发明实施例的数据显示装置的结构框图;3 is a block diagram showing the structure of a data display device according to an embodiment of the present invention;
图4是根据本发明实施例的终端的结构示意图;4 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
图5是根据本发明优选实施例的终端处于展开和折叠状态的示意图;Figure 5 is a schematic illustration of the terminal in an unfolded and folded state in accordance with a preferred embodiment of the present invention;
图6是根据本发明优选实施例的终端的结构示意图;6 is a schematic structural diagram of a terminal according to a preferred embodiment of the present invention;
图7是根据本发明实施例的重力与z轴方向的示意图;Figure 7 is a schematic illustration of gravity and z-axis directions in accordance with an embodiment of the present invention;
图8是根据本发明优选实施例的方法的流程示意图;Figure 8 is a flow diagram of a method in accordance with a preferred embodiment of the present invention;
图9是根据本发明优选实施例的终端处于双屏展开状态的示意图;9 is a schematic diagram of a terminal in a dual-screen unfolded state in accordance with a preferred embodiment of the present invention;
图10是根据本发明优选实施例的终端处于折叠状态的示意图。Figure 10 is a schematic illustration of a terminal in a folded state in accordance with a preferred embodiment of the present invention.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
实施例1Example 1
本申请实施例1所提供的方法可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是实施根据本发明实施例的一种数据显示方法的移动终端的硬件结构框图。如图1所示,移动终端10可以包括一个或多个(图中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输装置106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对终端的具体硬件结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method provided in Embodiment 1 of the present application can be executed in a mobile terminal, a computer terminal, or the like. Taking a mobile terminal as an example, FIG. 1 is a hardware structural block diagram of a mobile terminal that implements a data display method according to an embodiment of the present invention. As shown in FIG. 1, the mobile terminal 10 may include one or more (only one shown) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA). A memory 104 for storing data, and a transmission device 106 for communication functions. Those skilled in the art can understand that the structure shown in FIG. 1 is only an illustration, and does not limit the specific hardware structure of the terminal. For example, the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
存储器104可用于存储应用软件的软件程序以及模块,如本发明实施例中的数据显示方法对应的程序指令/模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失 性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store software programs and modules of application software, such as program instructions/modules corresponding to the data display method in the embodiment of the present invention, and the processor 102 executes various programs by running software programs and modules stored in the memory 104. Functional application and data processing, that is, the above method is implemented. Memory 104 may include high speed random access memory and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 104 may further include memory remotely located relative to processor 102, which may be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述的网络的具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。Transmission device 106 is for receiving or transmitting data via a network. Specific examples of the above-described network may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
在本实施例中提供了一种运行于上述移动终端的数据显示方法。需要说明的是,上述终端可以是双屏终端,但并不限于此,比如也可以是具有三个或更多屏幕的终端。图2是根据本发明实施例的数据显示方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a data display method running on the mobile terminal is provided. It should be noted that the foregoing terminal may be a dual screen terminal, but is not limited thereto, and may be, for example, a terminal having three or more screens. FIG. 2 is a flowchart of a data display method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
步骤S202,确定当前终端所处的状态,其中,所述状态包括:折叠状态,展开状态;Step S202, determining a state in which the current terminal is located, where the state includes: a collapsed state, an expanded state;
步骤S204,根据终端所处的状态确定用于显示第一触摸数据的显示屏;其中,第一触摸数据为第一触摸操作作用于终端的第一触摸模块上所产生的数据,第一触摸模块与终端的第一显示屏对应;Step S204, determining a display screen for displaying the first touch data according to the state of the terminal; wherein the first touch data is data generated by the first touch operation on the first touch module of the terminal, the first touch module Corresponding to the first display of the terminal;
步骤S206,在所确定的显示屏上显示第一触摸数据。Step S206, displaying first touch data on the determined display screen.
通过上述步骤,由于根据终端的状态确定显示第一触摸数据的显示屏,在所确定的显示屏上显示第一触摸数据,从而可以根据终端不同的状态确定显示第一触摸数据的方式,因此,增加了终端显示数据的灵活性,改善了用户体验。Through the above steps, since the display screen displaying the first touch data is determined according to the state of the terminal, the first touch data is displayed on the determined display screen, so that the manner of displaying the first touch data can be determined according to different states of the terminal, and therefore, Increased flexibility in terminal display data and improved user experience.
需要说明的是,上述折叠状态为终端的两个显示屏背靠背折叠的状态,上述展开状态为终端的两个显示屏左右放置或上下放置的状态。It should be noted that the folded state is a state in which the two display screens of the terminal are folded back to back, and the unfolded state is a state in which the two display screens of the terminal are placed left and right or placed up and down.
需要说明的是,上述步骤S202可以表现为:通过终端的霍尔元件确定当前终端所处的状态。具体地,可以表现为:在终端的两个显示屏上(或与显示屏对应壳体内)分别设置霍尔元件和磁铁,在检测到霍尔元件与磁铁接近的情况下,确定终端的两个显示屏背靠背折叠,即处于折叠状态;在检测到霍尔元件与磁铁远离的情况下,确定两个显示屏展开,即处于展开状态。当然,也可以采用其他的方式来确定终端所处的状态是展开状态还是折叠状态。It should be noted that the foregoing step S202 may be performed by determining the state of the current terminal through the Hall element of the terminal. Specifically, it can be expressed that: a Hall element and a magnet are respectively disposed on two display screens of the terminal (or in a corresponding housing of the display screen), and two gates are determined when the Hall element is detected to be close to the magnet. The display is folded back to back, ie in a folded state; in the event that the Hall element is detected to be remote from the magnet, it is determined that the two displays are unfolded, ie, in an unfolded state. Of course, other methods can also be used to determine whether the state of the terminal is an expanded state or a folded state.
需要说明的是,上述步骤S204可以表现为:在终端所处的状态为折叠状态的情况下,确定用于显示第一触摸数据的显示屏为终端的第二显示屏;在终端所处的状态为展开状态的情况下,确定用于显示第一触摸数据的显示屏为终端的第一显示屏和/或第二显示屏。即在终端处于折叠状态的情况下,在终端的第二显示屏上显示第一触摸数据;在终端处于展开状态的情况下,可以在只在终端的第一显示屏上显示第一触摸数据,也可以既在第一显示屏上显示第一触摸数据又在第二显示屏上显示第一触摸数据,也可以只在终端的第二显示屏上显示第一触摸数据,从而可以避免现有技术中无论终端处于什么状态下,在第一触摸模块上产生的第一触摸数据只能在第一显示屏上显示的缺陷,即避免了第一触摸模块只能操作第一显示屏不能操作第二显示屏的缺陷,实现了第一触摸模块既可以操作第一显示屏,也可以操作第二显示屏。It should be noted that the foregoing step S204 may be performed to: when the state in which the terminal is in the folded state, determine that the display screen for displaying the first touch data is the second display screen of the terminal; In the case of the expanded state, it is determined that the display screen for displaying the first touch data is the first display screen and/or the second display screen of the terminal. That is, in the case that the terminal is in the folded state, the first touch data is displayed on the second display screen of the terminal; in the case that the terminal is in the expanded state, the first touch data may be displayed on only the first display screen of the terminal, It is also possible to display the first touch data on the first display screen and the first touch data on the second display screen, or display the first touch data only on the second display screen of the terminal, thereby avoiding the prior art. Regardless of the state of the terminal, the first touch data generated on the first touch module can only display the defect on the first display screen, that is, the first touch module can only operate the first display screen and cannot operate the second The defect of the display screen enables the first touch module to operate both the first display screen and the second display screen.
需要说明的是,在终端处于展开状态的情况下,可通过在终端内设置(存储)的显示模式来确定显示方式:方式一,只在终端的第一显示屏上显示第一触摸数据;方式二,既在第一显示屏上显示第一触摸数据又在第二显示屏上显示第一触摸数据;方式三,只在终端的第二显示屏上显示第一触摸数据。其中,终端内设置的每种显示模式对应上述显示方式之一。在终端内设置有多种显示模式的情况下,例如可由用户根据需要切换显示模式,或可由系统根据当前运行的程序、终端所处的环境、当前时间等来选择显示模式。It should be noted that, in the case that the terminal is in the unfolded state, the display mode may be determined by the display mode set (stored) in the terminal: mode one, only the first touch data is displayed on the first display screen of the terminal; Second, the first touch data is displayed on the first display screen and the first touch data is displayed on the second display screen. In the third mode, the first touch data is displayed only on the second display screen of the terminal. Each display mode set in the terminal corresponds to one of the display modes. In the case where a plurality of display modes are set in the terminal, for example, the display mode may be switched by the user as needed, or the display mode may be selected by the system according to the currently running program, the environment in which the terminal is located, the current time, and the like.
需要说明的是,在终端处于折叠状态的情况下,使第一触摸数据在第 二显示屏上进行显示,需要进行坐标变换。因而在终端处于折叠状态的情况下,在确定用于显示第一触摸数据的显示屏为终端的第二显示屏之后,上述方法还可以包括:对第一触摸数据进行坐标变换处理;将经过坐标变换处理后的第一触摸数据发送给与第二显示屏对应的第二触摸模块。其中,在终端的两个屏幕在展开状态下左右放置的情况下,所述坐标变换为坐标左右翻转。It should be noted that, when the terminal is in the folded state, the first touch data is displayed on the second display screen, and coordinate transformation is required. Therefore, after the terminal is in the folded state, after determining that the display screen for displaying the first touch data is the second display screen of the terminal, the method may further include: performing coordinate transformation processing on the first touch data; The first touch data after the conversion process is sent to the second touch module corresponding to the second display screen. Wherein, in the case where the two screens of the terminal are placed left and right in the unfolded state, the coordinates are transformed into coordinates and flipped left and right.
在本发明的一个实施例中,上述步骤S206可以表现为:在终端处于折叠状态的情况下,在未检测到作用于第二触摸模块的第二触摸操作的情况下,在第二显示屏上显示经过坐标变换处理后的第一触摸数据。在第二显示屏上显示经过坐标变换处理后的第一触摸数据之前,需要确定第二触摸模块是否接收到第二触摸操作。In an embodiment of the present invention, the step S206 may be performed as: when the terminal is in the folded state, in the case that the second touch operation on the second touch module is not detected, on the second display screen The first touch data after the coordinate transformation processing is displayed. Before displaying the first touch data after the coordinate transformation processing on the second display screen, it is necessary to determine whether the second touch module receives the second touch operation.
需要说明的是,在检测到上述第二触摸操作的情况下,在第二显示屏上显示第二触摸操作作用于第二触摸模块所产生的触摸数据。换言之,在终端处于折叠状态的情况下,如果同时第一触摸操作和第二触摸操作同时发生,则第二显示屏优先显示第二触摸操作所产生的触摸数据。It should be noted that, in the case that the second touch operation is detected, the touch data generated by the second touch operation on the second touch module is displayed on the second display screen. In other words, in the case where the terminal is in the folded state, if both the first touch operation and the second touch operation occur simultaneously, the second display screen preferentially displays the touch data generated by the second touch operation.
需要说明的是,在确定终端所处的状态为折叠状态的情况下,上述方法还包括:确定第一显示屏处于休眠状态。It should be noted that, in a case where it is determined that the state in which the terminal is in the folded state, the method further includes: determining that the first display screen is in a sleep state.
需要说明的是,确定第一显示屏处于休眠状态的方式可以有多种,比如:预先设置处于休眠状态的显示屏为第一显示屏,也可以通过在终端上安装重力传感器来进行确定,上述重力传感器可以安装在第一显示屏上,也可以安装在第二显示屏上,但并不限于此,比如可以安装在终端上除了第一显示屏和第二显示屏之外的其他的部件上。It should be noted that there may be multiple ways to determine that the first display screen is in a sleep state. For example, the display screen in the sleep state is preset as the first display screen, or may be determined by installing a gravity sensor on the terminal. The gravity sensor may be mounted on the first display or on the second display, but is not limited thereto, and may be mounted on the terminal other than the first display and the second display. .
以下以将重力传感器安装在第一显示屏上为例进行说明,上述重力传感器采集重力方向,以第一显示屏的背面到第一显示屏的正面方向为z轴方向,当重力方向和z轴方向之间的角度为90-180度时认为第一显示屏朝上,此时,第一显示屏不处于休眠状态,当重力方向和z轴方向之间的角度为0-90度时,第一显示屏朝下,此处第一显示屏处于休眠状态。The following is an example in which the gravity sensor is mounted on the first display screen. The gravity sensor collects the direction of gravity, and the front direction of the first display screen is the z-axis direction toward the front direction of the first display screen, and the gravity direction and the z-axis are used. When the angle between the directions is 90-180 degrees, the first display screen is considered upward, and at this time, the first display screen is not in a sleep state, when the angle between the gravity direction and the z-axis direction is 0-90 degrees, A display is facing down, where the first display is in a sleep state.
在本实施例的一个实例中,在确定终端所处的状态为折叠状态的情况下,上述方法还可包括:识别终端的处于朝下状态的显示屏;以及将识别出的处于朝下状态的显示屏指定为第一显示屏。如上所述,可以利用重力传感器识别出终端的哪个显示屏处于朝下状态,继而将该处于朝下状态的显示屏指定为第一显示屏,自然地,与该第一显示屏对应的触摸模块被指定为第一触摸模块,另一显示屏被指定为第二显示屏,与该第二显示屏对应的触摸模块被指定为第二触摸模块。此外,可以理解的是,在用户以折叠状态使用终端的过程中,如果用户将终端上下翻转,那么原先被指定为第二显示屏的显示屏将被指定为第一显示屏。In an example of the embodiment, in the case of determining that the state in which the terminal is in the folded state, the method may further include: identifying a display screen of the terminal in a downward state; and identifying the downwardly facing state The display is designated as the first display. As described above, the gravity sensor can be used to identify which display screen of the terminal is in a downward state, and then the display screen in the downward direction is designated as the first display screen, and naturally, the touch module corresponding to the first display screen Designated as the first touch module, the other display screen is designated as the second display screen, and the touch module corresponding to the second display screen is designated as the second touch module. Further, it can be understood that, in the process of using the terminal in the folded state by the user, if the user flips the terminal upside down, the display screen originally designated as the second display screen will be designated as the first display screen.
需要说明的是,在确定终端所处的状态为折叠状态的情况下,还可以利用光线传感器、距离传感器、摄像头等对第一显示屏进行指定。例如,可将拍摄到人脸的摄像头所在侧的显示屏指定为第一显示屏。It should be noted that, in the case that it is determined that the state in which the terminal is in the folded state, the first display screen may be specified by using a light sensor, a distance sensor, a camera, or the like. For example, the display screen on the side where the camera that photographed the face is located may be designated as the first display screen.
在本实施例的一个实例中,在确定终端所处的状态为折叠状态,且确定用于显示第一触摸数据的显示屏为第二显示屏的情况下,上述方法还包括:使第一显示屏进入灭屏状态。可以理解的是,在不需要由第一显示屏显示第一触摸数据的情况下,可以将第一显示屏熄灭(例如,休眠或下电)。In an example of the embodiment, in a case where it is determined that the state in which the terminal is located is a folded state, and the display screen for displaying the first touch data is determined to be the second display screen, the method further includes: causing the first display The screen enters the off screen state. It will be appreciated that the first display screen may be extinguished (eg, hibernating or powered down) without the need to display the first touch data by the first display screen.
可选地,上述步骤的执行主体可以为上述终端等,但不限于此。Optionally, the execution body of the foregoing steps may be the foregoing terminal or the like, but is not limited thereto.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是终端,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a terminal, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
实施例2Example 2
在本实施例中还提供了一种数据显示装置,该装置用于实现上述实施 例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”是可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能或可被构想的。In the embodiment, a data display device is provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be described again. As used hereinafter, the term "module" is a combination of software and/or hardware that can perform a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible or conceivable.
图3是根据本发明实施例的数据显示装置的结构框图,如图3所示,该装置包括:3 is a structural block diagram of a data display device according to an embodiment of the present invention. As shown in FIG. 3, the device includes:
第一确定模块32,配置为确定当前终端所处的状态,其中,所述状态包括:折叠状态,展开状态;The first determining module 32 is configured to determine a state in which the current terminal is located, where the state includes: a folded state, an expanded state;
第二确定模块34,与上述第一确定模块32连接,配置为根据终端所处的状态确定用于显示第一触摸数据的显示屏;其中,第一触摸数据为第一触摸操作作用于终端的第一触摸模块上所产生的数据,第一触摸模块与终端的第一显示屏对应;The second determining module 34 is connected to the first determining module 32, and configured to determine a display screen for displaying the first touch data according to the state of the terminal; wherein the first touch data is a first touch operation acting on the terminal The data generated on the first touch module, the first touch module corresponding to the first display screen of the terminal;
显示模块36,与第二确定模块34连接,配置为在所确定的显示屏上显示第一触摸数据。The display module 36 is coupled to the second determining module 34 and configured to display the first touch data on the determined display screen.
通过上述装置,由于通过终端的状态确定显示第一触摸数据的显示屏,在所确定的显示屏上显示第一触摸数据,从而可以根据终端不同的状态确定显示第一触摸数据的方式,因此,增加了终端显示数据的灵活性,改善了用户体验。With the above device, since the display screen displaying the first touch data is determined by the state of the terminal, the first touch data is displayed on the determined display screen, so that the manner of displaying the first touch data can be determined according to different states of the terminal, and therefore, Increased flexibility in terminal display data and improved user experience.
需要说明的是,上述第二确定模块34可以包括:第一确定单元,配置为在终端所处的状态为折叠状态的情况下,确定用于显示第一触摸数据的显示屏为终端的第二显示屏;第二确定单元,配置为在终端所处的状态为展开状态的情况下,确定用于显示第一触摸数据的显示屏为终端的第一显示屏和/或第二显示屏。即在终端处于折叠状态的情况下,可以在终端的第二显示屏上显示第一触摸数据;在终端处于展开状态的情况下,可以在只在终端的第一显示屏上显示第一触摸数据,也可以既在第一显示屏上显示第一触摸数据又在第二显示屏上显示第一触摸数据,也可以只在终端的第二显示屏上显示第一触摸数据,从而可以避免现有技术中无论终端处于 什么状态下,在第一触摸模块上产生的第一触摸数据只能在第一显示屏上显示的缺陷,即避免了第一触摸模块只能操作第一显示屏不能操作第二显示屏的缺陷,实现了第一触摸模块既可以操作第一显示屏,也可以操作第二显示屏。It should be noted that the foregoing second determining module 34 may include: a first determining unit configured to determine, when the state of the terminal is in a folded state, that the display screen for displaying the first touch data is the second terminal of the terminal a second determining unit configured to determine, when the state in which the terminal is in the expanded state, the first display screen and/or the second display screen in which the display screen for displaying the first touch data is the terminal. That is, in the case that the terminal is in the folded state, the first touch data may be displayed on the second display screen of the terminal; in the case that the terminal is in the expanded state, the first touch data may be displayed on only the first display screen of the terminal. The first touch data may be displayed on the first display screen and the first touch data may be displayed on the second display screen, or the first touch data may be displayed only on the second display screen of the terminal, thereby avoiding existing In the technology, no matter what state the terminal is in, the first touch data generated on the first touch module can only display the defect on the first display screen, that is, the first touch module can only operate the first display screen and cannot operate. The defect of the two display screens enables the first touch module to operate both the first display screen and the second display screen.
需要说明的是,在终端处于展开状态的情况下,可通过在终端内设置的显示模式来确定显示方式:方式一,只在终端的第一显示屏上显示第一触摸数据;方式二,既在第一显示屏上显示第一触摸数据又在第二显示屏上显示第一触摸数据;方式三,只在终端的第二显示屏上显示第一触摸数据。其中,终端内设置的每种显示模式对应上述显示方式之一。It should be noted that, when the terminal is in the expanded state, the display mode may be determined by the display mode set in the terminal: mode one, only the first touch data is displayed on the first display screen of the terminal; Displaying the first touch data on the first display screen and displaying the first touch data on the second display screen; and manner 3, displaying the first touch data only on the second display screen of the terminal. Each display mode set in the terminal corresponds to one of the display modes.
在本发明的一个实施例中,上述装置还可以包括:处理模块,配置为在终端所处的状态为折叠状态的情况下,对第一触摸数据进行坐标变换处理;发送模块,与上述处理模块连接,且配置为将经过坐标变换处理后的第一触摸数据发送给与第二显示屏对应的第二触摸模块。In an embodiment of the present invention, the apparatus may further include: a processing module configured to perform coordinate transformation processing on the first touch data when the state of the terminal is in a folded state; the sending module, and the processing module Connected, and configured to send the first touch data processed by the coordinate transformation to the second touch module corresponding to the second display screen.
需要说明的是,上述显示模块36还配置为在未检测到作用于第二触摸模块的第二触摸操作的情况下,在第二显示屏上显示经过坐标变换处理后的第一触摸数据。It should be noted that the display module 36 is further configured to display the first touch data after the coordinate transformation processing on the second display screen without detecting the second touch operation acting on the second touch module.
在本发明的一个实施例中,上述装置还可以包括:第三确定模块,配置为在确定终端所处的状态为折叠状态的情况下,确定第一显示屏处于休眠状态。In an embodiment of the present invention, the apparatus may further include: a third determining module configured to determine that the first display screen is in a sleep state in a case where it is determined that the state of the terminal is a folded state.
在本发明的一个实施例中,上述装置还可以包括:指定模块,配置在终端所处的状态为折叠状态的情况下,识别终端的处于朝下状态的显示屏,并将识别出的处于朝下状态的显示屏指定为第一显示屏。In an embodiment of the present invention, the apparatus may further include: a designating module configured to identify a display screen of the terminal in a downward state when the state of the terminal is in a folded state, and to identify the The lower display is designated as the first display.
需要说明的是,上述装置可以位于终端中,比如双屏终端中,但并不限于此。It should be noted that the foregoing apparatus may be located in a terminal, such as a dual screen terminal, but is not limited thereto.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。此 外,第一和第二触摸模块可以是与相应的显示屏叠加在一起的触摸屏、触摸面板等。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination. The forms are located in different processors. Further, the first and second touch modules may be touch screens, touch panels, and the like that are superimposed with the corresponding display screens.
实施例3Example 3
本发明实施例还提供了一种终端,图4是根据本发明实施例提供的终端的结构示意图。如图4所示,该终端包括:检测模块42,第一显示屏44,第二显示屏46,第一触摸模块48,第二触摸模块410。其中,第一显示屏44和第一触摸模块48对应,第二显示屏46与第二触摸模块410对应。The embodiment of the present invention further provides a terminal, and FIG. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 4, the terminal includes a detecting module 42, a first display screen 44, a second display screen 46, a first touch module 48, and a second touch module 410. The first display screen 44 corresponds to the first touch module 48, and the second display screen 46 corresponds to the second touch module 410.
上述检测模块42与上述第一显示屏44和第二显示屏46连接,且配置为检测终端当前的状态,其中,状态包括:折叠状态和展开状态。The detecting module 42 is connected to the first display screen 44 and the second display screen 46, and is configured to detect the current state of the terminal, wherein the state includes a folded state and an expanded state.
上述第一触摸模块48与上述第一显示屏44和第二触摸模块410连接,配置为检测作用于第一触摸模块48的第一触摸操作并产生第一触摸数据,在终端处于展开状态的情况下将第一触摸数据发送给第一显示屏44或第二显示屏46进行显示,以及在终端处于折叠状态的情况下第二触摸模块410接收第一触摸数据,上述第二显示屏46显示第一触摸数据。The first touch module 48 is connected to the first display screen 44 and the second touch module 410, and configured to detect a first touch operation applied to the first touch module 48 and generate first touch data, where the terminal is in an unfolded state. The first touch data is sent to the first display screen 44 or the second display screen 46 for display, and the second touch module 410 receives the first touch data when the terminal is in the folded state, and the second display screen 46 displays the first touch data. One touch data.
通过上述终端,由于通过终端的状态确定显示第一触摸数据的显示屏,在所确定的显示屏上显示第一触摸数据,从而可以根据终端不同的状态确定显示第一触摸数据的方式,因此,增加了终端显示数据的灵活性,改善了用户体验。Through the above terminal, since the display screen displaying the first touch data is determined by the state of the terminal, the first touch data is displayed on the determined display screen, so that the manner of displaying the first touch data can be determined according to different states of the terminal, and therefore, Increased flexibility in terminal display data and improved user experience.
需要说明的是,在终端处于展开状态的情况下,第一触摸模块48将第一触摸数据发送给第二显示屏46进行显示也可以表现为:第一触摸模块48将第一触摸数据发送给第二触摸模块410,第二触摸模块410将接收到的第一触摸数据直接发送给第二显示屏进行显示;但并不限于此。It should be noted that, when the terminal is in the unfolded state, the first touch module 48 sends the first touch data to the second display screen 46 for display. The first touch module 48 may send the first touch data to the first touch module 48. The second touch module 410 sends the received first touch data directly to the second display screen for display; but is not limited thereto.
通过上述终端,可以实现在终端处于折叠状态的情况下,在终端的第二显示屏46上显示第一触摸数据;在终端处于展开状态的情况下,可以只在终端的第一显示屏44上显示第一触摸数据,也可以既在第一显示屏44上显示第一触摸数据又在第二显示屏46上显示第一触摸数据,也可以 只在终端的第二显示屏46上显示第一触摸数据,进而可以避免现有技术中无论终端处于什么状态下,在第一触摸模块上产生的第一触摸数据只能在第一显示屏44上显示的缺陷,即避免了第一触摸模块48只能操作第一显示屏44不能操作第二显示屏46的缺陷,实现了第一触摸模块既可以操作第一显示屏44,也可以操作第二显示屏46。Through the terminal, it is possible to display the first touch data on the second display screen 46 of the terminal when the terminal is in the folded state; and in the case that the terminal is in the expanded state, it may be only on the first display screen 44 of the terminal. The first touch data is displayed, and the first touch data may be displayed on the first display screen 44 and the first touch data may be displayed on the second display screen 46, or may be displayed only on the second display screen 46 of the terminal. Touching the data, thereby avoiding the defect that the first touch data generated on the first touch module can only be displayed on the first display screen 44 regardless of the state of the terminal in the prior art, that is, the first touch module 48 is avoided. Only the defect that the first display screen 44 cannot operate the second display screen 46 can be operated, and the first touch module can operate the first display screen 44 or the second display screen 46.
需要说明的是,在终端处于展开状态的情况下,可通过在终端内设置的显示模式来确定显示方式:方式一,只在终端的第一显示屏上显示第一触摸数据;方式二,既在第一显示屏上显示第一触摸数据又在第二显示屏上显示第一触摸数据;方式三,只在终端的第二显示屏上显示第一触摸数据。其中,终端内设置的每种显示模式对应上述显示方式之一。It should be noted that, when the terminal is in the expanded state, the display mode may be determined by the display mode set in the terminal: mode one, only the first touch data is displayed on the first display screen of the terminal; Displaying the first touch data on the first display screen and displaying the first touch data on the second display screen; and manner 3, displaying the first touch data only on the second display screen of the terminal. Each display mode set in the terminal corresponds to one of the display modes.
需要说明的是,上述检测模块42可以是霍尔元件,但并不限于此。It should be noted that the above detection module 42 may be a Hall element, but is not limited thereto.
需要说明的是,上述第一触摸模块48,还配置为在终端处于折叠状态的情况下,对第一触摸数据进行坐标变换处理,以及将经过坐标变换处理后的第一触摸数据发送给第二触摸模块410。It should be noted that, the first touch module 48 is further configured to perform coordinate transformation processing on the first touch data and transmit the first touch data after the coordinate transformation processing to the second when the terminal is in the folded state. Touch module 410.
需要说明的是,上述第二触摸模块410,还配置为检测作用于第二触摸模块410的第二触摸操作并产生第二触摸数据,以及在终端处于展开状态的情况下将第二触摸数据发送给第二显示屏46进行显示;第二显示屏46,还配置为显示第二触摸数据。It should be noted that the second touch module 410 is further configured to detect a second touch operation applied to the second touch module 410 and generate second touch data, and send the second touch data if the terminal is in an expanded state. The second display screen 46 is displayed; the second display screen 46 is further configured to display the second touch data.
需要说明的是,上述第二触摸模块410还配置为在接收到经过坐标变换处理后的第一触摸数据的情况下,判断是否检测到第二触摸数据,在判断结果为否的情况下,将经过坐标变换处理后的第一触摸数据发送给第二显示屏46。It should be noted that the second touch module 410 is further configured to determine whether the second touch data is detected when the first touch data after the coordinate transformation processing is received, and if the determination result is negative, The first touch data processed by the coordinate transformation is sent to the second display screen 46.
需要说明的是,上述终端还可以包括:重力传感器,配置为确定第一显示屏处于休眠状态。It should be noted that the foregoing terminal may further include: a gravity sensor configured to determine that the first display screen is in a sleep state.
需要说明的是,上述重力传感器可以与上述第一显示屏44连接,也可以是上述第二显示屏46连接,但并不限于此。It should be noted that the gravity sensor may be connected to the first display screen 44 or the second display screen 46, but is not limited thereto.
需要说明的是,上述终端可以是双屏终端,但并不限于此。It should be noted that the foregoing terminal may be a dual screen terminal, but is not limited thereto.
实施例4Example 4
本发明的实施例还提供了一种存储介质,该存储介质包括存储的程序,其中,上述程序运行时执行上述任一项所述的方法。Embodiments of the present invention also provide a storage medium including a stored program, wherein the program described above executes the method of any of the above.
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行实施例1中的方法的步骤。Alternatively, in the present embodiment, the above storage medium may be set to store steps for performing the method in Embodiment 1.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
本发明的实施例还提供了一种处理器,该处理器配置为运行程序,其中,该程序运行时执行上述任一项方法中的步骤。Embodiments of the present invention also provide a processor configured to execute a program, wherein the program executes the steps of any of the above methods when executed.
可选地,在本实施例中,上述程序配置为执行上述实施例1中的方法的步骤。Optionally, in this embodiment, the foregoing program is configured to perform the steps of the method in Embodiment 1 above.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
为了更好地理解本发明实施例,以下结合优选的实施例对本发明做进一步解释。In order to better understand the embodiments of the present invention, the present invention is further explained in conjunction with the preferred embodiments.
图5是根据本发明优选实施例提供的终端处于展开和折叠状态的示意图,其中为了清楚起见,在图5的右图中以展开图的形式示出处于折叠状态的两个显示屏。Figure 5 is a schematic illustration of a terminal in an unfolded and folded state, in accordance with a preferred embodiment of the present invention, wherein for clarity, the two display screens in a collapsed state are shown in expanded view in Figure 5 .
如图5所示,本实施例中的终端为双屏手机。双屏手机具有两个显示屏607、608,两个显示屏的规格尺寸相同,且均具备触摸屏。两个显示屏607、608可以展开并排放置,也可以折叠背靠背放置。当两个显示屏607、608展开并排放置时,第一触摸屏操作第一显示屏608,第二触摸屏操作第二显示屏607;当两个显示屏607、608折叠背靠背放置时,第一触摸屏可以操作第二显示屏607,或者第二触摸屏可以操作第一显示屏608。As shown in FIG. 5, the terminal in this embodiment is a dual-screen mobile phone. The dual-screen phone has two display screens 607, 608, both of which are the same size and have a touch screen. The two display screens 607, 608 can be deployed side by side or folded back to back. When the two display screens 607, 608 are unfolded and placed side by side, the first touch screen operates the first display screen 608, and the second touch screen operates the second display screen 607; when the two display screens 607, 608 are folded back to back, the first touch screen can The second display screen 607 is operated, or the second touch screen can operate the first display screen 608.
如图5所示,当两个显示屏607、608展开并排放置时,第一触摸屏和第二触摸屏的采集手指坐标的坐标起始点(0,0)都是从屏幕的左上角开始。当两个显示屏607、608折叠背靠背放置,且第一显示屏608显示内容,用第二触摸屏进行操作时,第一触摸屏的采集手指坐标的坐标起始点(0,0)是从屏幕的左上角开始,第二触摸屏的采集手指坐标的坐标起始点(0,0)是从屏幕的右上角开始,即,第一触摸屏与第二触摸屏的坐标左右镜像处理,此时第二触摸屏上每个像素点与第一触摸屏上每个像素点正好一一对应。As shown in FIG. 5, when the two display screens 607, 608 are unfolded side by side, the coordinate starting points (0, 0) of the first finger screen and the second touch screen are all from the upper left corner of the screen. When the two display screens 607, 608 are folded back to back, and the first display screen 608 displays content, when the second touch screen is operated, the coordinate starting point (0, 0) of the first finger touch screen is from the upper left of the screen. Starting from the corner, the coordinate starting point (0, 0) of the collected finger coordinates of the second touch screen is from the upper right corner of the screen, that is, the coordinates of the first touch screen and the second touch screen are mirrored, and each time on the second touch screen The pixel points have exactly one-to-one correspondence with each pixel on the first touch screen.
双屏手机的两个屏幕中间由转轴610连接,通过围绕转轴610旋转实现两个屏幕背靠背折叠和左右放置的展开,如图5所示。The two screens of the dual screen mobile phone are connected by a rotating shaft 610, and two screen back-to-back folding and left and right positioning deployment are realized by rotating around the rotating shaft 610, as shown in FIG.
双屏手机具备以下器件:霍尔元件,第一显示屏608,第二显示屏607,第一触摸屏,第二触摸屏,重力加速度传感器等。第一显示屏608和第一触摸屏叠加在一起,第二显示屏607和第二触摸屏叠加在一起。The dual screen mobile phone has the following components: a Hall element, a first display screen 608, a second display screen 607, a first touch screen, a second touch screen, a gravitational acceleration sensor, and the like. The first display screen 608 and the first touch screen are superimposed, and the second display screen 607 and the second touch screen are superimposed.
霍尔元件有两个不同的状态,一个表征双屏处于折叠状态,一个表征双屏处于展开状态。The Hall element has two different states, one characterizing that the dual screen is in a folded state and one characterizing that the dual screen is in an expanded state.
双屏展开状态下,第一显示模块将显示数据发送给第一显示屏608且第二显示模块将显示数据发送给第二显示屏607,第一显示模块执行第一触摸模块的触摸操作(即,第一显示模块使第一显示屏608显示第一触摸模块(第一触摸屏)被操作时产生的数据),第二显示模块执行第二触摸模块的触摸操作。In the dual screen unfolding state, the first display module sends the display data to the first display screen 608 and the second display module sends the display data to the second display screen 607, and the first display module performs the touch operation of the first touch module (ie, The first display module causes the first display screen 608 to display data generated when the first touch module (first touch screen) is operated, and the second display module performs a touch operation of the second touch module.
当双屏进入折叠状态时,使第一显示屏608进入休眠状态,第一触摸模块将坐标左右翻转,第一触摸模块的翻转后的坐标(即,第一触摸屏的翻转后的坐标)与第二触摸模块的坐标(即,第二触摸屏的坐标)一一对应,第一触摸模块将触摸数据发送给第二触摸模块。When the dual screen enters the folded state, the first display screen 608 is put into a sleep state, the first touch module flips the coordinates to the left and right, and the reversed coordinates of the first touch module (ie, the coordinates of the first touch screen after the flip) and the first The coordinates of the two touch modules (ie, the coordinates of the second touch screen) are in one-to-one correspondence, and the first touch module transmits the touch data to the second touch module.
接下来,第二触摸屏模块判断第二触摸屏模块和第一触摸屏模块的触摸数据,当第二触摸屏模块无采集到触摸数据时,第二显示模块执行第一触摸模块的触摸操作。Next, the second touch screen module determines touch data of the second touch screen module and the first touch screen module, and when the second touch screen module does not collect touch data, the second display module performs a touch operation of the first touch module.
重力加速度传感器判断第二显示屏607处于朝下还是朝上状态。当第二显示屏607处于朝上状态时,执行上述操作。当第二显示屏607处于朝下状态时,第二显示模块将显示数据发送给第一显示模块,第二显示模块不发送数据给第二显示屏607,第二显示屏607进入灭屏状态,第一触摸模块坐标恢复默认,第二触摸模块中坐标左右翻转,并将触摸数据发送给第一触摸模块。第一触摸模块判断第一触摸屏模块和第二触摸屏模块的触摸数据,当第一触摸屏模块无采集到触摸数据时,第一显示模块执行第二触摸模块的触摸操作。The gravity acceleration sensor determines whether the second display screen 607 is in a downward or upward state. When the second display screen 607 is in the upward state, the above operation is performed. When the second display screen 607 is in the downward state, the second display module sends the display data to the first display module, the second display module does not send data to the second display screen 607, and the second display screen 607 enters the off-screen state. The first touch module coordinates are restored by default, the coordinates of the second touch module are flipped left and right, and the touch data is sent to the first touch module. The first touch module determines the touch data of the first touch screen module and the second touch screen module, and when the first touch screen module does not collect the touch data, the first display module performs a touch operation of the second touch module.
图6是根据本发明优选实施例提供的终端的结构示意图。具体的,如图6所示,该终端(双屏手机)包括中央处理单元601、霍尔元件,第一显示模块604,第二显示模块603,第一触摸模块606,第二触摸模块605,第一显示屏608,第二显示屏607,重力传感器等。FIG. 6 is a schematic structural diagram of a terminal according to a preferred embodiment of the present invention. Specifically, as shown in FIG. 6, the terminal (dual-screen mobile phone) includes a central processing unit 601, a Hall element, a first display module 604, a second display module 603, a first touch module 606, and a second touch module 605. The first display screen 608, the second display screen 607, a gravity sensor, and the like.
中央处理单元601与霍尔元件,第一显示模块604,第二显示模块603,第一触摸模块606,第二触摸模块605,第一显示屏608,第二显示屏607,重力传感器连接。The central processing unit 601 is connected to the Hall element, the first display module 604, the second display module 603, the first touch module 606, the second touch module 605, the first display screen 608, the second display screen 607, and the gravity sensor.
霍尔元件602设置在一块显示屏(或与该显示屏对应的壳体)中且与设置在另一块显示屏(或相应的壳体)中的磁铁(未示出)相配合。霍尔元件602根据与磁铁接近与远离分为两个状态,接近状态下两块显视屏背靠背折叠,远离状态下两块显视屏从背靠背状态展开。The Hall element 602 is disposed in a display screen (or a housing corresponding to the display screen) and mates with a magnet (not shown) disposed in another display screen (or a corresponding housing). The Hall element 602 is divided into two states according to the proximity and the distance from the magnet. In the approach state, the two display screens are folded back to back, and the two display screens are deployed from the back-to-back state in the away state.
在本实施例的一个实例中,在折叠状态下,霍尔元件602与磁铁接近,两个显示屏背靠背折叠,霍尔元件输出低电位电压(低电平),低电位电压状态为双屏手机折叠状态;在展开状态下,霍尔元件与磁铁远离,两个显示屏处于展开状态,霍尔元件输出高电位电压(高电平),高电位电压状态为双屏手机展开状态。In an example of the embodiment, in the folded state, the Hall element 602 is close to the magnet, the two displays are folded back to back, the Hall element outputs a low potential voltage (low level), and the low potential voltage state is a dual screen mobile phone. Folded state; in the unfolded state, the Hall element is away from the magnet, the two display screens are in an unfolded state, the Hall element outputs a high potential voltage (high level), and the high potential voltage state is a dual-screen mobile phone unfolded state.
第二显示模块603根据霍尔元件状态获得折叠状态或者展开状态。在折叠状态下,第二显示模块603将显示数据发送给第二显示屏607,第二显示屏607点亮显示。The second display module 603 obtains a folded state or an expanded state according to the state of the Hall element. In the folded state, the second display module 603 transmits the display data to the second display screen 607, and the second display screen 607 lights up the display.
在本实施例的一个实例中,当第二显示模块603收到整机休眠信息时,第二显示模块603停止向第二显示屏607发送数据,第二显示模块603进入休眠状态,第二显示屏607灭屏。In an example of the embodiment, when the second display module 603 receives the sleep information of the whole machine, the second display module 603 stops sending data to the second display screen 607, and the second display module 603 enters a sleep state, and the second display Screen 607 is off.
在本实施例的一个实例中,在展开状态下,第二显示模块603将显示数据发送给第二显示屏607,第一显示模块604将显示数据发送给第一显示屏608。In an example of the embodiment, in the unfolded state, the second display module 603 transmits the display data to the second display screen 607, and the first display module 604 transmits the display data to the first display screen 608.
中央处理器601根据用户在触摸屏上的操作,根据双屏的折叠或者展开状态,生成显示数据。在双屏处于展开状态时,生成第二显示屏607的显示数据和第一显示屏608的显示数据,中央处理器601将第二显示屏607的显示数据和第一显示屏608的显示数据分别发送给第二显示模块603和第一显示模块604。The central processing unit 601 generates display data according to the folding or unfolding state of the dual screen according to the operation of the user on the touch screen. When the dual screen is in the unfolded state, the display data of the second display screen 607 and the display data of the first display screen 608 are generated, and the central processing unit 601 separates the display data of the second display screen 607 and the display data of the first display screen 608, respectively. The second display module 603 and the first display module 604 are sent.
第二触摸模块605采集第二显示屏607上用户手指触摸数据。The second touch module 605 collects user finger touch data on the second display screen 607.
第二触摸模块605采集用户触摸数据,包括用户点击、双击、划动的数据,将坐标数据发送给中央处理器601,中央处理器601执行相应的操作。The second touch module 605 collects user touch data, including data clicked, double-clicked, and swiped by the user, and sends coordinate data to the central processing unit 601, and the central processing unit 601 performs corresponding operations.
在本实施例的一个实例中,双屏折叠状态下,中央处理器601将执行操作后的显示数据发送给第二显示模块603。In an example of the embodiment, in the dual screen folding state, the central processing unit 601 transmits the display data after the operation is performed to the second display module 603.
在本实施例的一个实例中,双屏展开状态下,中央处理器601将执行操作后的显示数据发送给第二显示模块603和第一显示模块604。In an example of the embodiment, in the dual-screen expansion state, the central processing unit 601 transmits the display data after the operation is performed to the second display module 603 and the first display module 604.
在本实施例的一个实例中,第一触摸模块606采集第一显示屏608上用户手指触摸数据,当第二显示模块603收到霍尔元件602提供的双屏进入折叠状态的信息时,第一触摸模块606中坐标数据左右翻转,如图5所示。In an example of the embodiment, the first touch module 606 collects user finger touch data on the first display screen 608, and when the second display module 603 receives the information that the dual screen provided by the Hall element 602 enters the folded state, the first The coordinate data in a touch module 606 is flipped left and right, as shown in FIG.
在本实施例的一个实例中,当两个显示屏处于展开状态时,第二触摸模块605和第一触摸模块606的坐标左上角都是(0,0),右下角都是(x,y);当两个显示屏处于折叠状态时,第二触摸模块605的坐标左上角是(0,0),右下角是(x,y),第一触摸模块606的坐标左上角是(x,0),右下 角是(0,y)。In an example of the embodiment, when the two display screens are in the unfolded state, the upper left corners of the coordinates of the second touch module 605 and the first touch module 606 are both (0, 0), and the lower right corner is (x, y). When the two display screens are in the folded state, the upper left corner of the coordinates of the second touch module 605 is (0, 0), and the lower right corner is (x, y), and the upper left corner of the coordinates of the first touch module 606 is (x, 0), the lower right corner is (0, y).
在折叠状态下,第一触摸模块606将采集的触摸数据发送给第二触摸模块605,第二触摸模块605判断当前第二触摸模块605有无手指触摸数据,若有,第二触摸模块605将触摸数据发送给第二显示模块603,第二显示模块603执行触摸操作,若无,第二触摸模块605将第一触摸模块606触摸数据发送给第二显示模块603,第二显示模块603执行触摸操作。In the folded state, the first touch module 606 sends the collected touch data to the second touch module 605, and the second touch module 605 determines whether the current second touch module 605 has finger touch data, and if so, the second touch module 605 The touch data is sent to the second display module 603, and the second display module 603 performs a touch operation. If not, the second touch module 605 sends the first touch module 606 touch data to the second display module 603, and the second display module 603 performs a touch. operating.
第二显示屏607接收第二显示模块603的显示数据进行显示。The second display screen 607 receives the display data of the second display module 603 for display.
中央处理器601向第二显示屏607上电,包括给显示屏IC(Integrated Circuit)上电,提供IC各个管脚所需电压和电流,给显示屏背光上电,提供背光电路所需电压和电流。第二显示模块603将显示数据发给给显示屏IC,IC驱动显示屏电路,实现显示成像。The central processing unit 601 powers up the second display screen 607, including powering up the display circuit IC (Integrated Circuit), providing voltage and current required for each pin of the IC, powering up the backlight of the display screen, and providing the voltage required for the backlight circuit and Current. The second display module 603 sends the display data to the display IC, and the IC drives the display circuit to realize display imaging.
第一显示屏608接收第一显示模块604显示数据进行显示。The first display screen 608 receives the first display module 604 to display data for display.
中央处理器601向第一显示屏上电,包括给显示屏IC上电,提供IC各个管脚所需电压和电流,给显示屏背光上电,提供背光电路所需电压和电流,第一显示模块604将显示数据发给给显示屏IC,IC驱动显示屏电路,实现显示成像。The central processing unit 601 powers up the first display screen, including powering up the display IC, providing voltage and current required for each pin of the IC, powering up the backlight of the display, providing voltage and current required by the backlight circuit, and displaying the first display Module 604 sends the display data to the display IC, which drives the display circuit to effect display imaging.
重力传感器609采集重力方向。图7是根据本发明实施例提供的重力与z轴方向的示意图。在图7中,重力方向为g的方向,α为重力方向与z轴方向的夹角。重力传感器609安装于第二显示屏607上,以第二显示屏607的背面到显示屏的正面方向为z轴方向。当角度α为90-180度时为第二显示屏607朝上,当角度α为0-90度时为第二显示屏607朝下状态。 Gravity sensor 609 collects the direction of gravity. 7 is a schematic diagram of gravity and z-axis directions provided in accordance with an embodiment of the present invention. In Fig. 7, the direction of gravity is the direction of g, and α is the angle between the direction of gravity and the direction of the z-axis. The gravity sensor 609 is mounted on the second display screen 607 with the z-axis direction from the back of the second display screen 607 to the front side of the display screen. When the angle α is 90-180 degrees, the second display screen 607 faces upward, and when the angle α is 0-90 degrees, the second display screen 607 faces downward.
在本实施例的一个实例中,在双屏折叠状态下,第二显示屏607朝上时,第一触摸模块606采集第一显示屏608上用户手指触摸数据,第一触摸模块606采集的触摸数据发送给第二触摸模块605。第二触摸模块605判断当前第二触摸模块605有无手指触摸数据,若有,第二触摸模块605将触摸数据发送给第二显示模块603,第二显示模块603执行触摸操作, 若无,第二触摸模块605将第一触摸模块606的触摸数据发送给第二显示模块603,第二显示模块603执行触摸操作。当第二显示屏607朝下时,第二显示模块603将显示数据发送给第一显示模块604,第二显示模块603不发送数据给第二显示屏607,第二显示屏607进入灭屏状态,第一触摸模块606坐标恢复默认,第二触摸模块605中坐标左右翻转,并将触摸数据发送给第一触摸模块606。第一触摸模块606判断第一触摸模块606和第二触摸模块605的触摸数据,当第一触摸模块606无采集到触摸数据时,第一显示模块604执行第二触摸模块605的触摸操作。In an example of the embodiment, in the dual-screen folding state, when the second display screen 607 is facing upward, the first touch module 606 collects user finger touch data on the first display screen 608, and the touch collected by the first touch module 606 The data is sent to the second touch module 605. The second touch module 605 determines whether the current second touch module 605 has finger touch data, and if so, the second touch module 605 sends the touch data to the second display module 603, and the second display module 603 performs a touch operation, if not, the first The two touch module 605 transmits the touch data of the first touch module 606 to the second display module 603, and the second display module 603 performs a touch operation. When the second display screen 607 faces downward, the second display module 603 sends the display data to the first display module 604, the second display module 603 does not send data to the second display screen 607, and the second display screen 607 enters the screen-off state. The first touch module 606 coordinates are restored by default, the coordinates of the second touch module 605 are flipped left and right, and the touch data is sent to the first touch module 606. The first touch module 606 determines touch data of the first touch module 606 and the second touch module 605. When the first touch module 606 does not collect touch data, the first display module 604 performs a touch operation of the second touch module 605.
本发明优选实施例还提供了一种方法。图8是根据本发明优选实施例提供的方法的流程示意图,如图8所示,该方法包括步骤S801至S803。A preferred embodiment of the invention also provides a method. FIG. 8 is a schematic flow chart of a method according to a preferred embodiment of the present invention. As shown in FIG. 8, the method includes steps S801 to S803.
步骤S801:根据霍尔元件判断双屏是否处于折叠状态。Step S801: Determine whether the dual screen is in a folded state according to the Hall element.
当两个显示屏处于折叠状态时,霍尔元件与磁铁接近,霍尔元件输出低电位电压(低电平),低电位电压状态为双屏手机折叠状态;当两个显示屏处于展开状态时,霍尔元件与磁铁远离,霍尔元件输出高电位电压(高电平),高电位电压状态为双屏手机展开状态。中央处理器根据霍尔元件输出电平的高低判断双屏处于折叠或者展开状态。When the two display screens are in a folded state, the Hall element is close to the magnet, the Hall element outputs a low potential voltage (low level), and the low potential voltage state is a folded state of the dual screen mobile phone; when the two display screens are in an unfolded state The Hall element is away from the magnet, the Hall element outputs a high potential voltage (high level), and the high potential voltage state is a dual-screen mobile phone unfolding state. The central processing unit determines whether the dual screen is in a folded or unfolded state according to the level of the output level of the Hall element.
步骤S802:在折叠状态下,第一显示屏进入灭屏待机状态,第一触摸模块坐标左右翻转,采集手指触摸数据并提供给第二触摸模块。Step S802: In the folded state, the first display screen enters the off-screen standby state, the first touch module coordinates are flipped left and right, and the finger touch data is collected and provided to the second touch module.
中央处理器采集到霍尔元件处于低电位电压(低电平)状态,此时双屏处于折叠状态。中央处理器将第一显示屏下电或称为断电,包括将显示屏IC下电,将提供IC各个管脚所需电压和电流下电,给显示屏背光下电,使第一显示屏进入灭屏状态。然而,此时手指对第一显示屏(即,第一触摸屏)的触摸操作(点击、双击、划动等)仍可被第一触摸模块收集。The central processing unit collects the Hall element in a low potential voltage (low level) state, and the dual screen is in a folded state. The central processor powers off or de-energizes the first display, including powering down the display IC, and powering down the voltage and current required for each pin of the IC, and powering down the backlight of the display to make the first display Enter the screen off state. However, at this time, a touch operation (click, double tap, swipe, etc.) of the finger on the first display screen (ie, the first touch screen) can still be collected by the first touch module.
在折叠状态下,第一触摸模块中坐标数据左右翻转,第一触摸模块采集第一显示屏上用户手指触摸数据,第二触摸模块的坐标左上角是(0,0),右下角是(x,y),第一触摸模块的坐标左上角是(x,0),右下角是(0,y)。In the folded state, the coordinate data in the first touch module is flipped left and right, and the first touch module collects the user's finger touch data on the first display screen, the upper left corner of the coordinate of the second touch module is (0, 0), and the lower right corner is (x) , y), the upper left corner of the coordinates of the first touch module is (x, 0), and the lower right corner is (0, y).
步骤S803:第二触摸模块判断第二触摸模块是否有触摸操作,若有,执行第二触摸模块的触摸操作,若无,执行第一触摸模块的触摸操作。Step S803: The second touch module determines whether the second touch module has a touch operation, and if so, performs a touch operation of the second touch module, and if not, performs a touch operation of the first touch module.
折叠状态下,第一触摸模块采集的触摸数据发送给第二触摸模块,第二触摸模块判断当前第二触摸模块有无手指触摸数据,若有,第二触摸模块将触摸数据发送给第二显示模块,第二显示模块执行触摸操作,若无,第二触摸模块将第一触摸模块的触摸数据发送给第二显示模块,第二显示模块执行触摸操作。In the folded state, the touch data collected by the first touch module is sent to the second touch module, and the second touch module determines whether the current second touch module has finger touch data, and if so, the second touch module sends the touch data to the second display. The second display module performs a touch operation. If not, the second touch module sends the touch data of the first touch module to the second display module, and the second display module performs a touch operation.
图9是根据本发明优选实施例提供的终端处于双屏展开状态的示意图。FIG. 9 is a schematic diagram of a terminal in a dual screen unfolded state according to a preferred embodiment of the present invention.
如图9所示中,当在展开状态下,在第二触摸屏上从A滑动到B时,第二显示屏607显示内容对此滑动过程进行响应,第一显示屏608对此滑动不进行响应。As shown in FIG. 9, when in the unfolded state, when sliding from A to B on the second touch screen, the second display screen 607 displays content in response to the sliding process, and the first display screen 608 does not respond to the sliding. .
在第一触摸屏上从A’滑动到B’,第一显示屏608显示内容对此滑动过程进行响应,第二显示屏607对此滑动不进行响应。Slides from A' to B' on the first touch screen, the first display 608 displays content in response to the sliding process, and the second display 607 does not respond to the slide.
图10是根据本发明优选实施例提供的终端处于折叠状态的示意图。FIG. 10 is a schematic diagram of a terminal in a folded state according to a preferred embodiment of the present invention.
如图10所示,当在折叠状态下,在第二显示屏607具有显示内容,第一显示屏608灭屏,没有显示内容的情况下,第一触摸屏左上角坐标对应第二触摸屏右上角,第一触摸屏右下角坐标对应第二触摸屏左下角。As shown in FIG. 10, in the folded state, when the second display screen 607 has display content, the first display screen 608 is off, and the content is not displayed, the coordinates of the upper left corner of the first touch screen correspond to the upper right corner of the second touch screen. The coordinates of the lower right corner of the first touch screen correspond to the lower left corner of the second touch screen.
在第一触摸屏上从A滑动到B,相当于在第二触摸屏上从A滑动到B,第二显示屏607显示内容对此滑动过程进行响应,第一显示屏608对此滑动不进行响应。Sliding from A to B on the first touch screen is equivalent to sliding from A to B on the second touch screen, and the second display 607 displays content in response to the sliding process, and the first display screen 608 does not respond to the sliding.
需要说明的是,上述第一触摸屏也可以称为第一触摸模块,上述第二触摸屏可以称为第二触摸模块,上述实施例1至4中的第一显示屏可以认为是本优选实施例中的第一显示屏和第一显示模块,上述实施例1至4中的第二显示屏可以认为是本优选实施例中的第二显示屏和第二显示模块,但并不限于此。It should be noted that the first touch screen may also be referred to as a first touch module, and the second touch screen may be referred to as a second touch module. The first display screen in the foregoing embodiments 1 to 4 may be considered as being in the preferred embodiment. The first display screen and the first display module, the second display screens in the above embodiments 1 to 4 can be considered as the second display screen and the second display module in the preferred embodiment, but are not limited thereto.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤 可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Claims (15)

  1. 一种数据显示方法,包括:A data display method comprising:
    确定当前终端所处的状态,其中,所述状态包括:折叠状态,展开状态;Determining a state in which the current terminal is located, wherein the state includes: a collapsed state, an expanded state;
    根据所述终端所处的状态确定用于显示第一触摸数据的显示屏;其中,所述第一触摸数据为第一触摸操作作用于所述终端的第一触摸模块上所产生的数据,所述第一触摸模块与所述终端的第一显示屏对应;以及Determining, according to a state in which the terminal is located, a display screen for displaying first touch data; wherein the first touch data is data generated by a first touch operation on a first touch module of the terminal, The first touch module corresponds to the first display of the terminal;
    在所确定的显示屏上显示所述第一触摸数据。The first touch data is displayed on the determined display screen.
  2. 根据权利要求1所述的方法,其中,根据所述终端所处的状态确定用于显示所述第一触摸数据的显示屏包括:The method of claim 1, wherein determining a display screen for displaying the first touch data according to a state in which the terminal is located comprises:
    在所述终端所处的状态为折叠状态的情况下,确定所述用于显示第一触摸数据的显示屏为所述终端的第二显示屏;以及In a case where the state in which the terminal is in the folded state, determining that the display screen for displaying the first touch data is the second display screen of the terminal;
    在所述终端所处的状态为展开状态的情况下,确定所述用于显示第一触摸数据的显示屏为所述第一显示屏和/或所述终端的第二显示屏。In a case where the state of the terminal is an unfolded state, it is determined that the display screen for displaying the first touch data is the first display screen and/or the second display screen of the terminal.
  3. 根据权利要求2所述的方法,其中,在所述终端所处的状态为折叠状态的情况下,确定所述用于显示第一触摸数据的显示屏为所述终端的第二显示屏之后,所述方法还包括:The method according to claim 2, wherein, after the state in which the terminal is in the folded state, determining that the display screen for displaying the first touch data is the second display screen of the terminal, The method further includes:
    对所述第一触摸数据进行坐标变换处理;以及Performing coordinate transformation processing on the first touch data;
    将经过坐标变换处理后的所述第一触摸数据发送给与所述第二显示屏对应的第二触摸模块。Transmitting the first touch data subjected to the coordinate transformation processing to the second touch module corresponding to the second display screen.
  4. 根据权利要求3所述的方法,其中,在所述终端所处的状态为所述折叠状态的情况下,在所确定的显示屏上显示所述第一触摸数 据包括:The method according to claim 3, wherein, in the case where the state in which the terminal is in the folded state, displaying the first touch data on the determined display screen comprises:
    在未检测到作用于所述第二触摸模块的第二触摸操作的情况下,在所述第二显示屏上显示所述经过坐标变换处理后的第一触摸数据。The first touch data after the coordinate transformation processing is displayed on the second display screen without detecting a second touch operation acting on the second touch module.
  5. 根据权利要求1至4中任一项所述的方法,其中,在确定所述终端所处的状态为所述折叠状态的情况下,所述方法还包括:The method according to any one of claims 1 to 4, wherein, in the case of determining that the state in which the terminal is located is the folded state, the method further comprises:
    确定所述第一显示屏处于休眠状态。Determining that the first display screen is in a sleep state.
  6. 根据权利要求1至4中任一项所述的方法,其中,在确定所述终端所处的状态为所述折叠状态的情况下,所述方法还包括:The method according to any one of claims 1 to 4, wherein, in the case of determining that the state in which the terminal is located is the folded state, the method further comprises:
    识别所述终端的处于朝下状态的显示屏;以及Identifying a display of the terminal in a downward state;
    将识别出的处于朝下状态的显示屏指定为所述第一显示屏。A recognized display screen in a downward state is designated as the first display screen.
  7. 根据权利要求2至4中任一项所述的方法,其中,在确定所述终端所处的状态为所述折叠状态的情况下,所述方法还包括:The method according to any one of claims 2 to 4, wherein, in the case of determining that the state in which the terminal is located is the folded state, the method further comprises:
    使所述第一显示屏进入灭屏状态。The first display screen is brought into a screen-off state.
  8. 一种终端,包括:检测模块,第一显示屏,第二显示屏,第一触摸模块,第二触摸模块;所述第一显示屏和所述第一触摸模块对应,所述第二显示屏与所述第二触摸模块对应,其中A terminal includes: a detection module, a first display screen, a second display screen, a first touch module, and a second touch module; the first display screen and the first touch module correspond to the second display screen Corresponding to the second touch module, wherein
    所述检测模块配置为检测所述终端当前的状态,其中,所述状态包括:折叠状态和展开状态;并且The detecting module is configured to detect a current state of the terminal, where the state includes: a folded state and an expanded state;
    所述第一触摸模块配置为检测作用于所述第一触摸模块的第一触摸操作并产生第一触摸数据,在所述终端处于展开状态的情况下将所述第一触摸数据发送给所述第一显示屏或所述第二显示屏进行显示,在所述终端处于折叠状态的情况下所述第二触摸模块接收所述第一触摸数据,所述第二显示屏显示所述第一触摸数据。The first touch module is configured to detect a first touch operation applied to the first touch module and generate first touch data, and send the first touch data to the terminal if the terminal is in an expanded state Displaying, by the first display screen or the second display screen, the second touch module receives the first touch data when the terminal is in a folded state, and the second display screen displays the first touch data.
  9. 根据权利要求8所述的终端,其中,所述第一触摸模块还配置为在所述终端处于折叠状态的情况下,对所述第一触摸数据进行坐标变换处理,以及将经过坐标变换处理后的第一触摸数据发送给所述第二触摸模块。The terminal according to claim 8, wherein the first touch module is further configured to perform coordinate transformation processing on the first touch data and to perform coordinate transformation processing in a case where the terminal is in a folded state The first touch data is sent to the second touch module.
  10. 根据权利要求8所述的终端,其中,The terminal according to claim 8, wherein
    所述第二触摸模块还配置为检测作用于所述第二触摸模块的第二触摸操作并产生第二触摸数据,在所述终端处于展开状态的情况下将所述第二触摸数据发送给所述第二显示屏进行显示;并且The second touch module is further configured to detect a second touch operation applied to the second touch module and generate second touch data, and send the second touch data to the terminal if the terminal is in an expanded state The second display screen is displayed; and
    所述第二显示屏还配置为显示所述第二触摸数据。The second display screen is further configured to display the second touch data.
  11. 根据权利要求10所述的终端,其中,所述第二触摸模块还配置为在接收到所述经过坐标变换处理后的第一触摸数据的情况下,判断是否检测到所述第二触摸数据,在判断结果为否的情况下,将所述经过坐标变换处理后的第一触摸数据发送给所述第二显示屏。The terminal according to claim 10, wherein the second touch module is further configured to determine whether the second touch data is detected if the first touch data after the coordinate transformation processing is received, When the determination result is no, the first touch data subjected to the coordinate transformation processing is transmitted to the second display screen.
  12. 根据权利要求9所述的终端,其中,所述终端还包括:重力传感器,配置为确定所述第一显示屏处于休眠状态。The terminal of claim 9, wherein the terminal further comprises: a gravity sensor configured to determine that the first display screen is in a sleep state.
  13. 一种数据显示装置,包括:A data display device comprising:
    第一确定模块,配置为确定当前终端所处的状态,其中,所述状态包括:折叠状态,展开状态;a first determining module, configured to determine a state in which the current terminal is located, where the state includes: a collapsed state, an expanded state;
    第二确定模块,配置为根据所述终端所处的状态确定用于显示第一触摸数据的显示屏;其中,所述第一触摸数据为第一触摸操作作用于所述终端的第一触摸模块上所产生的数据,所述第一触摸模块与所述终端的第一显示屏对应;a second determining module, configured to determine a display screen for displaying the first touch data according to the state of the terminal; wherein the first touch data is a first touch operation of the first touch module of the terminal The first touch module corresponds to the first display screen of the terminal;
    显示模块,配置为在所确定的所述显示屏上显示所述第一触摸数据。a display module configured to display the first touch data on the determined display screen.
  14. 一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行权利要求1至7中任一项所述的方法。A storage medium, the storage medium comprising a stored program, wherein the program is executed to perform the method of any one of claims 1 to 7.
  15. 一种处理器,所述处理器配置为运行程序,其中,所述程序运行时执行权利要求1至7中任一项所述的方法。A processor configured to execute a program, wherein the program is executed to perform the method of any one of claims 1 to 7.
PCT/CN2018/115411 2018-01-15 2018-11-14 Data display method and device, and terminal WO2019137092A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810037152.7A CN110045905A (en) 2018-01-15 2018-01-15 Data display method and device, terminal
CN201810037152.7 2018-01-15

Publications (1)

Publication Number Publication Date
WO2019137092A1 true WO2019137092A1 (en) 2019-07-18

Family

ID=67219315

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/115411 WO2019137092A1 (en) 2018-01-15 2018-11-14 Data display method and device, and terminal

Country Status (2)

Country Link
CN (1) CN110045905A (en)
WO (1) WO2019137092A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309401A (en) * 2012-03-12 2013-09-18 联想(北京)有限公司 Folding-type electronic equipment
CN103793093A (en) * 2012-11-02 2014-05-14 上海闻泰电子科技有限公司 Multiscreen portable terminal and touch control method thereof
US20150097755A1 (en) * 2013-10-07 2015-04-09 Lg Electronics Inc. Foldable mobile device and method of controlling the same
CN106155615A (en) * 2015-04-27 2016-11-23 中兴通讯股份有限公司 screen folding apparatus, control method and control device
CN107179865A (en) * 2017-05-19 2017-09-19 维沃移动通信有限公司 A kind of page switching method and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014211865A (en) * 2013-04-01 2014-11-13 キヤノン株式会社 Portable terminal mounted with double-sided touch screen, control method therefor, and storage medium
CN106168879A (en) * 2016-06-30 2016-11-30 努比亚技术有限公司 A kind of method that double-sided screen is mutual and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309401A (en) * 2012-03-12 2013-09-18 联想(北京)有限公司 Folding-type electronic equipment
CN103793093A (en) * 2012-11-02 2014-05-14 上海闻泰电子科技有限公司 Multiscreen portable terminal and touch control method thereof
US20150097755A1 (en) * 2013-10-07 2015-04-09 Lg Electronics Inc. Foldable mobile device and method of controlling the same
CN106155615A (en) * 2015-04-27 2016-11-23 中兴通讯股份有限公司 screen folding apparatus, control method and control device
CN107179865A (en) * 2017-05-19 2017-09-19 维沃移动通信有限公司 A kind of page switching method and terminal

Also Published As

Publication number Publication date
CN110045905A (en) 2019-07-23

Similar Documents

Publication Publication Date Title
EP3335097B1 (en) Method for measuring angles between displays and electronic device using the same
US11016531B2 (en) Foldable device and method for controlling image capturing by using plurality of cameras
EP3107270B1 (en) Electronic device with foldable display areas
US10853979B2 (en) Electronic device and method for displaying screen thereof
CN107786794B (en) Electronic device and method for providing an image acquired by an image sensor to an application
CN117762200A (en) Method for controlling display, storage medium, and electronic device
EP2985686A1 (en) Method and foldable electronic device for processing images
EP3171242A1 (en) Electronic device and method for configuring display thereof
US11625066B2 (en) Foldable electronic device and photographing method using multiple cameras in foldable electronic device
CN108921795A (en) A kind of image interfusion method, device and storage medium
US11281814B2 (en) Screen-on method and related apparatus
US20170111575A1 (en) Method and apparatus for adjusting a photo-taking direction, mobile terminal
CN110417960B (en) Folding method of foldable touch screen and electronic equipment
EP3015969A1 (en) Method of selecting one or more items according to user input and electronic device therefor
KR20190043015A (en) An electronic device having a plurality of displays and control method
KR102161443B1 (en) Discovering and controlling method and apparatus of controllee in a smart home system
US10438525B2 (en) Method of controlling display of electronic device and electronic device thereof
WO2019029194A1 (en) Method and device for starting mobile terminal operating system
KR20150092962A (en) Method for processing data and an electronic device thereof
CN111061550A (en) Task processing method, device, equipment and storage medium
EP3096313A1 (en) Electronic device and screen display method thereof
EP3044655A1 (en) Content reconfiguration based on characteristic analysis
CN105549809B (en) Method and apparatus for notifying content change
CN112052167A (en) Method and device for generating test script code
WO2019137092A1 (en) Data display method and device, and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18900074

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 171120)

122 Ep: pct application non-entry in european phase

Ref document number: 18900074

Country of ref document: EP

Kind code of ref document: A1