WO2021082718A1 - Content scrolling display method and electronic device - Google Patents

Content scrolling display method and electronic device Download PDF

Info

Publication number
WO2021082718A1
WO2021082718A1 PCT/CN2020/113045 CN2020113045W WO2021082718A1 WO 2021082718 A1 WO2021082718 A1 WO 2021082718A1 CN 2020113045 W CN2020113045 W CN 2020113045W WO 2021082718 A1 WO2021082718 A1 WO 2021082718A1
Authority
WO
WIPO (PCT)
Prior art keywords
distance
input
speed
target interface
content
Prior art date
Application number
PCT/CN2020/113045
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 WO2021082718A1 publication Critical patent/WO2021082718A1/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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • 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

Definitions

  • the embodiments of the present disclosure relate to the field of communication technologies, and in particular, to a content scrolling display method and an electronic device.
  • the user can trigger the electronic device to scroll and update the content displayed in the area through a sliding operation in the area where the content is located. For example, the user can trigger the electronic device to scroll down and display the webpage through a downward sliding operation on the current webpage, so that the user can stop the sliding operation after the content of the user's attention is updated.
  • an electronic device for example, a mobile phone
  • the user may miss the content of interest during the user's sliding operation; and if there are more content such as webpages, lists, or files, the user may need to spend a long time Perform a sliding operation to find the content that the user is concerned about. That is, the traditional way of scrolling and displaying content is less intelligent.
  • the embodiments of the present disclosure provide a content scrolling display method and electronic device, so as to solve the problem that the traditional way of scrolling and displaying content is low in intelligence.
  • the embodiments of the present disclosure provide a method for scrolling and displaying content.
  • the method includes: receiving a user's first input of a first position and a second position in a target interface; in response to the first input, determining a first distance and a second distance according to the first position and the second position; receiving The second input of the user; in response to the second input, the first speed is determined according to the target distance, and the content in the target interface is scrolled according to the first speed; wherein, the target distance is the first distance or the first distance Two distance.
  • an embodiment of the present disclosure provides an electronic device.
  • the electronic device includes a receiving module, a determining module, and a display module.
  • the receiving module is used to receive the user's first input of the first position and the second position in the target interface; the determining module is used to respond to the first input received by the receiving module, according to the first position and the second position, Determine the first distance and the second distance; the receiving module is also used to receive a second input from the user; the determining module is also used to determine the first speed according to the target distance in response to the second input received by the receiving module, the target distance Is the first distance or the second distance; the display module is configured to scroll and display the content in the target interface according to the first speed determined by the determining module.
  • an embodiment of the present disclosure provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor.
  • the computer program is executed by the processor to realize the first The steps of the content scrolling display method provided by the aspect.
  • embodiments of the present disclosure provide a computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the content scrolling display method provided in the first aspect are implemented.
  • the user's first input of the first position and the second position in the target interface can be received; in response to the first input, the first position and the second position are determined according to the first position and the second position.
  • Distance and second distance receiving a second input from the user; in response to the second input, determining a first speed according to the target distance, and scrolling and displaying content in the target interface according to the first speed; wherein
  • the target distance is the first distance or the second distance.
  • the user's touch position in the target interface controls the electronic device to adjust the scrolling speed of the content in the target interface, thereby avoiding missing the content of interest or requiring a long time to perform a sliding operation.
  • the content scrolling display method provided by the embodiments of the present disclosure is highly intelligent.
  • FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the present disclosure
  • FIG. 2 is one of the schematic diagrams of a content scrolling display method provided by an embodiment of the present disclosure
  • FIG. 3 is one of the schematic diagrams of a user's operation on a target interface provided by an embodiment of the present disclosure
  • FIG. 4 is a second schematic diagram of a user's operation on a target interface provided by an embodiment of the disclosure.
  • FIG. 5 is the third schematic diagram of a user's operation on a target interface provided by an embodiment of the present disclosure
  • FIG. 6 is a fourth schematic diagram of a user's operation on a target interface provided by an embodiment of the present disclosure
  • FIG. 7 is a second schematic diagram of a content scrolling display method provided by an embodiment of the present disclosure.
  • FIG. 8 is one of the structural schematic diagrams of the electronic device provided by the embodiments of the disclosure.
  • FIG. 9 is the second structural diagram of an electronic device provided by an embodiment of the disclosure.
  • FIG. 10 is a schematic diagram of hardware of an electronic device provided by an embodiment of the disclosure.
  • first and second in the specification and claims of the present disclosure are used to distinguish different objects, rather than describing a specific order of objects.
  • first position and the second position are used to distinguish different positions, rather than to describe a specific order of positions.
  • words such as “exemplary” or “for example” are used as examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present disclosure should not be construed as being more advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • plural means two or more than two, for example, a plurality of elements means two or more elements, and so on.
  • the embodiments of the present disclosure provide a content scrolling display method and electronic device, which can receive a user's first input of a first position and a second position in a target interface; in response to the first input, according to the first position and the position The second position determines the first distance and the second distance; receives a second input from the user; in response to the second input, determines the first speed according to the target distance, and scrolls to display the target according to the first speed Content in the interface; wherein, the target distance is the first distance or the second distance.
  • the user's touch position in the target interface controls the electronic device to adjust the scrolling speed of the content in the target interface, thereby avoiding missing the content of interest or requiring a long time to perform a sliding operation.
  • the content scrolling display method provided by the embodiments of the present disclosure is highly intelligent.
  • the electronic device in the embodiment of the present disclosure may be an electronic device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present disclosure.
  • the following takes the Android operating system as an example to introduce the software environment applied by the content scrolling display method provided by the embodiments of the present disclosure.
  • FIG. 1 it is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the present disclosure.
  • the architecture of the Android operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
  • the system runtime library layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • developers can develop software programs that implement the content scrolling display method provided by the embodiments of the present disclosure based on the system architecture of the Android operating system as shown in FIG.
  • the content scrolling display method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the content scrolling display method provided by the embodiment of the present disclosure by running the software program in the Android operating system.
  • the electronic device in the embodiment of the present disclosure may be a terminal device.
  • the terminal device can be a mobile terminal device or a non-mobile terminal device.
  • the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). Assistant, PDA), etc.
  • the non-mobile terminal device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which are not specifically limited in the embodiment of the present disclosure.
  • the execution subject of the content scrolling display method provided by the embodiments of the present disclosure may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the content scrolling display method, which can be specifically based on actual usage requirements. It is determined that the embodiments of the present disclosure are not limited.
  • the following takes an electronic device as an example to illustrate the content scrolling display method provided by the embodiment of the present disclosure.
  • an embodiment of the present disclosure provides a method for scrolling and displaying content.
  • This method can be applied to electronic devices.
  • the method may include the following S101 to S104.
  • the electronic device receives a user's first input of a first position and a second position in the target interface.
  • the above-mentioned target interface may be a sliding area on the screen of the electronic device for receiving user input.
  • the above-mentioned first position and the second position may be any two different touch positions in the target interface of the electronic device.
  • the above-mentioned first input may be a touch input of the user's two fingers at the first position and the second position in the target interface, respectively.
  • the first input may include: the touch input of the first position (x1, y1) of the first finger in the target interface, and the second input of the second finger in the target interface. Touch input of position (x2, y2).
  • the embodiment of the present disclosure realizes the variable-speed scrolling display of the content in the target interface through the cooperation of two fingers of the user. For example, if the sliding direction of the first finger in the target interface is the scroll direction of the content in the target interface, then the second finger is used to locate and adjust the speed of scrolling display. If the sliding direction in the second finger target interface is the scroll direction of the content in the target interface, then the first finger is used to locate and adjust the speed of scrolling display. For details, reference may be made to related descriptions in the following embodiments, which will not be repeated here.
  • the aforementioned target interface may be any area on the screen of the electronic device that can accept user input.
  • the target interface may be the entire display area of the screen of the electronic device, or may be a part of the display area of the screen of the electronic device.
  • the above-mentioned target interface may display slidable content such as webpages, lists, or files, and the user may trigger the electronic device to scroll and update the target interface through sliding input in the target interface Content displayed in.
  • a web page is displayed on a certain target interface of the screen of the electronic device. If the user slides the finger up and down on the webpage, the electronic device can scroll up and down to display the webpage, that is, update the content displayed in the target interface in the up and down direction. If the user slides the finger left and right on the webpage, the electronic device can scroll the webpage left and right, that is, update the content displayed in the target interface in the left and right directions.
  • the embodiment of the present disclosure does not specifically limit the screen display state of the electronic device when the first input is received.
  • the first input may be an input received when the electronic device is in a portrait display state, or the first input may also be an input received when the electronic device is in a landscape display state.
  • the electronic device determines a first distance and a second distance according to the first position and the second position.
  • “determine the first distance and the second distance according to the first position and the second position” in S102 may specifically include the following two steps: step 1. The distance from a position to the second straight line including the second position is determined as the first distance. Step 2. Determine the distance from the second position to the first straight line including the first position as the second distance. Wherein, the first straight line and the second straight line are perpendicular to each other.
  • the second straight line may be a straight line passing through the second position and parallel to a frame of the electronic device.
  • the second straight line may be a straight line passing through the first position and parallel to the other frame of the electronic device.
  • the electronic device receives the touch input of the first position (x1, y1) of the user's first finger in the target interface, and the second position of the second finger in the target interface ( After the touch input of x2, y2), the electronic device can determine the distance ⁇ x from the first position (x1, y1) to the second straight line including the second position (x2, y2) as the first distance; The distance ⁇ y from the second position (x2, y2) to the first straight line including the first position (x1, y1) is determined as the second distance.
  • the electronic device receives the touch input of the first position (x1, y1) of the user's first finger in the target interface, and the second position of the second finger in the target interface ( After the touch input of x2, y2), the electronic device can determine the distance ⁇ y from the first position (x1, y1) to the second straight line including the second position (x2, y2) as the first distance, and The distance ⁇ x from the second position (x2, y2) to the first straight line including the first position (x1, y1) is determined as the second distance.
  • first straight lines including the first position there may be multiple first straight lines including the first position, and multiple second straight lines including the second position may exist.
  • first distance and the second distance determined by the electronic device may be different, which may be specifically determined according to actual usage requirements.
  • the first straight line may be a straight line parallel to the top frame and the bottom frame of the electronic device
  • the second straight line may be a straight line parallel to the left frame and the right frame of the electronic device.
  • the first straight line may be a straight line parallel to the left and right frames of the electronic device
  • the second straight line may be a straight line parallel to the top and bottom frames of the electronic device.
  • the electronic device receives a second input from the user.
  • the above-mentioned second input may be a sliding input, a gesture input, or a key input in the target interface. Specifically, it can be determined according to actual usage requirements, and the embodiment of the present disclosure does not limit it.
  • the following (1) or (2) may be included.
  • the second input is a sliding input along one direction of the first straight line with the first position as the starting position.
  • the second input may specifically be a sliding input of the first finger along one direction of the first straight line with the first position as the starting position.
  • the second input may be a sliding input with the first position (x1, y1) as the starting position and along a direction F2 of the first straight line.
  • the second input may be a sliding input that takes the first position (x1, y1) as the starting position and is along the first straight line opposite to the direction F2.
  • the direction F1 and the direction F2 are perpendicular to each other.
  • the second input may be a sliding input with the first position (x1, y1) as the starting position and along a direction F1 of the first straight line.
  • the second input may be a sliding input that takes the first position (x1, y1) as the starting position and is along the first straight line in a direction opposite to the direction F1.
  • the direction F1 and the direction F2 are perpendicular to each other.
  • the second input is a sliding input along one direction of the second straight line with the second position as the starting position.
  • the second input may specifically be a sliding input of the second finger along one direction of the second straight line with the second position as the starting position.
  • the second input may be a sliding input with the second position (x2, y2) as the starting position and along a direction F1 of the second straight line.
  • the second input may be a sliding input that takes the second position (x2, y2) as the starting position and is along the second straight line opposite to the direction F1.
  • the direction F1 and the direction F2 are perpendicular to each other.
  • the second input may be a sliding input with the second position (x2, y2) as the starting position and along a direction F2 of the second straight line.
  • the second input may be a sliding input that takes the second position (x2, y2) as the starting position and is along the second straight line opposite to the direction F2.
  • the direction F1 and the direction F2 are perpendicular to each other.
  • the second input is a sliding input of one finger of the user along the first straight line or the second straight line
  • the other fingers of the user can leave the target interface, or the other fingers of the user can still be on the target interface.
  • Touch input to adjust the scrolling speed of the content in the target interface Specifically, it can be determined according to actual usage requirements, and the embodiment of the present disclosure does not limit it.
  • the electronic device determines a first speed according to the target distance, and scrolls and displays content in the target interface according to the first speed.
  • the above-mentioned target distance may be the first distance or the second distance.
  • the above-mentioned first speed may be the speed at which the electronic device controls the content in the target interface to scroll.
  • the electronic device scrolls and displays the content in the target interface at the first speed
  • the finger used to locate and adjust the scroll display speed leaves the electronic device and is used to control the scrolling of the content in the target interface
  • the electronic device can continue to scroll and display the content in the target interface at the first speed; and if the finger used to control the scrolling direction of the content in the target interface leaves the electronic device, the electronic device You can stop scrolling to update the content in the target interface.
  • the electronic device provided by the embodiment of the present disclosure may be provided with a sliding control. After the electronic device determines the first speed, the electronic device may send the first speed to the sliding control to control the sliding control to scroll and display the content in the target interface according to the first speed.
  • the greater the target distance the greater the first speed.
  • the smaller the target distance the smaller the first speed. It can be understood that by adjusting the target distance, the content in the target interface can be controlled to scroll at different speeds.
  • the first speed determined according to the first distance is equal to the first speed determined according to the second distance.
  • the target distance may be the second distance.
  • the target distance is the first distance.
  • the content scrolling display method may further include: The electronic device determines the target distance by the first distance or the second distance according to the sliding direction of the second input in the target interface.
  • the electronic device determines the target distance by the second distance. If the second input is a sliding input along one direction of the second straight line with the second position as the starting position, the first distance is used to determine the target distance.
  • the electronic device can input the second The distance ⁇ y is determined as the target distance.
  • the electronic device may determine the first distance ⁇ x as the target distance.
  • the electronic device can input the second The distance ⁇ x is determined as the target distance.
  • the electronic device may determine the first distance ⁇ y as the target distance.
  • the embodiment of the present disclosure provides a content scrolling display method. Since the electronic device can determine two distances according to the two touch positions of the user in the target interface, and determine the scroll speed according to one of the two distances, the user The electronic device can be controlled to adjust the scrolling speed of the content in the target interface by changing the user's touch position in the target interface according to actual usage requirements, so as to avoid missing the content of interest or the need to spend a long time for sliding operations. In this way, the content scrolling display method provided by the embodiments of the present disclosure is highly intelligent.
  • the "determining the first speed according to the target distance" in the foregoing S104 may be implemented by any one of the following S104a to S104f.
  • the electronic device determines the ratio of the target distance to the first value as the first speed.
  • the target distance is the first distance
  • the first value is represented by ⁇ s
  • the first speed is represented by v
  • v ⁇ x/ ⁇ s.
  • the target distance is the second distance
  • the second distance is represented by ⁇ y
  • the first value is represented by ⁇ s
  • the first speed is represented by v
  • v ⁇ y/ ⁇ s.
  • a double-speed step is 10 pixels
  • the first value is the ratio of a double-speed step to the original speed k.
  • the scroll speed may be k; when the first distance is 20 pixels, the scroll speed may be 2k; when the first distance is 30 pixels, the scroll speed may be 3k.
  • the electronic device determines the product of the target distance and the second value as the first speed.
  • the target distance is the first distance
  • the second value is represented by ⁇ s
  • the first speed is represented by v
  • v ⁇ x* ⁇ s.
  • the target distance is the second distance
  • the second value is represented by ⁇ s
  • the first speed is represented by v
  • v ⁇ y* ⁇ s.
  • one double-speed step is 10 pixels
  • the second value is the ratio of the original speed k to one double-speed step.
  • the scroll speed may be k; when the first distance is 20 pixels, the scroll speed may be 2k; when the first distance is 30 pixels, the scroll speed may be 3k.
  • the electronic device rounds down the ratio of the target distance to the first value, and determines the rounded down value as the first speed.
  • the target distance is the first distance
  • the first value is represented by ⁇ s
  • the first speed is represented by v
  • the target distance is the second distance
  • the second distance is represented by ⁇ y
  • the first value is represented by ⁇ s
  • the first speed is represented by v
  • a double-speed step is 10 pixels
  • the first value is the ratio of a double-speed step to the original speed k.
  • the scroll speed can be k; when the first distance is 15 pixels, the scroll speed can be k; when the first distance is 25 pixels, the scroll speed can be 2k; When a distance is 35 pixels, the scroll speed can be 3k.
  • the electronic device rounds up the ratio of the target distance to the first value, and determines the rounded up value as the first speed.
  • the target distance is the first distance
  • the first value is represented by ⁇ s
  • the first speed is represented by v
  • the target distance is the second distance
  • the second distance is represented by ⁇ y
  • the first value is represented by ⁇ s
  • the first speed is represented by v
  • a double-speed step is 10 pixels
  • the first value is the ratio of a double-speed step to the original speed k.
  • the scroll speed can be k; when the first distance is 15 pixels, the scroll speed can be 2k; when the first distance is 25 pixels, the scroll speed can be 3k; When a distance is 35 pixels, the scroll speed can be 4k.
  • the electronic device rounds down the product of the target distance and the second value, and determines the rounded down value as the first speed.
  • the target distance is the first distance
  • the second value is represented by ⁇ s
  • the first speed is represented by v
  • the target distance is the second distance
  • the second value is represented by ⁇ s
  • the first speed is represented by v
  • one double-speed step is 10 pixels
  • the second value is the ratio of the original speed k to one double-speed step.
  • the scroll speed can be k; when the first distance is 15 pixels, the scroll speed can be k; when the first distance is 25 pixels, the scroll speed can be 2k; When a distance is 35 pixels, the scroll speed can be 3k.
  • the electronic device rounds up the product of the target distance and the second value, and determines the rounded up value as the first speed.
  • the target distance is the first distance
  • the second value is represented by ⁇ s
  • the first speed is represented by v
  • the target distance is the second distance
  • the second value is represented by ⁇ s
  • the first speed is represented by v
  • one double-speed step is 10 pixels
  • the second value is the ratio of the original speed k to one double-speed step.
  • the scroll speed can be k; when the first distance is 15 pixels, the scroll speed can be 2k; when the first distance is 25 pixels, the scroll speed can be 3k; When a distance is 35 pixels, the scroll speed can be 4k.
  • the electronic device can obtain the first speed according to the target distance and the first value, or according to the target distance and the second value, the user can control the target interface by adjusting the target distance.
  • the content scrolls at different speeds. For example, the target distance can be increased to increase the scrolling speed of the content in the target interface, or the target distance can be reduced to reduce the scrolling speed of the content in the target interface.
  • the first possible implementation is that when the second input is specifically a sliding input along one direction of the first straight line with the first position as the starting position, the present The content scrolling display method provided by the disclosed embodiment may further include the following S105.
  • the second possible implementation manner is that when the second input is specifically a sliding input along one direction of the second straight line with the second position as the starting position, the content scrolling display method provided by the embodiment of the present disclosure may also Including the following S106.
  • the third position is any position other than the second position in the target interface.
  • the second input is specifically a sliding input of the first finger along one direction of the first straight line with the first position as the starting position.
  • the third input may specifically be a sliding output in which the second finger moves from the second position to the third position.
  • the fourth position is any position other than the first position in the target interface.
  • the second input is specifically a sliding input of the second finger along one direction of the first straight line with the first position as the starting position.
  • the fourth input may specifically be a sliding output in which the first finger moves from the second position to the third position.
  • the electronic device determines the first speed according to the first distance ⁇ x, the electronic device can scroll and display the content in the scroll area along the direction F1 according to the first speed.
  • the electronic device when the electronic device scrolls and displays the content in the target interface at the first speed, if the user slides the second finger at the first position (x1, y1) to the first position (x1, y1), Four positions (x3, y3), the electronic device can determine the third speed according to the distance ⁇ q from the fourth position (x3, y3) to the second straight line in response to the sliding input, and scroll to display the The content in the target interface.
  • the third speed and the second speed may be the same or different. Specifically, if the distance from the third position to the first straight line is equal to the distance from the fourth position to the second straight line, then the third speed is the same as the second speed. If the distance from the third position to the first straight line is not equal to the distance from the fourth position to the second straight line, then the third speed is different from the second speed.
  • the electronic device can scroll and display the content in the target interface according to the recalculated sliding rate. In this way, the user can control the content in the target interface to scroll at different speeds by adjusting the distance between the two fingers.
  • the electronic device responds to the second input and determines the first After “speed” (hereinafter may be referred to as S104A), and before “scrolling and displaying the content in the target interface at the first speed” (hereinafter may be referred to as S104B) in S104, the content scrolling display method provided by the embodiment of the present disclosure It may also include the following S107.
  • S104B can be specifically implemented by the following S104B1.
  • the electronic device determines the first speed according to the target distance.
  • the electronic device obtains the scroll distance according to the first speed and the sliding distance of the second input in the target interface.
  • the aforementioned scroll distance may be the product of the first speed and the sliding distance of the second input in the target interface.
  • the electronic device scrolls and displays the content in the target interface along the sliding direction of the second input in the target interface according to the first speed, wherein the distance between the start position of the scroll display and the end position of the scroll display Is the scroll distance.
  • the electronic device can follow the first Speed, along the direction F2, scroll to display the contents of the target interface. Until the distance from the start position of the scroll display to the end position of the scroll display is the scroll distance, the electronic device stops the scroll display.
  • the electronic device can follow the first Speed, along the direction F1, scroll to display the contents of the target interface. Until the distance from the start position of the scroll display to the end position of the scroll display is the scroll distance, the electronic device stops the scroll display.
  • the content scrolling display method provided by the embodiment of the present disclosure can scroll and display the content in the target interface for a certain distance along the sliding direction of the second input in the target interface according to the acquisition speed. In this way, for electronic devices without scroll bars, users can also browse the displayed content quickly or slowly based on browsing requirements, even if the user browses the content.
  • both the two-finger zoom function and the scroll display function are two-finger touch input, so these two functions may conflict.
  • the content scrolling display method provided by the embodiments of the present disclosure may first display a target control after receiving the user's input at the first position and the second position to prompt the user to scroll the display function or other two-finger operation functions (for example, Two-finger zoom function).
  • the above S102 may specifically pass the following S102A and S102B.
  • the electronic device displays the target control.
  • the above-mentioned target control is used to prompt the user whether to scroll and display content in the target interface by sliding input.
  • the above-mentioned target control may be a floating control or a floating window.
  • the above-mentioned target control may be displayed in the electronic device with a certain degree of transparency.
  • the electronic device determines a first distance and a second distance according to the first position and the second position.
  • the content scrolling display method provided by the embodiment of the present disclosure may further include: the electronic device continuously displays the target control on the screen. It can be understood that, by continuously displaying the target control, the electronic device can facilitate the user to switch multiple functions such as the scrolling display function and the two-finger zoom function.
  • the electronic device may display a floating window “please select the two-finger zoom function or the scroll display function”. If the user selects the scroll display function, the electronic device can determine the first distance and the second distance according to the first position and the second position, and perform subsequent S103 and S104, that is, the electronic device can perform the scroll display function. If the user selects the two-finger zoom function, the electronic device can zoom and display the content in the target interface according to the position changes of the first finger and the second finger, that is, the electronic device can perform the two-finger zoom function.
  • the scrolling display function conflicts with other two-finger operation functions (such as the two-finger zoom function)
  • the target control it is convenient for the user to choose from multiple functions according to actual usage requirements.
  • One function is to improve the convenience of operation.
  • an embodiment of the present disclosure provides an electronic device 800.
  • the electronic device includes a receiving module 801, a determining module 802, and a display module 803.
  • the receiving module 801 can be used to receive the user's first input of the first position and the second position in the target interface.
  • the determining module 802 may be configured to determine the first distance and the second distance according to the first position and the second position in response to the first input received by the receiving module 801.
  • the receiving module 801 can also be used to receive a second input from the user.
  • the determining module 802 may also be configured to determine the first speed according to the target distance in response to the second input received by the receiving module 801, and the target distance may be the first distance or the second distance.
  • the display module 803 may be configured to scroll and display the content in the target interface according to the first speed determined by the determining module 802.
  • the determining module 802 may be specifically configured to determine the distance from the first position to the second straight line including the second position as the first distance; and to determine the distance from the second position to the second straight line including the second position.
  • the distance of the first straight line of a position is determined as the second distance.
  • the first straight line and the second straight line are perpendicular to each other.
  • the target distance may be the second distance.
  • the target distance may be the first distance.
  • the second input may specifically be a sliding input along one direction of the first straight line with the first position as the starting position.
  • the determining module 802 can also be used to, in the process of scrolling and displaying the content in the target interface according to the first speed, if a third input of moving from the second position to the third position is received, in response to the third input, according to The distance from the third position to the first straight line determines the second speed.
  • the display module 803 may also be configured to scroll and display the content in the target interface according to the second speed determined by the determining module 802.
  • the second input may specifically be a sliding input along one direction of the second straight line with the second position as the starting position.
  • the determining module 802 can also be used to, in the process of scrolling and displaying the content in the target interface at the first speed, if a fourth input of moving from the first position to the fourth position is received, in response to the fourth input, according to The distance from the fourth position to the second straight line determines the third speed.
  • the display module 803 may also be configured to scroll and display the content in the target interface according to the third speed determined by the determining module 802.
  • the second input may be a sliding input in the target interface.
  • the electronic device provided by the embodiment of the present disclosure may further include an obtaining module 804.
  • the obtaining module 804 may be used to obtain the scroll distance according to the first speed determined by the determining module 802 and the sliding distance of the second input in the target interface.
  • the display module 803 may be specifically configured to scroll and display the content in the target interface along the sliding direction of the second input in the target interface according to the first speed. Wherein, the distance from the start position of the scroll display to the end position of the scroll display is the scroll distance.
  • the determining module 802 may be specifically configured to determine the ratio of the target distance to the first value as the first speed; or, to determine the product of the target distance and the second value as the first speed. speed.
  • the determining module 802 may also be used to determine the target distance according to the sliding direction of the second input in the target interface before determining the first speed according to the target distance. distance.
  • the electronic device provided in the embodiments of the present disclosure can implement each process implemented by the electronic device in the foregoing method embodiments, and to avoid repetition, details are not described herein again.
  • the embodiments of the present disclosure provide an electronic device. Since the electronic device can determine two distances according to the two touch positions of the user in the target interface, and determine the scrolling speed according to one of the two distances, the user can determine the scroll speed according to the two touch positions of the user in the target interface. Practical requirements are to control the electronic device to adjust the scrolling speed of the content in the target interface by changing the user's touch position in the target interface, so as to avoid missing the content of interest or the need to spend a long time for sliding operations. In this way, the electronic device provided by the embodiments of the present disclosure is highly intelligent.
  • FIG. 10 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the disclosure.
  • the electronic device may be a terminal device.
  • the terminal device 200 includes but is not limited to: a radio frequency unit 201, a network module 202, an audio output unit 203, an input unit 204, a sensor 205, a display unit 206, a user input unit 207, an interface unit 208, and a memory 209 , The processor 210, and the power supply 211.
  • the structure of the terminal device shown in FIG. 10 does not constitute a limitation on the terminal device, and the terminal device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminal devices, wearable devices, and pedometers.
  • the user input unit 207 may be used to receive the first input of the user in the first position and the second position in the target interface.
  • the processor 210 may be configured to determine the first distance and the second distance according to the first position and the second position in response to the first input received by the user input unit 207.
  • the user input unit 207 may also be used to receive a second input from the user.
  • the processor 210 may also be configured to determine a first speed according to a target distance in response to the second input received by the user input unit 207, where the target distance is the first distance or the second distance.
  • the display unit 206 may be configured to scroll and display the content in the target interface according to the first speed determined by the processor 210.
  • the embodiment of the present disclosure provides a terminal device. Since the terminal device can determine two distances according to the two touch positions of the user in the target interface, and determine the scrolling speed according to one of the two distances, the user can determine the scroll speed according to the two touch positions of the user in the target interface. Practical requirements are to control the terminal device to adjust the scrolling speed of the content in the target interface by changing the user's touch position in the target interface, so as to avoid missing the content of interest or the need to spend a long time for sliding operations. In this way, the terminal device provided by the embodiments of the present disclosure is highly intelligent.
  • the radio frequency unit 201 may be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving downlink data from the base station, it is sent to the processor 210 for processing. In addition, the uplink data is sent to the base station.
  • the radio frequency unit 201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 201 can also communicate with the network and other devices through a wireless communication system.
  • the terminal device provides users with wireless broadband Internet access through the network module 202, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 203 can convert the audio data received by the radio frequency unit 201 or the network module 202 or stored in the memory 209 into audio signals and output them as sounds. Moreover, the audio output unit 203 may also provide audio output related to a specific function performed by the terminal device 200 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 203 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 204 is used to receive audio or video signals.
  • the input unit 204 may include a graphics processing unit (GPU) 2041 and a microphone 2042.
  • the graphics processing unit 2041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
  • the data is processed.
  • the processed image frame may be displayed on the display unit 206.
  • the image frame processed by the graphics processor 2041 may be stored in the memory 209 (or other storage medium) or sent via the radio frequency unit 201 or the network module 202.
  • the microphone 2042 can receive sound and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 201 in the case of a telephone call mode for output.
  • the terminal device 200 also includes at least one sensor 205, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 2061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 2061 and the display panel 2061 when the terminal device 200 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games) , Magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.
  • the sensor 205 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.
  • the display unit 206 is used to display information input by the user or information provided to the user.
  • the display unit 206 may include a display panel 2061, and the display panel 2061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 207 may be used to receive inputted number or character information, and generate key signal input related to user settings and function control of the terminal device.
  • the user input unit 207 includes a touch panel 2071 and other input devices 2072.
  • the touch panel 2071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 2071 or near the touch panel 2071. operating).
  • the touch panel 2071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought about by the touch operation, and transmits the signal to the touch controller.
  • the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it to the processor 210, receives and executes the command sent by the processor 210.
  • the touch panel 2071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 207 may also include other input devices 2072.
  • other input devices 2072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 2071 can be overlaid on the display panel 2061.
  • the touch panel 2071 detects a touch operation on or near it, it is transmitted to the processor 210 to determine the type of touch event, and then the processor 210 according to The type of touch event provides corresponding visual output on the display panel 2061.
  • the touch panel 2071 and the display panel 2061 are used as two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 2071 and the display panel 2061 can be integrated
  • the implementation of the input and output functions of the terminal device is not specifically limited here.
  • the interface unit 208 is an interface for connecting an external device and the terminal device 200.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 208 may be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal device 200 or may be used to connect to the terminal device 200 and an external device. Transfer data between devices.
  • the memory 209 can be used to store software programs and various data.
  • the memory 209 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 209 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 210 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, by running or executing software programs and/or modules stored in the memory 209, and calling data stored in the memory 209 , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole.
  • the processor 210 may include one or more processing units.
  • the processor 210 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 210.
  • the terminal device 200 may also include a power source 211 (such as a battery) for supplying power to various components.
  • a power source 211 such as a battery
  • the power supply 211 may be logically connected to the processor 210 through a power management system, so that functions such as charging, discharging, and power consumption management can be managed through the power management system.
  • the terminal device 200 includes some functional modules that are not shown, which will not be repeated here.
  • an embodiment of the present disclosure further provides a terminal device, including a processor 210 as shown in FIG. 10, a memory 209, a computer program stored in the memory 209 and running on the processor 210, and the computer program is
  • the processor 210 implements the various processes of the foregoing method embodiments when executing, and can achieve the same technical effect. To avoid repetition, details are not described herein again.
  • the embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored.
  • a computer program When the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here.
  • computer-readable storage media such as read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, etc.
  • the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present disclosure.

Abstract

Disclosed by the embodiments of the present disclosure are a content scrolling display method and an electronic device, relating to the technical field of communications. The method comprises: receiving a first input of a user in a first position and a second position in a target interface; in response to the first input, according to the first position and the second position, determining a first distance and a second distance; receiving a second input from the user; in response to the second input, determining a first speed according to a target distance and, at said first speed, scrolling to display content in the target interface; the target distance being the first distance or the second distance.

Description

内容滚动显示方法及电子设备Content scrolling display method and electronic equipment
相关申请的交叉引用Cross-references to related applications
本申请主张在2019年10月30日在中国提交的中国专利申请号No.201911045047.9的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201911045047.9 filed in China on October 30, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本公开实施例涉及通信技术领域,尤其涉及一种内容滚动显示方法及电子设备。The embodiments of the present disclosure relate to the field of communication technologies, and in particular, to a content scrolling display method and an electronic device.
背景技术Background technique
通常,在用户使用电子设备(例如手机)浏览网页、列表或文件等内容的过程中,用户可以通过在这些内容所在区域中的滑动操作,触发电子设备滚动更新区域中显示的内容。例如,用户可以通过在当前网页中的向下滑动操作,触发电子设备向下滚动显示网页,从而在更新到用户关注的内容之后,用户可以停止滑动操作。Generally, when a user browses content such as webpages, lists, or files using an electronic device (for example, a mobile phone), the user can trigger the electronic device to scroll and update the content displayed in the area through a sliding operation in the area where the content is located. For example, the user can trigger the electronic device to scroll down and display the webpage through a downward sliding operation on the current webpage, so that the user can stop the sliding operation after the content of the user's attention is updated.
然而,如果网页、列表或文件等内容较少,那么在用户滑动操作的过程中,用户可能会错过关注的内容;而如果网页、列表或文件等内容较多,那么用户可能需要耗费较长时间进行滑动操作,以查找到用户关注的内容。即传统滚动显示内容的方式的智能化程度较低。However, if there are few content such as webpages, lists, or files, the user may miss the content of interest during the user's sliding operation; and if there are more content such as webpages, lists, or files, the user may need to spend a long time Perform a sliding operation to find the content that the user is concerned about. That is, the traditional way of scrolling and displaying content is less intelligent.
发明内容Summary of the invention
本公开实施例提供一种内容滚动显示方法及电子设备,以解决传统滚动显示内容的方式的智能化程度较低的问题。The embodiments of the present disclosure provide a content scrolling display method and electronic device, so as to solve the problem that the traditional way of scrolling and displaying content is low in intelligence.
为了解决上述技术问题,本公开实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present disclosure are implemented as follows:
第一方面,本公开实施例提供了一种内容滚动显示方法。该方法包括:接收用户在目标界面中第一位置和第二位置的第一输入;响应于该第一输入,根据该第一位置和该第二位置,确定第一距离和第二距离;接收用户的第二输入;响应于该第二输入,根据目标距离确定第一速度,并按照该第一速度,滚动显示该目标界面中的内容;其 中,该目标距离为该第一距离或该第二距离。In the first aspect, the embodiments of the present disclosure provide a method for scrolling and displaying content. The method includes: receiving a user's first input of a first position and a second position in a target interface; in response to the first input, determining a first distance and a second distance according to the first position and the second position; receiving The second input of the user; in response to the second input, the first speed is determined according to the target distance, and the content in the target interface is scrolled according to the first speed; wherein, the target distance is the first distance or the first distance Two distance.
第二方面,本公开实施例提供了一种电子设备。该电子设备包括接收模块、确定模块和显示模块。接收模块,用于接收用户在目标界面中第一位置和第二位置的第一输入;确定模块,用于响应于接收模块接收的该第一输入,根据该第一位置和该第二位置,确定第一距离和第二距离;接收模块,还用于接收用户的第二输入;确定模块,还用于响应于接收模块接收的该第二输入,根据目标距离确定第一速度,该目标距离为该第一距离或该第二距离;显示模块,用于按照确定模块确定的该第一速度,滚动显示该目标界面中的内容。In the second aspect, an embodiment of the present disclosure provides an electronic device. The electronic device includes a receiving module, a determining module, and a display module. The receiving module is used to receive the user's first input of the first position and the second position in the target interface; the determining module is used to respond to the first input received by the receiving module, according to the first position and the second position, Determine the first distance and the second distance; the receiving module is also used to receive a second input from the user; the determining module is also used to determine the first speed according to the target distance in response to the second input received by the receiving module, the target distance Is the first distance or the second distance; the display module is configured to scroll and display the content in the target interface according to the first speed determined by the determining module.
第三方面,本公开实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现第一方面提供的内容滚动显示方法的步骤。In a third aspect, an embodiment of the present disclosure provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor. The computer program is executed by the processor to realize the first The steps of the content scrolling display method provided by the aspect.
第四方面,本公开实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现第一方面提供的内容滚动显示方法的步骤。In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the content scrolling display method provided in the first aspect are implemented.
在本公开实施例中,可以接收用户在目标界面中第一位置和第二位置的第一输入;响应于所述第一输入,根据所述第一位置和所述第二位置,确定第一距离和第二距离;接收用户的第二输入;响应于所述第二输入,根据目标距离确定第一速度,并按照所述第一速度,滚动显示所述目标界面中的内容;其中,所述目标距离为所述第一距离或所述第二距离。通过该方案,由于电子设备可以根据用户在目标界面中的两个触控位置,确定两个距离,并根据这两个距离中的一个距离确定滚动速度,因此用户可以根据实际使用需求,通过改变用户在目标界面中的触控位置,控制电子设备调整目标界面中的内容滚动速度,从而可以避免错过关注的内容,或需要耗费较长时间进行滑动操作。如此,本公开实施例提供的内容滚动显示方法的智能化程度较高。In the embodiment of the present disclosure, the user's first input of the first position and the second position in the target interface can be received; in response to the first input, the first position and the second position are determined according to the first position and the second position. Distance and second distance; receiving a second input from the user; in response to the second input, determining a first speed according to the target distance, and scrolling and displaying content in the target interface according to the first speed; wherein The target distance is the first distance or the second distance. With this solution, since the electronic device can determine two distances according to the two touch positions of the user in the target interface, and determine the scroll speed according to one of the two distances, the user can change the speed according to actual usage requirements. The user's touch position in the target interface controls the electronic device to adjust the scrolling speed of the content in the target interface, thereby avoiding missing the content of interest or requiring a long time to perform a sliding operation. In this way, the content scrolling display method provided by the embodiments of the present disclosure is highly intelligent.
附图说明Description of the drawings
图1为本公开实施例提供的一种安卓操作系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the present disclosure;
图2为本公开实施例提供的一种内容滚动显示方法的示意图之一;FIG. 2 is one of the schematic diagrams of a content scrolling display method provided by an embodiment of the present disclosure;
图3为本公开实施例提供的用户对目标界面的操作示意图之一;FIG. 3 is one of the schematic diagrams of a user's operation on a target interface provided by an embodiment of the present disclosure;
图4为本公开实施例提供的用户对目标界面的操作示意图之二;4 is a second schematic diagram of a user's operation on a target interface provided by an embodiment of the disclosure;
图5为本公开实施例提供的用户对目标界面的操作示意图之三;FIG. 5 is the third schematic diagram of a user's operation on a target interface provided by an embodiment of the present disclosure;
图6为本公开实施例提供的用户对目标界面的操作示意图之四;6 is a fourth schematic diagram of a user's operation on a target interface provided by an embodiment of the present disclosure;
图7为本公开实施例提供的一种内容滚动显示方法的示意图之二;FIG. 7 is a second schematic diagram of a content scrolling display method provided by an embodiment of the present disclosure;
图8为本公开实施例提供的电子设备的结构示意图之一;FIG. 8 is one of the structural schematic diagrams of the electronic device provided by the embodiments of the disclosure;
图9为本公开实施例提供的电子设备的结构示意图之二;FIG. 9 is the second structural diagram of an electronic device provided by an embodiment of the disclosure;
图10为本公开实施例提供的电子设备的硬件示意图。FIG. 10 is a schematic diagram of hardware of an electronic device provided by an embodiment of the disclosure.
具体实施方式Detailed ways
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present disclosure.
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。The term "and/or" in this article refers to an association relationship that describes associated objects, which means that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone These three situations. The symbol "/" in this document represents the relationship that the associated object is or, for example, A/B represents A or B.
本公开的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一位置和第二位置等是用于区别不同的位置,而不是用于描述位置的特定顺序。The terms "first" and "second" in the specification and claims of the present disclosure are used to distinguish different objects, rather than describing a specific order of objects. For example, the first position and the second position are used to distinguish different positions, rather than to describe a specific order of positions.
在本公开实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本公开实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present disclosure, words such as "exemplary" or "for example" are used as examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present disclosure should not be construed as being more advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
在本公开实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个元件是指两个或者两个以上的元件等。In the description of the embodiments of the present disclosure, unless otherwise specified, the meaning of "plurality" means two or more than two, for example, a plurality of elements means two or more elements, and so on.
本公开实施例提供一种内容滚动显示方法及电子设备,可以接收用户在目标界面中第一位置和第二位置的第一输入;响应于所述第一输入,根据所述第一位置和所述第二位置,确定第一距离和第二距离;接收用户的第二输入;响应于所述第二输入,根据目标距离确 定第一速度,并按照所述第一速度,滚动显示所述目标界面中的内容;其中,所述目标距离为所述第一距离或所述第二距离。通过该方案,由于电子设备可以根据用户在目标界面中的两个触控位置,确定两个距离,并根据这两个距离中的一个距离确定滚动速度,因此用户可以根据实际使用需求,通过改变用户在目标界面中的触控位置,控制电子设备调整目标界面中的内容滚动速度,从而可以避免错过关注的内容,或需要耗费较长时间进行滑动操作。如此,本公开实施例提供的内容滚动显示方法的智能化程度较高。The embodiments of the present disclosure provide a content scrolling display method and electronic device, which can receive a user's first input of a first position and a second position in a target interface; in response to the first input, according to the first position and the position The second position determines the first distance and the second distance; receives a second input from the user; in response to the second input, determines the first speed according to the target distance, and scrolls to display the target according to the first speed Content in the interface; wherein, the target distance is the first distance or the second distance. With this solution, since the electronic device can determine two distances according to the two touch positions of the user in the target interface, and determine the scroll speed according to one of the two distances, the user can change the speed according to actual usage requirements. The user's touch position in the target interface controls the electronic device to adjust the scrolling speed of the content in the target interface, thereby avoiding missing the content of interest or requiring a long time to perform a sliding operation. In this way, the content scrolling display method provided by the embodiments of the present disclosure is highly intelligent.
本公开实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本公开实施例不作具体限定。The electronic device in the embodiment of the present disclosure may be an electronic device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present disclosure.
下面以安卓操作系统为例,介绍一下本公开实施例提供的内容滚动显示方法所应用的软件环境。The following takes the Android operating system as an example to introduce the software environment applied by the content scrolling display method provided by the embodiments of the present disclosure.
如图1所示,为本公开实施例提供的一种安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1, it is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the present disclosure. In Figure 1, the architecture of the Android operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。Among them, the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime library layer includes a library (also called a system library) and an Android operating system runtime environment. The library mainly provides various resources needed by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software. The kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
以安卓操作系统为例,本公开实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本公开实施例提供的内容滚动显示方法的软件程序,从而使得该内容滚动显示方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本公开实施例提供的内容滚动显示方法。Taking the Android operating system as an example, in the embodiments of the present disclosure, developers can develop software programs that implement the content scrolling display method provided by the embodiments of the present disclosure based on the system architecture of the Android operating system as shown in FIG. The content scrolling display method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the content scrolling display method provided by the embodiment of the present disclosure by running the software program in the Android operating system.
本公开实施例中的电子设备可以为终端设备。该终端设备可以为移动终端设备,也可 以为非移动终端设备。示例性的,移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动终端设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本公开实施例不作具体限定。The electronic device in the embodiment of the present disclosure may be a terminal device. The terminal device can be a mobile terminal device or a non-mobile terminal device. Exemplarily, the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). Assistant, PDA), etc. The non-mobile terminal device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which are not specifically limited in the embodiment of the present disclosure.
本公开实施例提供的内容滚动显示方法的执行主体可以为上述的电子设备,也可以为该电子设备中能够实现该内容滚动显示方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本公开实施例不作限定。下面以电子设备为例,对本公开实施例提供的内容滚动显示方法进行示例性的说明。The execution subject of the content scrolling display method provided by the embodiments of the present disclosure may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the content scrolling display method, which can be specifically based on actual usage requirements. It is determined that the embodiments of the present disclosure are not limited. The following takes an electronic device as an example to illustrate the content scrolling display method provided by the embodiment of the present disclosure.
如图2所示,本公开实施例提供一种内容滚动显示方法。该方法可以应用于电子设备。该方法可以包括下述的S101至S104。As shown in FIG. 2, an embodiment of the present disclosure provides a method for scrolling and displaying content. This method can be applied to electronic devices. The method may include the following S101 to S104.
S101、电子设备接收用户在目标界面中第一位置和第二位置的第一输入。S101. The electronic device receives a user's first input of a first position and a second position in the target interface.
需要说明的是,本公开实施例中,上述目标界面可以为电子设备的屏幕中的、一个用于接收用户输入的滑动区域。It should be noted that, in the embodiment of the present disclosure, the above-mentioned target interface may be a sliding area on the screen of the electronic device for receiving user input.
可选地,本公开实施例中,上述第一位置和第二位置可以为电子设备的目标界面中任意两个不同的触控位置。Optionally, in the embodiment of the present disclosure, the above-mentioned first position and the second position may be any two different touch positions in the target interface of the electronic device.
可选地,本公开实施例中,上述第一输入可以为用户的两个手指分别在目标界面中的第一位置和第二位置的触控输入。Optionally, in the embodiment of the present disclosure, the above-mentioned first input may be a touch input of the user's two fingers at the first position and the second position in the target interface, respectively.
示例性的,如图3或图4所示,第一输入可以包括:第一手指在目标界面中的第一位置(x1,y1)的点触输入、第二手指在目标界面中的第二位置(x2,y2)的点触输入。Exemplarily, as shown in FIG. 3 or FIG. 4, the first input may include: the touch input of the first position (x1, y1) of the first finger in the target interface, and the second input of the second finger in the target interface. Touch input of position (x2, y2).
需要说明的是,本公开实施例是通过用户的两个手指的配合,实现对目标界面中内容的变速滚动显示。例如,如果第一手指在目标界面中的滑动方向为目标界面中内容的滚动方向,那么第二手指用于定位和调整滚动显示的速度。如果第二手指目标界面中的滑动方向为目标界面中内容的滚动方向,那么第一手指用于定位和调整滚动显示的速度。具体可以参照下述实施例中的相关描述,此处不予赘述。It should be noted that the embodiment of the present disclosure realizes the variable-speed scrolling display of the content in the target interface through the cooperation of two fingers of the user. For example, if the sliding direction of the first finger in the target interface is the scroll direction of the content in the target interface, then the second finger is used to locate and adjust the speed of scrolling display. If the sliding direction in the second finger target interface is the scroll direction of the content in the target interface, then the first finger is used to locate and adjust the speed of scrolling display. For details, reference may be made to related descriptions in the following embodiments, which will not be repeated here.
可选地,本公开实施例中,上述目标界面可以为电子设备的屏幕中的任意一个可接受用户输入的区域。例如,该目标界面可以为电子设备的屏幕的整个显示区域,也可以为电 子设备的屏幕的部分显示区域。Optionally, in the embodiment of the present disclosure, the aforementioned target interface may be any area on the screen of the electronic device that can accept user input. For example, the target interface may be the entire display area of the screen of the electronic device, or may be a part of the display area of the screen of the electronic device.
可选地,本公开实施例中,上述目标界面中可以显示有网页、列表或文件等可滑动显示的内容,并且用户可以通过在该目标界面中的滑动输入,触发电子设备滚动更新该目标界面中显示的内容。Optionally, in the embodiment of the present disclosure, the above-mentioned target interface may display slidable content such as webpages, lists, or files, and the user may trigger the electronic device to scroll and update the target interface through sliding input in the target interface Content displayed in.
示例性的,假设电子设备的屏幕的某一目标界面中显示有一个网页。如果用户在网页中上下滑动手指,那么电子设备可以上下滚动显示网页,即沿上下方向更新目标界面中显示的内容。如果用户在网页中左右滑动手指,那么电子设备可以左右滚动显示网页,即沿左右方向更新目标界面中显示的内容。Exemplarily, it is assumed that a web page is displayed on a certain target interface of the screen of the electronic device. If the user slides the finger up and down on the webpage, the electronic device can scroll up and down to display the webpage, that is, update the content displayed in the target interface in the up and down direction. If the user slides the finger left and right on the webpage, the electronic device can scroll the webpage left and right, that is, update the content displayed in the target interface in the left and right directions.
需要说明的是,本公开实施例对接收到第一输入时,电子设备的屏幕显示状态不作具体限定。例如,第一输入可以为在电子设备处于竖屏显示状态的情况下接收到的输入,或者,第一输入也可以为在电子设备处于横屏显示状态的情况下接收到的输入。It should be noted that the embodiment of the present disclosure does not specifically limit the screen display state of the electronic device when the first input is received. For example, the first input may be an input received when the electronic device is in a portrait display state, or the first input may also be an input received when the electronic device is in a landscape display state.
S102、电子设备响应于该第一输入,根据该第一位置和该第二位置,确定第一距离和第二距离。S102. In response to the first input, the electronic device determines a first distance and a second distance according to the first position and the second position.
可选地,本公开实施例中,上述S102中的“根据该第一位置和该第二位置,确定第一距离和第二距离”具体可以包括下述两个步骤:步骤1、将从第一位置到包括第二位置的第二直线的距离,确定为第一距离。步骤2、将从第二位置到包括第一位置的第一直线的距离,确定为第二距离。其中,第一直线与第二直线相互垂直。Optionally, in the embodiment of the present disclosure, “determine the first distance and the second distance according to the first position and the second position” in S102 may specifically include the following two steps: step 1. The distance from a position to the second straight line including the second position is determined as the first distance. Step 2. Determine the distance from the second position to the first straight line including the first position as the second distance. Wherein, the first straight line and the second straight line are perpendicular to each other.
可选地,本公开实施例中,第二直线可以为经过第二位置、且与电子设备的一个边框平行的直线。第二直线可以为经过第一位置、且与电子设备的另一个边框平行的直线。Optionally, in the embodiment of the present disclosure, the second straight line may be a straight line passing through the second position and parallel to a frame of the electronic device. The second straight line may be a straight line passing through the first position and parallel to the other frame of the electronic device.
示例性的,如图3所示,在电子设备接收到用户的第一手指在目标界面中的第一位置(x1,y1)的点触输入、第二手指在目标界面中的第二位置(x2,y2)的点触输入之后,电子设备可以将从第一位置(x1,y1)到包括第二位置(x2,y2)的第二直线的距离Δx,确定为第一距离;并将从第二位置(x2,y2)到包括第一位置(x1,y1)的第一直线的距离Δy,确定为第二距离。Exemplarily, as shown in FIG. 3, the electronic device receives the touch input of the first position (x1, y1) of the user's first finger in the target interface, and the second position of the second finger in the target interface ( After the touch input of x2, y2), the electronic device can determine the distance Δx from the first position (x1, y1) to the second straight line including the second position (x2, y2) as the first distance; The distance Δy from the second position (x2, y2) to the first straight line including the first position (x1, y1) is determined as the second distance.
示例性的,如图4所示,在电子设备接收到用户的第一手指在目标界面中的第一位置(x1,y1)的点触输入、第二手指在目标界面中的第二位置(x2,y2)的点触输入之后,电子设备可以将从第一位置(x1,y1)到包括第二位置(x2,y2)所在的第二直线的距离 Δy,确定为第一距离,并将从第二位置(x2,y2)到包括第一位置(x1,y1)的第一直线的距离Δx,确定为第二距离。Exemplarily, as shown in FIG. 4, the electronic device receives the touch input of the first position (x1, y1) of the user's first finger in the target interface, and the second position of the second finger in the target interface ( After the touch input of x2, y2), the electronic device can determine the distance Δy from the first position (x1, y1) to the second straight line including the second position (x2, y2) as the first distance, and The distance Δx from the second position (x2, y2) to the first straight line including the first position (x1, y1) is determined as the second distance.
需要说明的是,本公开实施例中,包括第一位置的第一直线可以存在多个,包括第二位置的第二直线可以存在多个。当电子设备采用不同的第一直线和第二直线时,电子设备确定的第一距离和第二距离可以不同,具体可以根据实际使用需求确定。例如,如图3所示,第一直线可以为与电子设备的顶部边框和底部边框平行的直线,第二直线可以为与电子设备的左侧边框和右侧边框平行的直线。如图4所示,第一直线可以为与电子设备的左侧边框和右侧边框平行的直线,第二直线可以为与电子设备的顶部边框和底部边框平行的直线。It should be noted that, in the embodiment of the present disclosure, there may be multiple first straight lines including the first position, and multiple second straight lines including the second position may exist. When the electronic device adopts different first and second straight lines, the first distance and the second distance determined by the electronic device may be different, which may be specifically determined according to actual usage requirements. For example, as shown in FIG. 3, the first straight line may be a straight line parallel to the top frame and the bottom frame of the electronic device, and the second straight line may be a straight line parallel to the left frame and the right frame of the electronic device. As shown in FIG. 4, the first straight line may be a straight line parallel to the left and right frames of the electronic device, and the second straight line may be a straight line parallel to the top and bottom frames of the electronic device.
S103、电子设备接收用户的第二输入。S103. The electronic device receives a second input from the user.
可选地,本公开实施例中,上述第二输入可以为在目标界面中的滑动输入、手势输入或者按键输入等。具体可以根据实际使用需求确定,本公开实施例不作限定。Optionally, in the embodiment of the present disclosure, the above-mentioned second input may be a sliding input, a gesture input, or a key input in the target interface. Specifically, it can be determined according to actual usage requirements, and the embodiment of the present disclosure does not limit it.
可选地,针对第二输入为在目标界面中的滑动输入,可以包括下述的(1)或(2)。Optionally, for the second input being a sliding input in the target interface, the following (1) or (2) may be included.
(1)第二输入为以第一位置为起始位置,且沿第一直线的一个方向的滑动输入。(1) The second input is a sliding input along one direction of the first straight line with the first position as the starting position.
可选地,第二输入具体可以为以第一位置为起始位置,第一手指沿第一直线的一个方向的滑动输入。Optionally, the second input may specifically be a sliding input of the first finger along one direction of the first straight line with the first position as the starting position.
示例性的,如图3所示,第二输入可以为以第一位置(x1,y1)为起始位置,且沿第一直线的一个方向F2的滑动输入。或者,第二输入可以为以第一位置(x1,y1)为起始位置,且沿第一直线的与方向F2相反方向的滑动输入。其中,方向F1和方向F2相互垂直。Exemplarily, as shown in FIG. 3, the second input may be a sliding input with the first position (x1, y1) as the starting position and along a direction F2 of the first straight line. Alternatively, the second input may be a sliding input that takes the first position (x1, y1) as the starting position and is along the first straight line opposite to the direction F2. Wherein, the direction F1 and the direction F2 are perpendicular to each other.
示例性的,如图4所示,第二输入可以为以第一位置(x1,y1)为起始位置,且沿第一直线的一个方向F1的滑动输入。或者,第二输入可以为以第一位置(x1,y1)为起始位置,且沿第一直线的与方向F1相反方向的滑动输入。其中,方向F1和方向F2相互垂直。Exemplarily, as shown in FIG. 4, the second input may be a sliding input with the first position (x1, y1) as the starting position and along a direction F1 of the first straight line. Alternatively, the second input may be a sliding input that takes the first position (x1, y1) as the starting position and is along the first straight line in a direction opposite to the direction F1. Wherein, the direction F1 and the direction F2 are perpendicular to each other.
(2)第二输入为以第二位置为起始位置,且沿第二直线的一个方向的滑动输入。(2) The second input is a sliding input along one direction of the second straight line with the second position as the starting position.
可选地,第二输入具体可以为以第二位置为起始位置,第二手指沿第二直线的一个方向的滑动输入。Optionally, the second input may specifically be a sliding input of the second finger along one direction of the second straight line with the second position as the starting position.
示例性的,如图3所示,第二输入可以为以第二位置(x2,y2)为起始位置,且沿第二直线的一个方向F1的滑动输入。或者,第二输入可以为以第二位置(x2,y2)为起始位置,且沿第二直线的与方向F1相反方向的滑动输入。其中,方向F1和方向F2相互垂直。Exemplarily, as shown in FIG. 3, the second input may be a sliding input with the second position (x2, y2) as the starting position and along a direction F1 of the second straight line. Alternatively, the second input may be a sliding input that takes the second position (x2, y2) as the starting position and is along the second straight line opposite to the direction F1. Wherein, the direction F1 and the direction F2 are perpendicular to each other.
示例性的,如图4所示,第二输入可以为以第二位置(x2,y2)为起始位置,且沿第二直线的一个方向F2的滑动输入。或者,第二输入可以为以第二位置(x2,y2)为起始位置,且沿第二直线的与方向F2相反方向的滑动输入。其中,方向F1和方向F2相互垂直。Exemplarily, as shown in FIG. 4, the second input may be a sliding input with the second position (x2, y2) as the starting position and along a direction F2 of the second straight line. Alternatively, the second input may be a sliding input that takes the second position (x2, y2) as the starting position and is along the second straight line opposite to the direction F2. Wherein, the direction F1 and the direction F2 are perpendicular to each other.
需要说明的是,在第二输入为用户的一个手指沿第一直线或第二直线的滑动输入的情况下,用户的其他手指可以离开目标界面,或者,用户的其他手指仍可以在目标界面中进行触控输入,以调整目标界面中内容的滚动速度。具体可以根据实际使用需求确定,本公开实施例不作限定。It should be noted that when the second input is a sliding input of one finger of the user along the first straight line or the second straight line, the other fingers of the user can leave the target interface, or the other fingers of the user can still be on the target interface. Touch input to adjust the scrolling speed of the content in the target interface. Specifically, it can be determined according to actual usage requirements, and the embodiment of the present disclosure does not limit it.
S104、电子设备响应于该第二输入,根据目标距离确定第一速度,并按照该第一速度,滚动显示该目标界面中的内容。S104. In response to the second input, the electronic device determines a first speed according to the target distance, and scrolls and displays content in the target interface according to the first speed.
其中,上述目标距离可以为第一距离或第二距离。Wherein, the above-mentioned target distance may be the first distance or the second distance.
本公开实施例中,上述第一速度可以为电子设备控制目标界面中的内容滚动的速度。In the embodiment of the present disclosure, the above-mentioned first speed may be the speed at which the electronic device controls the content in the target interface to scroll.
需要说明的是,在电子设备按照第一速度,滚动显示目标界面中的内容的过程中,若用于定位和调整滚动显示的速度的手指离开电子设备,且用于控制目标界面中内容的滚动方向的手指继续在目标界面中进行滑动,则电子设备可以继续按照第一速度,滚动显示目标界面中的内容;而若用于控制目标界面中内容的滚动方向的手指离开电子设备,则电子设备可以停止滚动更新目标界面中的内容。It should be noted that when the electronic device scrolls and displays the content in the target interface at the first speed, if the finger used to locate and adjust the scroll display speed leaves the electronic device and is used to control the scrolling of the content in the target interface If the finger continues to slide in the target interface, the electronic device can continue to scroll and display the content in the target interface at the first speed; and if the finger used to control the scrolling direction of the content in the target interface leaves the electronic device, the electronic device You can stop scrolling to update the content in the target interface.
可选地,本公开实施例提供的电子设备中可以设置有滑动控件。在电子设备确定第一速度之后,电子设备可以将第一速度发送至滑动控件,以控制滑动控件可以按照该第一速度,滚动显示该目标界面中的内容。Optionally, the electronic device provided by the embodiment of the present disclosure may be provided with a sliding control. After the electronic device determines the first speed, the electronic device may send the first speed to the sliding control to control the sliding control to scroll and display the content in the target interface according to the first speed.
可选地,本公开实施例中,目标距离越大,第一速度越大。目标距离越小,第一速度越小。可以理解,通过调整目标距离,可以控制目标界面中的内容按照不同的速度滚动。Optionally, in the embodiment of the present disclosure, the greater the target distance, the greater the first speed. The smaller the target distance, the smaller the first speed. It can be understood that by adjusting the target distance, the content in the target interface can be controlled to scroll at different speeds.
可选地,本公开实施例中,若第一距离等于第二距离,则根据第一距离确定的第一速 度与根据第二距离确定的第一速度相等。Optionally, in the embodiment of the present disclosure, if the first distance is equal to the second distance, the first speed determined according to the first distance is equal to the first speed determined according to the second distance.
可选地,本公开实施例中,若第二输入为以第一位置为起始位置,且沿第一直线的一个方向的滑动输入,则目标距离可以为第二距离。或者,若第二输入为以第二位置为起始位置,且沿第二直线的一个方向的滑动输入,则目标距离为第一距离。Optionally, in the embodiment of the present disclosure, if the second input is a sliding input with the first position as the starting position and along one direction of the first straight line, the target distance may be the second distance. Alternatively, if the second input is a sliding input along one direction of the second straight line with the second position as the starting position, the target distance is the first distance.
可选地,在上述S104中的“电子设备响应于第二输入”之后,在上述S104中的“根据目标距离确定第一速度”之前,本公开实施例提供的内容滚动显示方法还可以包括:电子设备根据第二输入在目标界面中的滑动方向,将第一距离或第二距离确定目标距离。Optionally, after "the electronic device responds to the second input" in S104, and before "determining the first speed according to the target distance" in S104, the content scrolling display method provided by the embodiment of the present disclosure may further include: The electronic device determines the target distance by the first distance or the second distance according to the sliding direction of the second input in the target interface.
可选地,若第二输入为以第一位置为起始位置,且沿第一直线的一个方向的滑动输入,则电子设备将第二距离确定目标距离。若第二输入为以第二位置为起始位置,且沿第二直线的一个方向的滑动输入,则将第一距离确定目标距离。Optionally, if the second input is a sliding input with the first position as the starting position and along a direction of the first straight line, the electronic device determines the target distance by the second distance. If the second input is a sliding input along one direction of the second straight line with the second position as the starting position, the first distance is used to determine the target distance.
示例性的,如图3所示,若第二输入为以第一位置(x1,y1)为起始位置,且沿第一直线的一个方向F2的滑动输入,则电子设备可以将第二距离Δy确定为目标距离。或者,若第二输入为以第二位置(x2,y2)为起始位置,且沿第二直线的一个方向F1的滑动输入,则电子设备可以将第一距离Δx确定为目标距离。Exemplarily, as shown in FIG. 3, if the second input is a sliding input with the first position (x1, y1) as the starting position and along a direction F2 of the first straight line, the electronic device can input the second The distance Δy is determined as the target distance. Alternatively, if the second input is a sliding input with the second position (x2, y2) as the starting position and along one direction F1 of the second straight line, the electronic device may determine the first distance Δx as the target distance.
示例性的,如图4所示,若第二输入为以第一位置(x1,y1)为起始位置,且沿第一直线的一个方向F1的滑动输入,则电子设备可以将第二距离Δx确定为目标距离。或者,若第二输入为以第二位置(x2,y2)为起始位置,且沿第二直线的一个方向F2的滑动输入,则电子设备可以将第一距离Δy确定为目标距离。Exemplarily, as shown in FIG. 4, if the second input is a sliding input with the first position (x1, y1) as the starting position and along a direction F1 of the first straight line, the electronic device can input the second The distance Δx is determined as the target distance. Alternatively, if the second input is a sliding input with the second position (x2, y2) as the starting position and along one direction F2 of the second straight line, the electronic device may determine the first distance Δy as the target distance.
本公开实施例提供一种内容滚动显示方法,由于电子设备可以根据用户在目标界面中的两个触控位置,确定两个距离,并根据这两个距离中的一个距离确定滚动速度,因此用户可以根据实际使用需求,通过改变用户在目标界面中的触控位置,控制电子设备调整目标界面中的内容滚动速度,从而可以避免错过关注的内容,或需要耗费较长时间进行滑动操作。如此,本公开实施例提供的内容滚动显示方法的智能化程度较高。The embodiment of the present disclosure provides a content scrolling display method. Since the electronic device can determine two distances according to the two touch positions of the user in the target interface, and determine the scroll speed according to one of the two distances, the user The electronic device can be controlled to adjust the scrolling speed of the content in the target interface by changing the user's touch position in the target interface according to actual usage requirements, so as to avoid missing the content of interest or the need to spend a long time for sliding operations. In this way, the content scrolling display method provided by the embodiments of the present disclosure is highly intelligent.
可选地,本公开实施例中,上述S104中的“根据目标距离确定第一速度”可以通过下述的S104a至S104f中任一项实现。Optionally, in the embodiment of the present disclosure, the "determining the first speed according to the target distance" in the foregoing S104 may be implemented by any one of the following S104a to S104f.
S104a、电子设备将目标距离与第一数值的比值,确定为第一速度。S104a. The electronic device determines the ratio of the target distance to the first value as the first speed.
对于目标距离为第一距离这种情况,假设第一距离用Δx表示,第一数值用Δs表示, 第一速度用v表示,那么v=Δx/Δs。对于目标距离为第二距离这种情况,假设第二距离用Δy表示,第一数值用Δs表示,第一速度用v表示,那么v=Δy/Δs。For the case where the target distance is the first distance, suppose that the first distance is represented by Δx, the first value is represented by Δs, and the first speed is represented by v, then v=Δx/Δs. For the case where the target distance is the second distance, suppose that the second distance is represented by Δy, the first value is represented by Δs, and the first speed is represented by v, then v=Δy/Δs.
示例性的,假设一个倍速阶梯为10个像素,且第一数值为一个倍速阶梯与原始速度k的比值。当第一距离为10个像素时,滚动速度可以为k;当第一距离为20个像素时,滚动速度可以为2k;当第一距离为30个像素时,滚动速度可以为3k。Exemplarily, it is assumed that a double-speed step is 10 pixels, and the first value is the ratio of a double-speed step to the original speed k. When the first distance is 10 pixels, the scroll speed may be k; when the first distance is 20 pixels, the scroll speed may be 2k; when the first distance is 30 pixels, the scroll speed may be 3k.
S104b、电子设备将目标距离与第二数值的乘积,确定为第一速度。S104b. The electronic device determines the product of the target distance and the second value as the first speed.
对于目标距离为第一距离这种情况,假设第一距离用Δx表示,第二数值用Δs表示,第一速度用v表示,那么v=Δx*Δs。对于目标距离为第二距离这种情况,假设第二距离用Δy表示,第二数值用Δs表示,第一速度用v表示,那么v=Δy*Δs。For the case where the target distance is the first distance, suppose that the first distance is represented by Δx, the second value is represented by Δs, and the first speed is represented by v, then v=Δx*Δs. For the case where the target distance is the second distance, suppose that the second distance is represented by Δy, the second value is represented by Δs, and the first speed is represented by v, then v=Δy*Δs.
示例性的,假设一个倍速阶梯为10个像素,且第二数值为原始速度k与一个倍速阶梯的比值。当第一距离为10个像素时,滚动速度可以为k;当第一距离为20个像素时,滚动速度可以为2k;当第一距离为30个像素时,滚动速度可以为3k。Exemplarily, it is assumed that one double-speed step is 10 pixels, and the second value is the ratio of the original speed k to one double-speed step. When the first distance is 10 pixels, the scroll speed may be k; when the first distance is 20 pixels, the scroll speed may be 2k; when the first distance is 30 pixels, the scroll speed may be 3k.
S104c、电子设备对目标距离与第一数值的比值向下取整,并将向下取整后的数值,确定为第一速度。S104c. The electronic device rounds down the ratio of the target distance to the first value, and determines the rounded down value as the first speed.
对于目标距离为第一距离这种情况,假设第一距离用Δx表示,第一数值用Δs表示,第一速度用v表示,那么
Figure PCTCN2020113045-appb-000001
对于目标距离为第二距离这种情况,假设第二距离用Δy表示,第一数值用Δs表示,第一速度用v表示,那么
Figure PCTCN2020113045-appb-000002
For the case where the target distance is the first distance, suppose that the first distance is represented by Δx, the first value is represented by Δs, and the first speed is represented by v, then
Figure PCTCN2020113045-appb-000001
For the case where the target distance is the second distance, suppose that the second distance is represented by Δy, the first value is represented by Δs, and the first speed is represented by v, then
Figure PCTCN2020113045-appb-000002
示例性的,假设一个倍速阶梯为10个像素,且第一数值为一个倍速阶梯与原始速度k的比值。当第一距离为10个像素时,滚动速度可以为k;当第一距离为15个像素时,滚动速度可以为k;当第一距离为25个像素时,滚动速度可以为2k;当第一距离为35个像素时,滚动速度可以为3k。Exemplarily, it is assumed that a double-speed step is 10 pixels, and the first value is the ratio of a double-speed step to the original speed k. When the first distance is 10 pixels, the scroll speed can be k; when the first distance is 15 pixels, the scroll speed can be k; when the first distance is 25 pixels, the scroll speed can be 2k; When a distance is 35 pixels, the scroll speed can be 3k.
S104d、电子设备对目标距离与第一数值的比值向上取整,并将向上取整后的数值,确定为第一速度。S104d. The electronic device rounds up the ratio of the target distance to the first value, and determines the rounded up value as the first speed.
对于目标距离为第一距离这种情况,假设第一距离用Δx表示,第一数值用Δs表示,第一速度用v表示,那么
Figure PCTCN2020113045-appb-000003
对于目标距离为第二距离这种情况,假设第二距离用Δy表示,第一数值用Δs表示,第一速度用v表示,那么
Figure PCTCN2020113045-appb-000004
For the case where the target distance is the first distance, suppose that the first distance is represented by Δx, the first value is represented by Δs, and the first speed is represented by v, then
Figure PCTCN2020113045-appb-000003
For the case where the target distance is the second distance, suppose that the second distance is represented by Δy, the first value is represented by Δs, and the first speed is represented by v, then
Figure PCTCN2020113045-appb-000004
示例性的,假设一个倍速阶梯为10个像素,且第一数值为一个倍速阶梯与原始速度k 的比值。当第一距离为10个像素时,滚动速度可以为k;当第一距离为15个像素时,滚动速度可以为2k;当第一距离为25个像素时,滚动速度可以为3k;当第一距离为35个像素时,滚动速度可以为4k。Exemplarily, it is assumed that a double-speed step is 10 pixels, and the first value is the ratio of a double-speed step to the original speed k. When the first distance is 10 pixels, the scroll speed can be k; when the first distance is 15 pixels, the scroll speed can be 2k; when the first distance is 25 pixels, the scroll speed can be 3k; When a distance is 35 pixels, the scroll speed can be 4k.
S104e、电子设备对目标距离与第二数值的乘积向下取整,并将向下取整后的数值,确定为第一速度。S104e. The electronic device rounds down the product of the target distance and the second value, and determines the rounded down value as the first speed.
对于目标距离为第一距离这种情况,假设第一距离用Δx表示,第二数值用Δs表示,第一速度用v表示,那么
Figure PCTCN2020113045-appb-000005
对于目标距离为第二距离这种情况,假设第二距离用Δy表示,第二数值用Δs表示,第一速度用v表示,那么
Figure PCTCN2020113045-appb-000006
For the case where the target distance is the first distance, suppose the first distance is represented by Δx, the second value is represented by Δs, and the first speed is represented by v, then
Figure PCTCN2020113045-appb-000005
For the case where the target distance is the second distance, suppose that the second distance is represented by Δy, the second value is represented by Δs, and the first speed is represented by v, then
Figure PCTCN2020113045-appb-000006
示例性的,假设一个倍速阶梯为10个像素,且第二数值为原始速度k与一个倍速阶梯的比值。当第一距离为10个像素时,滚动速度可以为k;当第一距离为15个像素时,滚动速度可以为k;当第一距离为25个像素时,滚动速度可以为2k;当第一距离为35个像素时,滚动速度可以为3k。Exemplarily, it is assumed that one double-speed step is 10 pixels, and the second value is the ratio of the original speed k to one double-speed step. When the first distance is 10 pixels, the scroll speed can be k; when the first distance is 15 pixels, the scroll speed can be k; when the first distance is 25 pixels, the scroll speed can be 2k; When a distance is 35 pixels, the scroll speed can be 3k.
S104f、电子设备对目标距离与第二数值的乘积向上取整,并将向上取整后的数值,确定为第一速度。S104f. The electronic device rounds up the product of the target distance and the second value, and determines the rounded up value as the first speed.
对于目标距离为第一距离这种情况,假设第一距离用Δx表示,第二数值用Δs表示,第一速度用v表示,那么
Figure PCTCN2020113045-appb-000007
对于目标距离为第二距离这种情况,假设第二距离用Δy表示,第二数值用Δs表示,第一速度用v表示,那么
Figure PCTCN2020113045-appb-000008
For the case where the target distance is the first distance, suppose the first distance is represented by Δx, the second value is represented by Δs, and the first speed is represented by v, then
Figure PCTCN2020113045-appb-000007
For the case where the target distance is the second distance, suppose that the second distance is represented by Δy, the second value is represented by Δs, and the first speed is represented by v, then
Figure PCTCN2020113045-appb-000008
示例性的,假设一个倍速阶梯为10个像素,且第二数值为原始速度k与一个倍速阶梯的比值。当第一距离为10个像素时,滚动速度可以为k;当第一距离为15个像素时,滚动速度可以为2k;当第一距离为25个像素时,滚动速度可以为3k;当第一距离为35个像素时,滚动速度可以为4k。Exemplarily, it is assumed that one double-speed step is 10 pixels, and the second value is the ratio of the original speed k to one double-speed step. When the first distance is 10 pixels, the scroll speed can be k; when the first distance is 15 pixels, the scroll speed can be 2k; when the first distance is 25 pixels, the scroll speed can be 3k; When a distance is 35 pixels, the scroll speed can be 4k.
需要说明的是,对于S104a至S104f中的第一数值和第二数值的取值大小,本公开实施例不作具体限定,可以根据实际使用需求确定。It should be noted that the values of the first numerical value and the second numerical value in S104a to S104f are not specifically limited in the embodiment of the present disclosure, and can be determined according to actual usage requirements.
本公开实施例提供的内容滚动显示方法,由于电子设备可以根据目标距离与第一数值,或根据目标距离与第二数值,获取第一速度,因此用户可以通过调整目标距离,控制目标界面中的内容按照不同的速度滚动。例如,可以通过增加目标距离,提高目标界面中的内容的滚动速度,或者,可以通过减小目标距离,降低目标界面中的内容的滚动速度。According to the content scrolling display method provided by the embodiments of the present disclosure, since the electronic device can obtain the first speed according to the target distance and the first value, or according to the target distance and the second value, the user can control the target interface by adjusting the target distance. The content scrolls at different speeds. For example, the target distance can be increased to increase the scrolling speed of the content in the target interface, or the target distance can be reduced to reduce the scrolling speed of the content in the target interface.
可选地,本公开实施例中,第一种可能的实现方式为,在第二输入具体为以第一位置为起始位置,沿第一直线的一个方向的滑动输入的情况下,本公开实施例提供的内容滚动显示方法还可以包括下述的S105。第二种可能的实现方式为,在第二输入具体为以第二位置为起始位置,沿第二直线的一个方向的滑动输入的情况下,本公开实施例提供的内容滚动显示方法还可以包括下述的S106。Optionally, in the embodiment of the present disclosure, the first possible implementation is that when the second input is specifically a sliding input along one direction of the first straight line with the first position as the starting position, the present The content scrolling display method provided by the disclosed embodiment may further include the following S105. The second possible implementation manner is that when the second input is specifically a sliding input along one direction of the second straight line with the second position as the starting position, the content scrolling display method provided by the embodiment of the present disclosure may also Including the following S106.
S105、在按照第一速度,滚动显示目标界面中的内容的过程中,若接收到由第二位置移动到第三位置的第三输入,则电子设备响应于第三输入,根据从该第三位置到第一直线的距离,确定第二速度,并按照该第二速度,滚动显示该目标界面中的内容。S105. In the process of scrolling and displaying the content in the target interface at the first speed, if a third input of moving from the second position to the third position is received, the electronic device responds to the third input according to the third input. The distance from the position to the first straight line is determined, and the second speed is determined, and the content in the target interface is scrolled and displayed according to the second speed.
对于电子设备根据从第三位置到第一直线的距离,确定第二速度的具体实现方式,可以参照上述实施例中关于根据目标距离确定第一速度的相关描述,此处不予赘述。For the specific implementation manner of determining the second speed by the electronic device according to the distance from the third position to the first straight line, reference may be made to the related description of determining the first speed according to the target distance in the foregoing embodiment, which will not be repeated here.
本公开实施例中,第三位置为目标界面中除第二位置以外的任意位置。In the embodiment of the present disclosure, the third position is any position other than the second position in the target interface.
可选地,第二输入具体为以第一位置为起始位置,第一手指沿第一直线的一个方向的滑动输入。第三输入具体可以为第二手指由第二位置移动到第三位置的滑动输出。Optionally, the second input is specifically a sliding input of the first finger along one direction of the first straight line with the first position as the starting position. The third input may specifically be a sliding output in which the second finger moves from the second position to the third position.
示例性的,如图5中的(a)所示,假设第一距离为Δx,第二距离为Δy,第二输入为以第一位置(x1,y1)为起始位置,用户的第一手指沿第一直线的一个方向F2的滑动输入,那么,在电子设备根据第二距离为Δy确定第一速度之后,电子设备可以按照第一速度,沿着方向F2滚动显示滚动区域中的内容。如图5中的(b)所示,在电子设备按照第一速度,滚动显示目标界面中的内容的过程中,如果用户将在第二位置(x2,y2)处的第二手指滑动到第三位置(x2,y3),那么电子设备可以响应于滑动输入,根据从第三位置(x2,y3)到第一直线的距离Δp,确定第二速度,并按照该第二速度,滚动显示该目标界面中的内容。Exemplarily, as shown in Figure 5(a), suppose that the first distance is Δx, the second distance is Δy, and the second input is that the first position (x1, y1) is the starting position, and the user’s first The finger slides input along one direction F2 of the first straight line. Then, after the electronic device determines the first speed according to the second distance Δy, the electronic device can scroll and display the content in the scroll area along the direction F2 according to the first speed . As shown in (b) in Figure 5, when the electronic device scrolls and displays the content in the target interface at the first speed, if the user slides the second finger at the second position (x2, y2) to the first Three positions (x2, y3), then the electronic device can respond to the sliding input to determine the second speed according to the distance Δp from the third position (x2, y3) to the first straight line, and scroll the display according to the second speed The content in the target interface.
S106、在按照第一速度,滚动显示目标界面中的内容的过程中,若接收到由第一位置移动到第四位置的第四输入,则电子设备响应于第四输入,根据从该第四位置到第二直线的距离,确定第三速度,并按照该第三速度,滚动显示该目标界面中的内容。S106. In the process of scrolling and displaying the content in the target interface at the first speed, if a fourth input of moving from the first position to the fourth position is received, the electronic device responds to the fourth input according to the fourth input. The distance from the position to the second straight line is determined, and the third speed is determined, and the content in the target interface is scrolled and displayed according to the third speed.
对于电子设备根据从第四位置到第二直线的距离,确定第三速度的具体实现方式,可以参照上述实施例中关于根据目标距离确定第一速度的相关描述,此处不予赘述。For the specific implementation manner of determining the third speed by the electronic device according to the distance from the fourth position to the second straight line, reference may be made to the related description of determining the first speed according to the target distance in the foregoing embodiment, which will not be repeated here.
本公开实施例中,第四位置为目标界面中除第一位置以外的任意位置。In the embodiment of the present disclosure, the fourth position is any position other than the first position in the target interface.
可选地,第二输入具体为以第一位置为起始位置,第二手指沿第一直线的一个方向的滑动输入。第四输入具体可以为第一手指由第二位置移动到第三位置的滑动输出。Optionally, the second input is specifically a sliding input of the second finger along one direction of the first straight line with the first position as the starting position. The fourth input may specifically be a sliding output in which the first finger moves from the second position to the third position.
示例性的,如图6中的(a)所示,假设第一距离为Δx,第二距离为Δy,第二输入为以第二位置(x2,y2)为起始位置,用户的第一手指沿第二直线的一个方向F1的滑动输入,那么,在电子设备根据第一距离为Δx确定第一速度之后,电子设备可以按照第一速度,沿着方向F1滚动显示滚动区域中的内容。如图6中的(b)所示,在电子设备按照第一速度,滚动显示目标界面中的内容的过程中,如果用户将在第一位置(x1,y1)处的第二手指滑动到第四位置(x3,y3),那么电子设备可以响应于滑动输入,根据从第四位置(x3,y3)到第二直线的距离Δq,确定第三速度,并按照该第三速度,滚动显示该目标界面中的内容。Exemplarily, as shown in Figure 6(a), suppose that the first distance is Δx, the second distance is Δy, and the second input is the second position (x2, y2) as the starting position, and the user’s first The finger slides input along one direction F1 of the second straight line. Then, after the electronic device determines the first speed according to the first distance Δx, the electronic device can scroll and display the content in the scroll area along the direction F1 according to the first speed. As shown in Figure 6(b), when the electronic device scrolls and displays the content in the target interface at the first speed, if the user slides the second finger at the first position (x1, y1) to the first position (x1, y1), Four positions (x3, y3), the electronic device can determine the third speed according to the distance Δq from the fourth position (x3, y3) to the second straight line in response to the sliding input, and scroll to display the The content in the target interface.
需要说明的是,本公开实施例中,第三速度与第二速度可以相同,也可以不同。具体地,如果从第三位置到第一直线的距离等于从第四位置到第二直线的距离,那么第三速度与第二速度相同。如果从第三位置到第一直线的距离不等于从第四位置到第二直线的距离,那么第三速度与第二速度不同。It should be noted that, in the embodiment of the present disclosure, the third speed and the second speed may be the same or different. Specifically, if the distance from the third position to the first straight line is equal to the distance from the fourth position to the second straight line, then the third speed is the same as the second speed. If the distance from the third position to the first straight line is not equal to the distance from the fourth position to the second straight line, then the third speed is different from the second speed.
本公开实施例提供的内容滚动显示方法,当针对与第二输入在目标界面中的滑动方向垂直方向,两指之间的距离发生改变时,由于可以重新获取距离,并根据重新获取距离计算滑动速率,因此电子设备可以按照重新计算的滑动速率,滚动显示该目标界面中的内容。如此,用户可以通过调整两指之间的距离,控制目标界面中的内容按照不同的速度滚动。In the content scrolling display method provided by the embodiments of the present disclosure, when the distance between the two fingers changes in the direction perpendicular to the sliding direction of the second input in the target interface, the distance can be retrieved, and the sliding can be calculated according to the retrieved distance. Therefore, the electronic device can scroll and display the content in the target interface according to the recalculated sliding rate. In this way, the user can control the content in the target interface to scroll at different speeds by adjusting the distance between the two fingers.
可选地,结合图2,如图7所示,在第二输入为在目标界面中的滑动输入的情况下,在上述S104中的“电子设备响应于第二输入,根据目标距离确定第一速度”(以下可称为S104A)之后,在上述S104中的“按照第一速度,滚动显示该目标界面中的内容”(以下可称为S104B)之前,本公开实施例提供的内容滚动显示方法还可以包括下述的S107。并且,S104B具体可以通过下述的S104B1实现。Optionally, in conjunction with FIG. 2, as shown in FIG. 7, in the case that the second input is a sliding input in the target interface, in the above S104, "the electronic device responds to the second input and determines the first After “speed” (hereinafter may be referred to as S104A), and before “scrolling and displaying the content in the target interface at the first speed” (hereinafter may be referred to as S104B) in S104, the content scrolling display method provided by the embodiment of the present disclosure It may also include the following S107. In addition, S104B can be specifically implemented by the following S104B1.
S104A、电子设备响应于第二输入,根据目标距离确定第一速度。S104A. In response to the second input, the electronic device determines the first speed according to the target distance.
S107、电子设备根据该第一速度和第二输入在目标界面中的滑动距离,获取滚动距离。S107. The electronic device obtains the scroll distance according to the first speed and the sliding distance of the second input in the target interface.
可选地,上述滚动距离可以为第一速度和第二输入在目标界面中的滑动距离的乘积。Optionally, the aforementioned scroll distance may be the product of the first speed and the sliding distance of the second input in the target interface.
示例性的,假设第一速度用v表示,第二输入在目标界面中的滑动距离用r表示,滚 动距离用h表示,那么h=v*r。Exemplarily, assuming that the first speed is represented by v, the sliding distance of the second input in the target interface is represented by r, and the rolling distance is represented by h, then h=v*r.
S104B1、电子设备按照该第一速度,沿该第二输入在目标界面中的滑动方向,滚动显示该目标界面中的内容,其中,滚动显示的起始位置到滚动显示的终止位置之间的距离为该滚动距离。S104B1. The electronic device scrolls and displays the content in the target interface along the sliding direction of the second input in the target interface according to the first speed, wherein the distance between the start position of the scroll display and the end position of the scroll display Is the scroll distance.
示例性的,如图5中的(a)所示,假设第二输入在目标界面中的滑动方向为方向F2,那么在电子设备确定第一速度和滚动距离之后,电子设备可以按照该第一速度,沿方向F2,滚动显示该目标界面中的内容。直至从滚动显示的起始位置到滚动显示的终止位置之间的距离为滚动距离,电子设备停止滚动显示。Exemplarily, as shown in Figure 5(a), assuming that the sliding direction of the second input in the target interface is the direction F2, then after the electronic device determines the first speed and the scrolling distance, the electronic device can follow the first Speed, along the direction F2, scroll to display the contents of the target interface. Until the distance from the start position of the scroll display to the end position of the scroll display is the scroll distance, the electronic device stops the scroll display.
示例性的,如图6中的(a)所示,假设第二输入在目标界面中的滑动方向为方向F1,那么在电子设备确定第一速度和滚动距离之后,电子设备可以按照该第一速度,沿方向F1,滚动显示该目标界面中的内容。直至从滚动显示的起始位置到滚动显示的终止位置之间的距离为滚动距离,电子设备停止滚动显示。Exemplarily, as shown in Figure 6(a), assuming that the sliding direction of the second input in the target interface is the direction F1, then after the electronic device determines the first speed and the scroll distance, the electronic device can follow the first Speed, along the direction F1, scroll to display the contents of the target interface. Until the distance from the start position of the scroll display to the end position of the scroll display is the scroll distance, the electronic device stops the scroll display.
本公开实施例提供的内容滚动显示方法,可以按照获取的速度,沿第二输入在目标界面中的滑动方向,将目标界面中的内容滚动显示一定距离。如此,对于没有滚动条的电子设备,用户也可以通过浏览需求,快速或慢速浏览显示的内容,即便于用户浏览内容。The content scrolling display method provided by the embodiment of the present disclosure can scroll and display the content in the target interface for a certain distance along the sliding direction of the second input in the target interface according to the acquisition speed. In this way, for electronic devices without scroll bars, users can also browse the displayed content quickly or slowly based on browsing requirements, even if the user browses the content.
可选地,对于具有双指缩放功能的电子设备,双指缩放功能与滚动显示功能均为双指触控输入,因此这两个功能可能冲突。本公开实施例提供的内容滚动显示方法,可以在接收到用户的在第一位置和第二位置的输入之后,可以先显示一个目标控件,以提示用户滚动显示功能或其他双指操作功能(例如双指缩放功能)。具体的,上述S102具体可以通过下述的S102A和S102B。Optionally, for an electronic device with a two-finger zoom function, both the two-finger zoom function and the scroll display function are two-finger touch input, so these two functions may conflict. The content scrolling display method provided by the embodiments of the present disclosure may first display a target control after receiving the user's input at the first position and the second position to prompt the user to scroll the display function or other two-finger operation functions (for example, Two-finger zoom function). Specifically, the above S102 may specifically pass the following S102A and S102B.
S102A、电子设备响应于第一输入,显示目标控件。S102A. In response to the first input, the electronic device displays the target control.
其中,上述目标控件用于提示用户是否通过滑动输入,滚动显示目标界面中的内容。Wherein, the above-mentioned target control is used to prompt the user whether to scroll and display content in the target interface by sliding input.
可选地,本公开实施例中,上述目标控件可以为一个悬浮控件或一个悬浮窗。Optionally, in the embodiment of the present disclosure, the above-mentioned target control may be a floating control or a floating window.
可选地,本公开实施例中,上述目标控件可以以一定透明度显示在电子设备的中。Optionally, in the embodiments of the present disclosure, the above-mentioned target control may be displayed in the electronic device with a certain degree of transparency.
S102B、电子设备响应于接收到的对该目标控件的目标输入,根据该第一位置和该第二位置,确定第一距离和第二距离。S102B. In response to the received target input to the target control, the electronic device determines a first distance and a second distance according to the first position and the second position.
可选地,本公开实施例提供的内容滚动显示方法还可以包括:电子设备在屏幕中持续 显示目标控件。可以理解,电子设备通过持续显示目标控件,可以方便用户对滚动显示功能与双指缩放功能等多个功能进行切换。Optionally, the content scrolling display method provided by the embodiment of the present disclosure may further include: the electronic device continuously displays the target control on the screen. It can be understood that, by continuously displaying the target control, the electronic device can facilitate the user to switch multiple functions such as the scrolling display function and the two-finger zoom function.
示例性的,在电子设备接收到第一手指和第二手指触控目标界面的第一位置和第二位置之后,电子设备可以显示悬浮窗“请选择双指缩放功能或滚动显示功能”。如果用户选择滚动显示功能,则电子设备可以根据该第一位置和该第二位置,确定第一距离和第二距离,并执行后续的S103和S104,即电子设备可以执行滚动显示功能。如果用户选择双指缩放功能,则电子设备可以根据第一手指和第二手指的位置变化,对目标界面中的内容进行缩放显示,即电子设备可以执行双指缩放功能。Exemplarily, after the electronic device receives the first position and the second position of the touch target interface of the first finger and the second finger, the electronic device may display a floating window “please select the two-finger zoom function or the scroll display function”. If the user selects the scroll display function, the electronic device can determine the first distance and the second distance according to the first position and the second position, and perform subsequent S103 and S104, that is, the electronic device can perform the scroll display function. If the user selects the two-finger zoom function, the electronic device can zoom and display the content in the target interface according to the position changes of the first finger and the second finger, that is, the electronic device can perform the two-finger zoom function.
本公开实施例提供的内容滚动显示方法,在滚动显示功能与其他双指操作功能(例如双指缩放功能)冲突时,通过显示目标控件,可以方便用户根据实际使用需求,从多个功能中选择一个功能,即提高了操作便捷性。In the content scrolling display method provided by the embodiments of the present disclosure, when the scrolling display function conflicts with other two-finger operation functions (such as the two-finger zoom function), by displaying the target control, it is convenient for the user to choose from multiple functions according to actual usage requirements. One function is to improve the convenience of operation.
如图8所示,本公开实施例提供一种电子设备800。该电子设备包括接收模块801、确定模块802和显示模块803。其中,接收模块801,可以用于接收用户在目标界面中第一位置和第二位置的第一输入。确定模块802,可以用于响应于接收模块801接收的该第一输入,根据该第一位置和该第二位置,确定第一距离和第二距离。接收模块801,还可以用于接收用户的第二输入。确定模块802,还可以用于响应于接收模块801接收的该第二输入,根据目标距离确定第一速度,该目标距离可以为该第一距离或该第二距离。显示模块803,可以用于按照确定模块802确定的该第一速度,滚动显示该目标界面中的内容。As shown in FIG. 8, an embodiment of the present disclosure provides an electronic device 800. The electronic device includes a receiving module 801, a determining module 802, and a display module 803. Wherein, the receiving module 801 can be used to receive the user's first input of the first position and the second position in the target interface. The determining module 802 may be configured to determine the first distance and the second distance according to the first position and the second position in response to the first input received by the receiving module 801. The receiving module 801 can also be used to receive a second input from the user. The determining module 802 may also be configured to determine the first speed according to the target distance in response to the second input received by the receiving module 801, and the target distance may be the first distance or the second distance. The display module 803 may be configured to scroll and display the content in the target interface according to the first speed determined by the determining module 802.
可选地,本公开实施例中,确定模块802,具体可以用于将从第一位置到包括第二位置的第二直线的距离,确定为第一距离;并将从第二位置到包括第一位置的第一直线的距离,确定为第二距离。其中,第一直线与第二直线相互垂直。Optionally, in the embodiment of the present disclosure, the determining module 802 may be specifically configured to determine the distance from the first position to the second straight line including the second position as the first distance; and to determine the distance from the second position to the second straight line including the second position. The distance of the first straight line of a position is determined as the second distance. Wherein, the first straight line and the second straight line are perpendicular to each other.
可选地,本公开实施例中,若第二输入为以第一位置为起始位置,且沿第一直线的一个方向的滑动输入,则目标距离可以为第二距离。或者,若第二输入为以第二位置为起始位置,且沿第二直线的一个方向的滑动输入,则目标距离可以为第一距离。Optionally, in the embodiment of the present disclosure, if the second input is a sliding input with the first position as the starting position and along one direction of the first straight line, the target distance may be the second distance. Alternatively, if the second input is a sliding input with the second position as the starting position and along the second straight line, the target distance may be the first distance.
可选地,本公开实施例中,第二输入具体可以为以第一位置为起始位置,沿第一直线的一个方向的滑动输入。确定模块802,还可以用于在按照第一速度,滚动显示目标界面中的内容的过程中,若接收到由第二位置移动到第三位置的第三输入,则响应于第三输入, 根据从该第三位置到第一直线的距离,确定第二速度。显示模块803,还可以用于按照确定模块802确定的该第二速度,滚动显示目标界面中的内容。Optionally, in the embodiment of the present disclosure, the second input may specifically be a sliding input along one direction of the first straight line with the first position as the starting position. The determining module 802 can also be used to, in the process of scrolling and displaying the content in the target interface according to the first speed, if a third input of moving from the second position to the third position is received, in response to the third input, according to The distance from the third position to the first straight line determines the second speed. The display module 803 may also be configured to scroll and display the content in the target interface according to the second speed determined by the determining module 802.
可选地,本公开实施例中,第二输入具体可以为以第二位置为起始位置,沿第二直线的一个方向的滑动输入。确定模块802,还可以用于在按照第一速度,滚动显示目标界面中的内容的过程中,若接收到由第一位置移动到第四位置的第四输入,则响应于第四输入,根据从该第四位置到第二直线的距离,确定第三速度。显示模块803,还可以用于按照确定模块802确定的该第三速度,滚动显示目标界面中的内容。Optionally, in the embodiment of the present disclosure, the second input may specifically be a sliding input along one direction of the second straight line with the second position as the starting position. The determining module 802 can also be used to, in the process of scrolling and displaying the content in the target interface at the first speed, if a fourth input of moving from the first position to the fourth position is received, in response to the fourth input, according to The distance from the fourth position to the second straight line determines the third speed. The display module 803 may also be configured to scroll and display the content in the target interface according to the third speed determined by the determining module 802.
可选地,本公开实施例中,第二输入可以为在目标界面中的滑动输入。结合图8,如图9所示,本公开实施例提供的电子设备还可以包括获取模块804。获取模块804,可以用于根据确定模块802确定的第一速度和第二输入在目标界面中的滑动距离,获取滚动距离。显示模块803,具体可以用于按照该第一速度,沿第二输入在目标界面中的滑动方向,滚动显示目标界面中的内容。其中,滚动显示的起始位置到滚动显示的终止位置之间的距离为该滚动距离。Optionally, in the embodiment of the present disclosure, the second input may be a sliding input in the target interface. With reference to FIG. 8, as shown in FIG. 9, the electronic device provided by the embodiment of the present disclosure may further include an obtaining module 804. The obtaining module 804 may be used to obtain the scroll distance according to the first speed determined by the determining module 802 and the sliding distance of the second input in the target interface. The display module 803 may be specifically configured to scroll and display the content in the target interface along the sliding direction of the second input in the target interface according to the first speed. Wherein, the distance from the start position of the scroll display to the end position of the scroll display is the scroll distance.
可选地,本公开实施例中,确定模块802,具体可以用于将目标距离与第一数值的比值,确定为第一速度;或者,将目标距离与第二数值的乘积,确定为第一速度。Optionally, in the embodiment of the present disclosure, the determining module 802 may be specifically configured to determine the ratio of the target distance to the first value as the first speed; or, to determine the product of the target distance and the second value as the first speed. speed.
可选地,本公开实施例中,确定模块802,还可以用于在根据目标距离确定第一速度之前,根据第二输入在目标界面中的滑动方向,将第一距离或第二距离确定目标距离。Optionally, in the embodiment of the present disclosure, the determining module 802 may also be used to determine the target distance according to the sliding direction of the second input in the target interface before determining the first speed according to the target distance. distance.
本公开实施例提供的电子设备能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided in the embodiments of the present disclosure can implement each process implemented by the electronic device in the foregoing method embodiments, and to avoid repetition, details are not described herein again.
本公开实施例提供一种电子设备,由于电子设备可以根据用户在目标界面中的两个触控位置,确定两个距离,并根据这两个距离中的一个距离确定滚动速度,因此用户可以根据实际使用需求,通过改变用户在目标界面中的触控位置,控制电子设备调整目标界面中的内容滚动速度,从而可以避免错过关注的内容,或需要耗费较长时间进行滑动操作。如此,本公开实施例提供的电子设备的智能化程度较高。The embodiments of the present disclosure provide an electronic device. Since the electronic device can determine two distances according to the two touch positions of the user in the target interface, and determine the scrolling speed according to one of the two distances, the user can determine the scroll speed according to the two touch positions of the user in the target interface. Practical requirements are to control the electronic device to adjust the scrolling speed of the content in the target interface by changing the user's touch position in the target interface, so as to avoid missing the content of interest or the need to spend a long time for sliding operations. In this way, the electronic device provided by the embodiments of the present disclosure is highly intelligent.
图10为本公开实施例提供的一种电子设备的硬件结构示意图。该电子设备可以为终端设备。如图10所示,该终端设备200包括但不限于:射频单元201、网络模块202、音频输出单元203、输入单元204、传感器205、显示单元206、用户输入单元207、接口单 元208、存储器209、处理器210、以及电源211等部件。本领域技术人员可以理解,图10中示出的终端设备结构并不构成对终端设备的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,终端设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、以及计步器等。FIG. 10 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the disclosure. The electronic device may be a terminal device. As shown in FIG. 10, the terminal device 200 includes but is not limited to: a radio frequency unit 201, a network module 202, an audio output unit 203, an input unit 204, a sensor 205, a display unit 206, a user input unit 207, an interface unit 208, and a memory 209 , The processor 210, and the power supply 211. Those skilled in the art can understand that the structure of the terminal device shown in FIG. 10 does not constitute a limitation on the terminal device, and the terminal device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present disclosure, terminal devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminal devices, wearable devices, and pedometers.
其中,用户输入单元207,可以用于接收用户在目标界面中第一位置和第二位置的第一输入。处理器210,可以用于响应于用户输入单元207接收的该第一输入,根据该第一位置和该第二位置,确定第一距离和第二距离。用户输入单元207,还可以用于接收用户的第二输入。处理器210,还可以用于响应于用户输入单元207接收的该第二输入,根据目标距离确定第一速度,该目标距离为该第一距离或该第二距离。显示单元206,可以用于按照处理器210确定的该第一速度,滚动显示该目标界面中的内容。The user input unit 207 may be used to receive the first input of the user in the first position and the second position in the target interface. The processor 210 may be configured to determine the first distance and the second distance according to the first position and the second position in response to the first input received by the user input unit 207. The user input unit 207 may also be used to receive a second input from the user. The processor 210 may also be configured to determine a first speed according to a target distance in response to the second input received by the user input unit 207, where the target distance is the first distance or the second distance. The display unit 206 may be configured to scroll and display the content in the target interface according to the first speed determined by the processor 210.
本公开实施例提供一种终端设备,由于终端设备可以根据用户在目标界面中的两个触控位置,确定两个距离,并根据这两个距离中的一个距离确定滚动速度,因此用户可以根据实际使用需求,通过改变用户在目标界面中的触控位置,控制终端设备调整目标界面中的内容滚动速度,从而可以避免错过关注的内容,或需要耗费较长时间进行滑动操作。如此,本公开实施例提供的终端设备的智能化程度较高。The embodiment of the present disclosure provides a terminal device. Since the terminal device can determine two distances according to the two touch positions of the user in the target interface, and determine the scrolling speed according to one of the two distances, the user can determine the scroll speed according to the two touch positions of the user in the target interface. Practical requirements are to control the terminal device to adjust the scrolling speed of the content in the target interface by changing the user's touch position in the target interface, so as to avoid missing the content of interest or the need to spend a long time for sliding operations. In this way, the terminal device provided by the embodiments of the present disclosure is highly intelligent.
应理解的是,本公开实施例中,射频单元201可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器210处理。另外,将上行的数据发送给基站。通常,射频单元201包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元201还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present disclosure, the radio frequency unit 201 may be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving downlink data from the base station, it is sent to the processor 210 for processing. In addition, the uplink data is sent to the base station. Generally, the radio frequency unit 201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 201 can also communicate with the network and other devices through a wireless communication system.
终端设备通过网络模块202为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The terminal device provides users with wireless broadband Internet access through the network module 202, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元203可以将射频单元201或网络模块202接收的或者在存储器209中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元203还可以提供与终端设备200执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元203包括扬声器、蜂鸣器以及受话器等。The audio output unit 203 can convert the audio data received by the radio frequency unit 201 or the network module 202 or stored in the memory 209 into audio signals and output them as sounds. Moreover, the audio output unit 203 may also provide audio output related to a specific function performed by the terminal device 200 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 203 includes a speaker, a buzzer, a receiver, and the like.
输入单元204用于接收音频或视频信号。输入单元204可以包括图形处理器(graphics processing unit,GPU)2041和麦克风2042,图形处理器2041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元206上。经图形处理器2041处理后的图像帧可以存储在存储器209(或其它存储介质)中或者经由射频单元201或网络模块202进行发送。麦克风2042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元201发送到移动通信基站的格式输出。The input unit 204 is used to receive audio or video signals. The input unit 204 may include a graphics processing unit (GPU) 2041 and a microphone 2042. The graphics processing unit 2041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frame may be displayed on the display unit 206. The image frame processed by the graphics processor 2041 may be stored in the memory 209 (or other storage medium) or sent via the radio frequency unit 201 or the network module 202. The microphone 2042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 201 in the case of a telephone call mode for output.
终端设备200还包括至少一种传感器205,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板2061的亮度,接近传感器可在终端设备200移动到耳边时,关闭显示面板2061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。传感器205还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The terminal device 200 also includes at least one sensor 205, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 2061 according to the brightness of the ambient light. The proximity sensor can close the display panel 2061 and the display panel 2061 when the terminal device 200 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games) , Magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc. The sensor 205 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.
显示单元206用于显示由用户输入的信息或提供给用户的信息。显示单元206可包括显示面板2061,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板2061。The display unit 206 is used to display information input by the user or information provided to the user. The display unit 206 may include a display panel 2061, and the display panel 2061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元207可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元207包括触控面板2071以及其他输入设备2072。触控面板2071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板2071上或在触控面板2071附近的操作)。触控面板2071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器。触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器210,接收处理器210发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板2071。除了触控面板2071,用户输入单元207还 可以包括其他输入设备2072。具体地,其他输入设备2072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 207 may be used to receive inputted number or character information, and generate key signal input related to user settings and function control of the terminal device. Specifically, the user input unit 207 includes a touch panel 2071 and other input devices 2072. The touch panel 2071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 2071 or near the touch panel 2071. operating). The touch panel 2071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought about by the touch operation, and transmits the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it to the processor 210, receives and executes the command sent by the processor 210. In addition, the touch panel 2071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 2071, the user input unit 207 may also include other input devices 2072. Specifically, other input devices 2072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
可选地,触控面板2071可覆盖在显示面板2061上,当触控面板2071检测到在其上或附近的触摸操作后,传送给处理器210以确定触摸事件的类型,随后处理器210根据触摸事件的类型在显示面板2061上提供相应的视觉输出。虽然在图10中,触控面板2071与显示面板2061是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板2071与显示面板2061集成而实现终端设备的输入和输出功能,具体此处不做限定。Optionally, the touch panel 2071 can be overlaid on the display panel 2061. When the touch panel 2071 detects a touch operation on or near it, it is transmitted to the processor 210 to determine the type of touch event, and then the processor 210 according to The type of touch event provides corresponding visual output on the display panel 2061. Although in FIG. 10, the touch panel 2071 and the display panel 2061 are used as two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 2071 and the display panel 2061 can be integrated The implementation of the input and output functions of the terminal device is not specifically limited here.
接口单元208为外部装置与终端设备200连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元208可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备200内的一个或多个元件或者可以用于在终端设备200和外部装置之间传输数据。The interface unit 208 is an interface for connecting an external device and the terminal device 200. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 208 may be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal device 200 or may be used to connect to the terminal device 200 and an external device. Transfer data between devices.
存储器209可用于存储软件程序以及各种数据。存储器209可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器209可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 209 can be used to store software programs and various data. The memory 209 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 209 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器210是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器209内的软件程序和/或模块,以及调用存储在存储器209内的数据,执行终端设备的各种功能和处理数据,从而对终端设备进行整体监控。处理器210可包括一个或多个处理单元。可选地,处理器210可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器210中。The processor 210 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, by running or executing software programs and/or modules stored in the memory 209, and calling data stored in the memory 209 , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole. The processor 210 may include one or more processing units. Optionally, the processor 210 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 210.
终端设备200还可以包括给各个部件供电的电源211(比如电池)。可选地,电源211可以通过电源管理系统与处理器210逻辑相连,从而通过电源管理系统实现管理充电、放 电、以及功耗管理等功能。The terminal device 200 may also include a power source 211 (such as a battery) for supplying power to various components. Optionally, the power supply 211 may be logically connected to the processor 210 through a power management system, so that functions such as charging, discharging, and power consumption management can be managed through the power management system.
另外,终端设备200包括一些未示出的功能模块,在此不再赘述。In addition, the terminal device 200 includes some functional modules that are not shown, which will not be repeated here.
可选地,本公开实施例还提供一种终端设备,包括如图10所示的处理器210,存储器209,存储在存储器209上并可在处理器210上运行的计算机程序,该计算机程序被处理器210执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present disclosure further provides a terminal device, including a processor 210 as shown in FIG. 10, a memory 209, a computer program stored in the memory 209 and running on the processor 210, and the computer program is The processor 210 implements the various processes of the foregoing method embodiments when executing, and can achieve the same technical effect. To avoid repetition, details are not described herein again.
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,计算机可读存储介质,如只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等。The embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here. Among them, computer-readable storage media, such as read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例描述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present disclosure.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。The embodiments of the present disclosure are described above with reference to the accompanying drawings, but the present disclosure is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present disclosure, without departing from the purpose of the present disclosure and the scope of protection of the claims, many forms can be made, all of which fall within the protection of the present disclosure.

Claims (12)

  1. 一种内容滚动显示方法,所述方法包括:A content scrolling display method, the method includes:
    接收用户在目标界面中第一位置和第二位置的第一输入;Receiving the first input of the user in the first position and the second position in the target interface;
    响应于所述第一输入,根据所述第一位置和所述第二位置,确定第一距离和第二距离;In response to the first input, determining a first distance and a second distance according to the first position and the second position;
    接收用户的第二输入;Receiving a second input from the user;
    响应于所述第二输入,根据目标距离确定第一速度,并按照所述第一速度,滚动显示所述目标界面中的内容;In response to the second input, determining a first speed according to the target distance, and scrolling and displaying content in the target interface according to the first speed;
    其中,所述目标距离为所述第一距离或所述第二距离。Wherein, the target distance is the first distance or the second distance.
  2. 根据权利要求1所述的方法,其中,所述根据所述第一位置和所述第二位置,确定第一距离和第二距离,包括:The method according to claim 1, wherein the determining the first distance and the second distance according to the first position and the second position comprises:
    将从所述第一位置到包括所述第二位置的第二直线的距离,确定为所述第一距离;Determining the distance from the first position to a second straight line including the second position as the first distance;
    将从所述第二位置到包括所述第一位置的第一直线的距离,确定为所述第二距离;Determining the distance from the second position to the first straight line including the first position as the second distance;
    其中,所述第一直线与所述第二直线相互垂直。Wherein, the first straight line and the second straight line are perpendicular to each other.
  3. 根据权利要求2所述的方法,其中,所述第二输入具体为以所述第一位置为起始位置,沿所述第一直线的一个方向的滑动输入;The method according to claim 2, wherein the second input is specifically a sliding input along one direction of the first straight line with the first position as a starting position;
    所述方法还包括:The method also includes:
    在按照所述第一速度,滚动显示所述目标界面中的内容的过程中,若接收到由所述第二位置移动到第三位置的第三输入,则响应于所述第三输入,根据从所述第三位置到所述第一直线的距离,确定第二速度,并按照所述第二速度,滚动显示所述目标界面中的内容。In the process of scrolling and displaying the content in the target interface according to the first speed, if a third input of moving from the second position to the third position is received, in response to the third input, according to A second speed is determined from the distance from the third position to the first straight line, and the content in the target interface is scrolled and displayed according to the second speed.
  4. 根据权利要求2所述的方法,其中,所述第二输入具体为以所述第二位置为起始位置,沿所述第二直线的一个方向的滑动输入;The method according to claim 2, wherein the second input is specifically a sliding input along one direction of the second straight line with the second position as a starting position;
    所述方法还包括:The method also includes:
    在按照所述第一速度,滚动显示所述目标界面中的内容的过程中,若接收到由所述第一位置移动到第四位置的第四输入,则响应于所述第四输入,根据从所述第四位置到所述第二直线的距离,确定第三速度,并按照所述第三速度,滚动显示所述目标 界面中的内容。In the process of scrolling and displaying the content in the target interface according to the first speed, if a fourth input of moving from the first position to the fourth position is received, in response to the fourth input, according to A third speed is determined from the distance from the fourth position to the second straight line, and the content in the target interface is scrolled and displayed according to the third speed.
  5. 根据权利要求1至4中任一项所述的方法,其中,所述第二输入为在所述目标界面中的滑动输入;The method according to any one of claims 1 to 4, wherein the second input is a sliding input in the target interface;
    所述按照所述第一速度,滚动显示所述目标界面中的内容之前,所述方法还包括:Before the scrolling and displaying the content in the target interface according to the first speed, the method further includes:
    根据所述第一速度和所述第二输入在所述目标界面中的滑动距离,获取滚动距离;Obtaining a scroll distance according to the first speed and the sliding distance of the second input in the target interface;
    所述按照所述第一速度,滚动显示所述目标界面中的内容,包括:The scrolling and displaying content in the target interface according to the first speed includes:
    按照所述第一速度,沿所述第二输入在所述目标界面中的滑动方向,滚动显示所述目标界面中的内容;According to the first speed, scroll and display the content in the target interface along the sliding direction of the second input in the target interface;
    其中,所述滚动显示的起始位置到所述滚动显示的终止位置之间的距离为所述滚动距离。Wherein, the distance between the start position of the scroll display and the end position of the scroll display is the scroll distance.
  6. 一种电子设备,所述电子设备包括接收模块、确定模块和显示模块;An electronic device including a receiving module, a determining module, and a display module;
    所述接收模块,用于接收用户在目标界面中第一位置和第二位置的第一输入;The receiving module is configured to receive the user's first input of the first position and the second position in the target interface;
    所述确定模块,用于响应于所述接收模块接收的所述第一输入,根据所述第一位置和所述第二位置,确定第一距离和第二距离;The determining module is configured to determine a first distance and a second distance according to the first position and the second position in response to the first input received by the receiving module;
    所述接收模块,还用于接收用户的第二输入;The receiving module is also used to receive a second input from the user;
    所述确定模块,还用于响应于所述接收模块接收的所述第二输入,根据目标距离确定第一速度,所述目标距离为所述第一距离或所述第二距离;The determining module is further configured to determine a first speed according to a target distance in response to the second input received by the receiving module, where the target distance is the first distance or the second distance;
    所述显示模块,用于按照所述确定模块确定的所述第一速度,滚动显示所述目标界面中的内容。The display module is configured to scroll and display the content in the target interface according to the first speed determined by the determining module.
  7. 根据权利要求6所述的电子设备,其中,所述确定模块,具体用于将从所述第一位置到包括所述第二位置的第二直线的距离,确定为所述第一距离;并将从所述第二位置到包括所述第一位置的第一直线的距离,确定为所述第二距离;The electronic device according to claim 6, wherein the determining module is specifically configured to determine a distance from the first position to a second straight line including the second position as the first distance; and Determining the distance from the second position to the first straight line including the first position as the second distance;
    其中,所述第一直线与所述第二直线相互垂直。Wherein, the first straight line and the second straight line are perpendicular to each other.
  8. 根据权利要求7所述的电子设备,其中,所述第二输入具体为以所述第一位置为起始位置,沿所述第一直线的一个方向的滑动输入;8. The electronic device according to claim 7, wherein the second input is specifically a sliding input along one direction of the first straight line with the first position as a starting position;
    所述确定模块,还用于在按照所述第一速度,滚动显示所述目标界面中的内容的过程中,若接收到由所述第二位置移动到第三位置的第三输入,则响应于所述第三输 入,根据从所述第三位置到所述第一直线的距离,确定第二速度;The determining module is further configured to respond if a third input of moving from the second position to the third position is received in the process of scrolling and displaying the content in the target interface according to the first speed In the third input, a second speed is determined according to the distance from the third position to the first straight line;
    所述显示模块,还用于按照所述确定模块确定的所述第二速度,滚动显示所述目标界面中的内容。The display module is further configured to scroll and display the content in the target interface according to the second speed determined by the determination module.
  9. 根据权利要求7所述的电子设备,其中,所述第二输入具体为以所述第二位置为起始位置,沿所述第二直线的一个方向的滑动输入;8. The electronic device according to claim 7, wherein the second input is specifically a sliding input along one direction of the second straight line with the second position as a starting position;
    所述确定模块,还用于在按照所述第一速度,滚动显示所述目标界面中的内容的过程中,若接收到由所述第一位置移动到第四位置的第四输入,则响应于所述第四输入,根据从所述第四位置到所述第二直线的距离,确定第三速度;The determining module is further configured to respond if a fourth input of moving from the first position to the fourth position is received in the process of scrolling and displaying the content in the target interface according to the first speed In the fourth input, a third speed is determined according to the distance from the fourth position to the second straight line;
    所述显示模块,还用于按照所述确定模块确定的所述第三速度,滚动显示所述目标界面中的内容。The display module is further configured to scroll and display the content in the target interface according to the third speed determined by the determination module.
  10. 根据权利要求6至9中任一项所述的电子设备,其中,所述第二输入为在所述目标界面中的滑动输入;所述电子设备还包括获取模块;The electronic device according to any one of claims 6 to 9, wherein the second input is a sliding input in the target interface; the electronic device further comprises an acquisition module;
    所述获取模块,用于根据所述确定模块确定的所述第一速度和所述第二输入在所述目标界面中的滑动距离,获取滚动距离;The acquiring module is configured to acquire the scroll distance according to the first speed determined by the determining module and the sliding distance of the second input in the target interface;
    所述显示模块,具体用于按照所述第一速度,沿所述第二输入在所述目标界面中的滑动方向,滚动显示所述目标界面中的内容;The display module is specifically configured to scroll and display content in the target interface along the sliding direction of the second input in the target interface according to the first speed;
    其中,所述滚动显示的起始位置到所述滚动显示的终止位置之间的距离为所述滚动距离。Wherein, the distance between the start position of the scroll display and the end position of the scroll display is the scroll distance.
  11. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的内容滚动显示方法的步骤。An electronic device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor to implement any of claims 1 to 5 The steps of the content scrolling display method described in one item.
  12. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的内容滚动显示方法的步骤。A computer-readable storage medium storing a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the content scrolling display method according to any one of claims 1 to 5 are realized.
PCT/CN2020/113045 2019-10-30 2020-09-02 Content scrolling display method and electronic device WO2021082718A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911045047.9A CN111221460A (en) 2019-10-30 2019-10-30 Content scrolling display method and electronic equipment
CN201911045047.9 2019-10-30

Publications (1)

Publication Number Publication Date
WO2021082718A1 true WO2021082718A1 (en) 2021-05-06

Family

ID=70827540

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/113045 WO2021082718A1 (en) 2019-10-30 2020-09-02 Content scrolling display method and electronic device

Country Status (2)

Country Link
CN (1) CN111221460A (en)
WO (1) WO2021082718A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221460A (en) * 2019-10-30 2020-06-02 维沃移动通信有限公司 Content scrolling display method and electronic equipment
CN111753236A (en) * 2020-06-29 2020-10-09 上海二三四五网络科技有限公司 Control method and device for calculating news display degree

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096513A (en) * 2011-02-23 2011-06-15 惠州Tcl移动通信有限公司 Solution for sliding of touch screen and electronic device using the same
CN102819389A (en) * 2012-07-19 2012-12-12 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and method for displaying content on mobile terminal
WO2014010292A1 (en) * 2012-07-09 2014-01-16 Necカシオモバイルコミュニケーションズ株式会社 Mobile phone information terminal, multi-touch input processing method, multi-touch input processing program, and storage medium
CN103677532A (en) * 2012-08-29 2014-03-26 柯尼卡美能达株式会社 Display device for displaying screen including scrollable list
US20140359528A1 (en) * 2013-06-04 2014-12-04 Sony Corporation Method and apparatus of controlling an interface based on touch operations
CN104636048A (en) * 2015-01-26 2015-05-20 上海天奕达电子科技有限公司 Page content rolling display method and device
US20150309686A1 (en) * 2014-04-29 2015-10-29 Brit Media, Inc. Video scrolling
CN105892872A (en) * 2016-04-06 2016-08-24 惠州Tcl移动通信有限公司 Touch screen-based automatic screen scrolling control method for electronic books, and mobile terminal
CN111221460A (en) * 2019-10-30 2020-06-02 维沃移动通信有限公司 Content scrolling display method and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090002324A1 (en) * 2007-06-27 2009-01-01 Nokia Corporation Method, Apparatus and Computer Program Product for Providing a Scrolling Mechanism for Touch Screen Devices
CN101477439B (en) * 2009-02-06 2011-01-12 苏州瀚瑞微电子有限公司 Method for controlling display screen page scrolling speed by touch control plate
KR101886753B1 (en) * 2012-04-05 2018-08-08 엘지전자 주식회사 Mobile terminal and control method thereof
CN106155524A (en) * 2015-03-23 2016-11-23 阿里巴巴集团控股有限公司 Page control method and device
CN104866205B (en) * 2015-05-12 2016-11-09 北京奇虎科技有限公司 A kind of method and apparatus of the Touch Screen operating big screen intelligent terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096513A (en) * 2011-02-23 2011-06-15 惠州Tcl移动通信有限公司 Solution for sliding of touch screen and electronic device using the same
WO2014010292A1 (en) * 2012-07-09 2014-01-16 Necカシオモバイルコミュニケーションズ株式会社 Mobile phone information terminal, multi-touch input processing method, multi-touch input processing program, and storage medium
CN102819389A (en) * 2012-07-19 2012-12-12 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and method for displaying content on mobile terminal
CN103677532A (en) * 2012-08-29 2014-03-26 柯尼卡美能达株式会社 Display device for displaying screen including scrollable list
US20140359528A1 (en) * 2013-06-04 2014-12-04 Sony Corporation Method and apparatus of controlling an interface based on touch operations
US20150309686A1 (en) * 2014-04-29 2015-10-29 Brit Media, Inc. Video scrolling
CN104636048A (en) * 2015-01-26 2015-05-20 上海天奕达电子科技有限公司 Page content rolling display method and device
CN105892872A (en) * 2016-04-06 2016-08-24 惠州Tcl移动通信有限公司 Touch screen-based automatic screen scrolling control method for electronic books, and mobile terminal
CN111221460A (en) * 2019-10-30 2020-06-02 维沃移动通信有限公司 Content scrolling display method and electronic equipment

Also Published As

Publication number Publication date
CN111221460A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
WO2021083052A1 (en) Object sharing method and electronic device
WO2020258929A1 (en) Folder interface switching method and terminal device
WO2021083132A1 (en) Icon moving method and electronic device
US20210349591A1 (en) Object processing method and terminal device
WO2020134744A1 (en) Icon moving method and mobile terminal
WO2020258934A1 (en) Interface display method and terminal device
WO2021129538A1 (en) Control method and electronic device
WO2021129536A1 (en) Icon moving method and electronic device
WO2020181945A1 (en) Identifier displaying method and terminal device
WO2020192299A1 (en) Information display method and terminal device
WO2021017738A1 (en) Interface display method and electronic device
WO2021164716A1 (en) Display method and electronic device
WO2020181956A1 (en) Method for displaying application identifier, and terminal apparatus
WO2020192324A1 (en) Interface displaying method and terminal device
WO2020042835A1 (en) Image display method and mobile terminal
CN110989896A (en) Control method and electronic equipment
WO2020215982A1 (en) Desktop icon management method and terminal device
US20220326843A1 (en) Display method and electronic device
WO2020211602A1 (en) Application control method and terminal device
WO2020168882A1 (en) Interface display method and terminal device
WO2021082718A1 (en) Content scrolling display method and electronic device
US11526320B2 (en) Multi-screen interface control method and terminal device
US11669237B2 (en) Operation method and terminal device
WO2020015529A1 (en) Terminal device control method and terminal device
WO2021197264A1 (en) Interface display method and electronic device

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: 20881023

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20881023

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20881023

Country of ref document: EP

Kind code of ref document: A1

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 28.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20881023

Country of ref document: EP

Kind code of ref document: A1