[go: up one dir, main page]

CN105892856A - Image switching method and mobile terminal - Google Patents

Image switching method and mobile terminal Download PDF

Info

Publication number
CN105892856A
CN105892856A CN201610195436.XA CN201610195436A CN105892856A CN 105892856 A CN105892856 A CN 105892856A CN 201610195436 A CN201610195436 A CN 201610195436A CN 105892856 A CN105892856 A CN 105892856A
Authority
CN
China
Prior art keywords
picture switching
picture
pressure
pressure information
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610195436.XA
Other languages
Chinese (zh)
Inventor
王彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610195436.XA priority Critical patent/CN105892856A/en
Publication of CN105892856A publication Critical patent/CN105892856A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/04842Selection of displayed objects or displayed text elements

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供切换图片的方法及移动终端,该方法包括:终端显示图片时,获取终端检测到的压力信息;根据所述压力信息,确定与所述压力信息对应的图片切换速度和图片切换方向;在所述压力信息中的压力值大于零的按压时间内,沿所述图片切换方向以所述图片切换速度自动切换图片。本发明实施例通过按压终端的压力信息来优化图片切换的方法,即通过按压终端的压力信息来确定图片的切换速度及切换方向,从而在按压时间内沿图片切换方向以确定的图片切换速度自动切换图片,使得用户能够根据结合压力变化来快速切换图片,使得切换图片的方式更加丰富,切换效率也随之得到提升,增强用户体验。

The present invention provides a method for switching pictures and a mobile terminal, the method comprising: when the terminal displays pictures, acquiring pressure information detected by the terminal; according to the pressure information, determining a picture switching speed and a picture switching direction corresponding to the pressure information; During the pressing time when the pressure value in the pressure information is greater than zero, automatically switch pictures along the picture switching direction at the picture switching speed. The embodiment of the present invention optimizes the method of picture switching by pressing the pressure information of the terminal, that is, the picture switching speed and switching direction are determined by pressing the pressure information of the terminal, so that the pictures are automatically switched along the picture switching direction at the determined picture switching speed within the pressing time. Switching pictures enables users to quickly switch pictures according to changes in combined pressure, enriching the ways of switching pictures, improving switching efficiency and enhancing user experience.

Description

一种切换图片的方法及移动终端A method and mobile terminal for switching pictures

技术领域technical field

本发明涉及通信技术领域,特别是指一种切换图片的方法及移动终端。The invention relates to the technical field of communication, in particular to a method for switching pictures and a mobile terminal.

背景技术Background technique

日常生活中,较多的用户有拍照或者搜集漂亮的图片爱好,该类图片可以供用户翻出来自己欣赏,也可以向其他人展示,也可以选一张设置成墙纸等等。现有技术中通过左右滑动来查看图片是最主要的操作方式。In daily life, many users have a hobby of taking pictures or collecting beautiful pictures. Such pictures can be retrieved for users to enjoy for themselves, or they can be shown to others, or they can choose one to set as wallpaper and so on. Viewing pictures by sliding left and right is the main operation mode in the prior art.

左右滑动来查看图片可以满足我们一张一张翻看图片的需求,可是却不能实现快速的浏览图片。例如,连续若干张都是同一个风景或者同一个姿势,用户不想对每张图片进行详细查看,此时用户需要不停的快速滑动才能看到下一风景或下一姿势的照片,给用户浏览图片带来不便,影响用户体验。Swiping left and right to view pictures can meet our needs to flip through pictures one by one, but it cannot browse pictures quickly. For example, several pictures in a row are of the same landscape or pose, and the user does not want to view each picture in detail. At this time, the user needs to swipe continuously to see the photo of the next landscape or pose for the user to browse. Pictures bring inconvenience and affect user experience.

发明内容Contents of the invention

本发明的目的在于提供一种切换图片的方法及移动终端,解决了现有技术中浏览图库中照片需要一张一张的滑动,不能实现快速浏览图片的问题。The purpose of the present invention is to provide a method for switching pictures and a mobile terminal, which solves the problem in the prior art that browsing pictures in a gallery needs to be slid one by one, and cannot quickly browse pictures.

为了达到上述目的,本发明实施例提供一种切换图片的方法,所述方法包括:In order to achieve the above purpose, an embodiment of the present invention provides a method for switching pictures, the method comprising:

终端显示图片时,获取终端检测到的压力信息;When the terminal displays a picture, obtain the pressure information detected by the terminal;

根据所述压力信息,确定与所述压力信息对应的图片切换速度和图片切换方向;determining a picture switching speed and a picture switching direction corresponding to the pressure information according to the pressure information;

在所述压力信息中的压力值大于零的按压时间内,沿所述图片切换方向以所述图片切换速度自动切换图片。During the pressing time when the pressure value in the pressure information is greater than zero, automatically switch pictures along the picture switching direction at the picture switching speed.

本发明实施例还提供一种移动终端,所述移动终端包括:The embodiment of the present invention also provides a mobile terminal, and the mobile terminal includes:

压力获取模块,用于终端显示图片时,获取终端检测到的压力信息;The pressure acquisition module is used to obtain the pressure information detected by the terminal when the terminal displays pictures;

切换确定模块,用于根据所述压力信息,确定与所述压力信息对应的图片切换速度和图片切换方向;A switching determination module, configured to determine a picture switching speed and a picture switching direction corresponding to the pressure information according to the pressure information;

自动切换模块,用于在所述压力信息中的压力值大于零的按压时间内,沿所述图片切换方向以所述图片切换速度自动切换图片。An automatic switching module, configured to automatically switch pictures along the picture switching direction at the picture switching speed within the pressing time when the pressure value in the pressure information is greater than zero.

本发明的上述技术方案至少具有如下有益效果:The technical solution of the present invention has at least the following beneficial effects:

本发明实施例的提供的切换图片的方法及移动终端中,通过按压终端的压力信息来优化图片切换的方法,即通过按压终端的压力信息来确定图片的切换速度及切换方向,从而在按压时间内沿图片切换方向以确定的图片切换速度自动切换图片,使得用户能够根据结合压力变化来快速切换图片,使得切换图片的方式更加丰富,切换效率也随之得到提升,增强用户体验。In the method for switching pictures and the mobile terminal provided by the embodiments of the present invention, the method for optimizing picture switching by pressing the pressure information of the terminal, that is, determining the switching speed and switching direction of pictures by pressing the pressure information of the terminal, so that the pressing time Automatically switch pictures along the picture switching direction at a certain picture switching speed, so that users can quickly switch pictures according to the combination of pressure changes, making the way of switching pictures more abundant, the switching efficiency is also improved, and the user experience is enhanced.

附图说明Description of drawings

图1表示本发明的第一实施例提供的切换图片的方法的基本步骤流程图;Fig. 1 shows the flow chart of the basic steps of the method for switching pictures provided by the first embodiment of the present invention;

图2表示本发明的第二实施例中切换图片的方法的具体步骤流程图之一;Fig. 2 shows one of the flow charts of the specific steps of the method for switching pictures in the second embodiment of the present invention;

图3表示本发明的第二实施例中切换图片的方法的具体步骤流程图之二;FIG. 3 shows the second flowchart of the specific steps of the method for switching pictures in the second embodiment of the present invention;

图4表示本发明的第三实施例提供的移动终端的结构示意图之一;FIG. 4 shows one of the structural schematic diagrams of the mobile terminal provided by the third embodiment of the present invention;

图5表示本发明的第三实施例提供的移动终端的结构示意图之二;FIG. 5 shows the second structural schematic diagram of the mobile terminal provided by the third embodiment of the present invention;

图6表示本发明的第三实施例提供的移动终端的结构示意图之三;FIG. 6 shows the third schematic structural diagram of the mobile terminal provided by the third embodiment of the present invention;

图7表示本发明的第四实施例提供的移动终端的结构示意图;FIG. 7 shows a schematic structural diagram of a mobile terminal provided by a fourth embodiment of the present invention;

图8表示本发明的第五实施例提供的移动终端的结构示意图。Fig. 8 shows a schematic structural diagram of a mobile terminal provided by a fifth embodiment of the present invention.

具体实施方式detailed description

为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.

第一实施例first embodiment

如图1所示,本发明的第一实施例提供一种切换图片的方法,所述方法包括:As shown in FIG. 1, the first embodiment of the present invention provides a method for switching pictures, the method comprising:

步骤101,终端显示图片时,获取终端检测到的压力信息。Step 101, when the terminal displays a picture, acquire pressure information detected by the terminal.

本步骤中,终端上显示图片,可采用但不限于显示一图库中的某一张图片。用户按压终端,具体的,可以为按压显示屏或者终端上任何能够检测压力的部分;终端检测按压该终端的压力值,具体的,可通过终端内置的压力传感器、压力检测器等器件进行检测,在此不进行具体限定。较佳的,为了避免其他控件遮挡图片内容,本发明的第一实施例中一般采用全屏幕查看图片的方式显示图片。In this step, the picture displayed on the terminal may be, but not limited to, a certain picture in a gallery. The user presses the terminal, specifically, it can be pressing the display screen or any part of the terminal that can detect pressure; the terminal detects the pressure value of pressing the terminal, specifically, it can be detected through the built-in pressure sensor, pressure detector and other devices of the terminal. No specific limitation is made here. Preferably, in order to prevent other controls from blocking the content of the picture, in the first embodiment of the present invention, the picture is generally displayed in a manner of viewing the picture on a full screen.

步骤102,根据所述压力信息,确定与所述压力信息对应的图片切换速度和图片切换方向。Step 102, according to the pressure information, determine a picture switching speed and a picture switching direction corresponding to the pressure information.

本步骤中,根据其压力信息,确定与压力信息对应的图片切换速度及图片切换方向。例如,全屏模式下查看图片时,用户当前正查看图库中的第二张图片,而用户突然想查看该图库中的最后一张图片,此时可在终端上施加一定的压力来控制图库中的图片快速切换,当切换到最后一张图片时停止施加压力,则终端当前显示的为图库中的最后一张图片。In this step, the picture switching speed and picture switching direction corresponding to the pressure information are determined according to the pressure information. For example, when viewing pictures in full-screen mode, the user is currently viewing the second picture in the gallery, and the user suddenly wants to view the last picture in the gallery, at this time, a certain amount of pressure can be exerted on the terminal to control the picture in the gallery. The picture is switched quickly. When switching to the last picture, stop applying pressure, and the terminal currently displays the last picture in the gallery.

需要说明的是,压力信息与图片切换速度和图片切换方向的对应关系均为预先告知用户的,即用户预先就能够了解施加多大压力会以多大的速度向那个方向切换图片,使得用户能够准确的施加压力来达到自己想要的效果。更进一步的,由于不同的用户对于自己施加压力的估算精度不同的原因,其不同图片切换速度对应的压力信息应设置在一预定范围内,从而提升用户体验。It should be noted that the corresponding relationship between the pressure information and the picture switching speed and picture switching direction is notified to the user in advance, that is, the user can know in advance how much pressure will be applied and at what speed the picture will be switched in that direction, so that the user can accurately Apply pressure to achieve the effect you want. Furthermore, since different users have different estimation accuracy of the pressure exerted by themselves, the pressure information corresponding to different picture switching speeds should be set within a predetermined range, so as to improve user experience.

步骤103,在所述压力信息中的压力值大于零的按压时间内,沿所述图片切换方向以所述图片切换速度自动切换图片。Step 103: Automatically switch pictures along the picture switching direction at the picture switching speed during the pressing time when the pressure value in the pressure information is greater than zero.

本步骤中,终端按照步骤102确定的图片切换速度和图片切换方向自动切换终端的显示屏上显示的图片,例如,用户以第一值的压力按压终端1秒,而与第一值对应的图片切换速度为每秒5张,与第一值对应的图片切换方向为第一方向,则该1秒内显示屏上自动沿第一方向切换5张图片,即未开始按压时,终端上显示的第一张图片,则按压1秒后松开,终端上显示第六张图片。In this step, the terminal automatically switches the pictures displayed on the display screen of the terminal according to the picture switching speed and picture switching direction determined in step 102. For example, the user presses the terminal with the pressure of the first value for 1 second, and the picture corresponding to the first value The switching speed is 5 pictures per second, and the picture switching direction corresponding to the first value is the first direction, then the display will automatically switch 5 pictures along the first direction within 1 second, that is, when the button is not pressed, the picture displayed on the terminal For the first picture, press it for 1 second and release it, and the sixth picture will be displayed on the terminal.

综上,本发明的第一实施例将切换图片的条件对应到按压终端的压力信息,按压力度达到则激活切换图片的动作,继而根据压力信息确定图片切换速度和图片切换方向,从而实现灵活控制图片的切换方式,提升用户体验。To sum up, the first embodiment of the present invention corresponds the condition of switching pictures to the pressure information of pressing the terminal, and the action of switching pictures is activated when the pressing force is reached, and then the picture switching speed and picture switching direction are determined according to the pressure information, so as to realize flexible control The switching method of pictures improves user experience.

第二实施例second embodiment

如图2所示,本发明的第一实施例提供一种切换图片的方法,所述方法包括:As shown in FIG. 2, the first embodiment of the present invention provides a method for switching pictures, the method comprising:

步骤201,终端显示图片时,获取终端检测到的压力信息。Step 201, when the terminal displays a picture, acquire pressure information detected by the terminal.

本步骤中,终端上显示图片,可采用但不限于显示一图库中的某一张图片。用户按压终端,具体的,可以为按压显示屏或者终端上任何能够检测压力的部分;终端检测按压该终端的压力值,具体的,可通过终端内置的压力传感器、压力检测器等器件进行检测,在此不进行具体限定。较佳的,为了避免其他控件遮挡图片内容,本发明的第一实施例中一般采用全屏幕查看图片的方式显示图片。In this step, the picture displayed on the terminal may be, but not limited to, a certain picture in a gallery. The user presses the terminal, specifically, it can be pressing the display screen or any part of the terminal that can detect pressure; the terminal detects the pressure value of pressing the terminal, specifically, it can be detected through the built-in pressure sensor, pressure detector and other devices of the terminal. No specific limitation is made here. Preferably, in order to prevent other controls from blocking the content of the picture, in the first embodiment of the present invention, the picture is generally displayed in a manner of viewing the picture on a full screen.

步骤202,根据所述压力信息中的压力值,确定与所述压力值对应的图片切换速度和图片切换方向。Step 202: Determine a picture switching speed and a picture switching direction corresponding to the pressure value according to the pressure value in the pressure information.

本步骤中,该方法能够直接根据压力值确定图片切换速度和图片切换方向。具体的,该步骤202包括:In this step, the method can directly determine the picture switching speed and the picture switching direction according to the pressure value. Specifically, this step 202 includes:

若所述压力值大于零且小于或者等于第一预设值,确定所述图片切换速度为第一值,所述图片切换方向为第一方向;If the pressure value is greater than zero and less than or equal to a first preset value, determine that the picture switching speed is a first value, and that the picture switching direction is a first direction;

若所述压力的大小大于第一预设值,确定所述图片切换速度为第二值,所述图片切换方向为与所述第一方向相反的第二方向。If the magnitude of the pressure is greater than a first preset value, it is determined that the picture switching speed is a second value, and the picture switching direction is a second direction opposite to the first direction.

本步骤中,压力值与图片切换速度的对应关系可预先设定并保存,该对应关系需满足图片切换速度随实时压力值的增大而增大的原则,也可利用通过预先设定一公式来计算,该公式也需满足图片切换速度随压力值的增大而增大的原则。In this step, the corresponding relationship between the pressure value and the picture switching speed can be preset and saved. The corresponding relationship needs to meet the principle that the picture switching speed increases with the increase of the real-time pressure value. It can also be used by presetting a formula The formula also needs to meet the principle that the picture switching speed increases with the increase of the pressure value.

比如图片切换速度为每秒切换5张,那么以预定压力按压200毫秒即可切换一张图片,从显示第一张图片变为显示第二张图片的过程在这200毫秒中完成。For example, the picture switching speed is 5 pictures per second, then one picture can be switched by pressing with a predetermined pressure for 200 milliseconds, and the process from displaying the first picture to displaying the second picture is completed within these 200 milliseconds.

步骤203,在所述压力信息中的压力值大于零的按压时间内,沿所述图片切换方向以所述图片切换速度自动切换图片。Step 203: Automatically switch pictures along the picture switching direction at the picture switching speed during the pressing time when the pressure value in the pressure information is greater than zero.

本步骤中,终端按照步骤202确定的图片切换速度和图片切换方向自动切换终端的显示屏上显示的图片,例如,用户以第一值的压力按压终端1秒,而与第一值对应的图片切换速度为每秒5张,与第一值对应的图片切换方向为第一方向,则该1秒内显示屏上自动沿第一方向切换5张图片,即未开始按压时,终端上显示的第一张图片,则按压1秒后松开,终端上显示第六张图片。In this step, the terminal automatically switches the pictures displayed on the display screen of the terminal according to the picture switching speed and picture switching direction determined in step 202. For example, the user presses the terminal with the pressure of the first value for 1 second, and the picture corresponding to the first value The switching speed is 5 pictures per second, and the picture switching direction corresponding to the first value is the first direction, then the display will automatically switch 5 pictures along the first direction within 1 second, that is, when the button is not pressed, the picture displayed on the terminal For the first picture, press it for 1 second and release it, and the sixth picture will be displayed on the terminal.

综上,本发明的第二实施例的第一种实现方式将切换图片的条件对应到按压终端的压力值,根据压力值确定图片切换速度和图片切换方向,继而自动切换图片,实现了对切换图片的方式灵活控制,提升用户体验。To sum up, the first implementation of the second embodiment of the present invention corresponds the condition of switching pictures to the pressure value of pressing the terminal, determines the picture switching speed and picture switching direction according to the pressure value, and then automatically switches pictures, realizing a pair of switching The way of pictures can be flexibly controlled to improve user experience.

需要说明的是,上述步骤201-步骤203为本发明的第二实施例的第一种实现方式,具体为确定图片切换速度和图片切换方法的第一种实现方式,本发明的第二实施例还提供一种确定图片切换速度和图片切换方法的第二种实现方式;具体的,该第二种实现方式下,如图3所示,所述切换图片的方法包括:It should be noted that the above steps 201 to 203 are the first implementation of the second embodiment of the present invention, specifically the first implementation of determining the picture switching speed and the picture switching method, the second embodiment of the present invention A second implementation manner for determining the picture switching speed and the picture switching method is also provided; specifically, in the second implementation manner, as shown in FIG. 3 , the method for switching pictures includes:

步骤204,终端显示图片时,获取终端检测到的压力信息。Step 204, when the terminal displays the picture, acquire the pressure information detected by the terminal.

本步骤中,终端上显示图片,可采用但不限于显示一图库中的某一张图片。用户按压终端,具体的,可以为按压显示屏或者终端上任何能够检测压力的部分;终端检测按压该终端的压力值,具体的,可通过终端内置的压力传感器、压力检测器等器件进行检测,在此不进行具体限定。较佳的,为了避免其他控件遮挡图片内容,本发明的第一实施例中一般采用全屏幕查看图片的方式显示图片。In this step, the picture displayed on the terminal may be, but not limited to, a certain picture in a gallery. The user presses the terminal, specifically, it can be pressing the display screen or any part of the terminal that can detect pressure; the terminal detects the pressure value of pressing the terminal, specifically, it can be detected through the built-in pressure sensor, pressure detector and other devices of the terminal. No specific limitation is made here. Preferably, in order to prevent other controls from blocking the content of the picture, in the first embodiment of the present invention, the picture is generally displayed in a manner of viewing the picture on a full screen.

步骤205,根据所述压力信息中的压力值,确定与所述压力值对应的图片切换速度。Step 205, according to the pressure value in the pressure information, determine the picture switching speed corresponding to the pressure value.

该实现方式下,压力值仅与图片切换速度相对应,而与图片切换方向无关。相似的,压力值与图片切换速度的对应关系可预先设定并保存,该对应关系需满足图片切换速度随实时压力值的增大而增大的原则,也可利用通过预先设定一公式来计算,该公式也需满足图片切换速度随压力值的增大而增大的原则。In this implementation, the pressure value only corresponds to the picture switching speed, but has nothing to do with the picture switching direction. Similarly, the corresponding relationship between the pressure value and the picture switching speed can be preset and saved. The corresponding relationship needs to meet the principle that the picture switching speed increases with the increase of the real-time pressure value. It can also be determined by presetting a formula. Calculation, the formula also needs to meet the principle that the picture switching speed increases with the increase of the pressure value.

比如图片切换速度为每秒切换5张,那么以预定压力按压200毫秒即可切换一张图片,从显示第一张图片变为显示第二张图片的过程在这200毫秒中完成。For example, the picture switching speed is 5 pictures per second, then one picture can be switched by pressing with a predetermined pressure for 200 milliseconds, and the process from displaying the first picture to displaying the second picture is completed within these 200 milliseconds.

步骤206,根据所述压力信息中的单次按压的按压位置移动方向,确定与所述按压位置移动方向对应的图片切换方向。Step 206, according to the moving direction of the pressing position of a single press in the pressure information, determine the picture switching direction corresponding to the moving direction of the pressing position.

该实现方式下,图片切换方向与单词按压过程中按压位置的移动方向相关,即为了实现图片的自动切换,用户按压终端过程中还需移动按压位置,不能在一固定位置按压。浏览图片的方式包括横向浏览(左右)和众向浏览(上下),但是通常情况下,一个终端只采用一种浏览方式,故本发明的切换方向包括第一方向和第二方向,第一方向为向左时,第二方向为向右;第一方向为向上时,第二方向为向下。In this implementation mode, the picture switching direction is related to the moving direction of the pressing position during word pressing, that is, in order to realize automatic picture switching, the user needs to move the pressing position while pressing the terminal, and cannot press at a fixed position. The mode of browsing pictures includes horizontal browsing (left and right) and multi-directional browsing (up and down), but usually, a terminal only adopts one browsing mode, so the switching direction of the present invention includes the first direction and the second direction, and the first direction When it is left, the second direction is right; when the first direction is upward, the second direction is downward.

更进一步的,本发明实施例将移动范围分为第一预设范围和第二预设范围,第一预设范围与第一方向对应,第二预设范围与第二方向对应,具体的,若所述按压位置移动方向在第一预设范围内,确定所述切换方向为第一方向;若所述按压位置移动方向在第二预设范围内,确定所述切换方向为与所述第一方向相反的第二方向。Furthermore, in the embodiment of the present invention, the moving range is divided into a first preset range and a second preset range, the first preset range corresponds to the first direction, and the second preset range corresponds to the second direction. Specifically, If the moving direction of the pressing position is within a first preset range, determine that the switching direction is the first direction; if the moving direction of the pressing position is within a second preset range, determine that the switching direction is the same as the first direction One direction opposite to the second direction.

需要说明的是,由于不同用户对方向的判断存在一定误差,故设置第一预设范围和第二预设范围而非设置某一固定方向,是为了更进一步的提升用户体验。It should be noted that, since different users have certain errors in judging directions, the purpose of setting the first preset range and the second preset range instead of setting a certain fixed direction is to further improve user experience.

步骤207,在所述压力信息中的压力值大于零的按压时间内,沿所述图片切换方向以所述图片切换速度自动切换图片。Step 207, within the pressing time when the pressure value in the pressure information is greater than zero, automatically switch pictures along the picture switching direction at the picture switching speed.

本步骤中,终端按照步骤205确定的图片切换速度和步骤206确定的图片切换方向自动切换终端的显示屏上显示的图片,例如,用户以第一值的压力按压终端1秒,而与第一值对应的图片切换速度为每秒5张,与第一值对应的图片切换方向为第一方向,则该1秒内显示屏上自动沿第一方向切换5张图片,即未开始按压时,终端上显示的第一张图片,则按压1秒后松开,终端上显示第六张图片。In this step, the terminal automatically switches the pictures displayed on the display screen of the terminal according to the picture switching speed determined in step 205 and the picture switching direction determined in step 206. The picture switching speed corresponding to the value is 5 pictures per second, and the picture switching direction corresponding to the first value is the first direction, then the display will automatically switch 5 pictures along the first direction within 1 second, that is, when the button is not pressed, For the first picture displayed on the terminal, press it for 1 second and release it, and the sixth picture will be displayed on the terminal.

综上,本发明的第二实施例的第二种实现方式将切换图片的条件对应到按压终端的压力值和按压位置移动方向,根据压力值确定图片切换速度并根据按压位置移动方向确定图片切换方向,继而自动切换图片,实现了对切换图片的方式灵活控制,提升用户体验。To sum up, the second implementation of the second embodiment of the present invention corresponds the condition of switching pictures to the pressure value of pressing the terminal and the moving direction of the pressing position, determines the picture switching speed according to the pressure value and determines the picture switching according to the moving direction of the pressing position Direction, and then automatically switch pictures, realize the flexible control of the way of switching pictures, and improve user experience.

第三实施例third embodiment

如图4所示,本发明的第三实施例提供一种移动终端400,所述移动终端包括:As shown in FIG. 4, a third embodiment of the present invention provides a mobile terminal 400, the mobile terminal includes:

压力获取模块41,用于终端显示图片时,获取终端检测到的压力信息;The pressure acquisition module 41 is used to acquire the pressure information detected by the terminal when the terminal displays pictures;

切换确定模块42,用于根据所述压力信息,确定与所述压力信息对应的图片切换速度和图片切换方向;A switching determination module 42, configured to determine a picture switching speed and a picture switching direction corresponding to the pressure information according to the pressure information;

自动切换模块43,用于在所述压力信息中的压力值大于零的按压时间内,沿所述图片切换方向以所述图片切换速度自动切换图片。The automatic switching module 43 is configured to automatically switch pictures along the picture switching direction at the picture switching speed during the pressing time when the pressure value in the pressure information is greater than zero.

具体的,如图5所示,本发明的第三实施例中,所述切换确定模块42包括:Specifically, as shown in FIG. 5, in the third embodiment of the present invention, the handover determination module 42 includes:

第一切换确定子模块421,用于根据所述压力信息中的压力值,确定与所述压力值对应的图片切换速度和图片切换方向。The first switching determination sub-module 421 is configured to determine a picture switching speed and a picture switching direction corresponding to the pressure value according to the pressure value in the pressure information.

具体的,如图5所示,本发明的第三实施例中,所述第一切换确定子模块421包括:Specifically, as shown in FIG. 5, in the third embodiment of the present invention, the first handover determining submodule 421 includes:

第一确定单元4211,用于若所述压力值大于零且小于或者等于第一预设值,确定所述图片切换速度为第一值,所述图片切换方向为第一方向;The first determination unit 4211 is configured to determine that the picture switching speed is a first value and the picture switching direction is a first direction if the pressure value is greater than zero and less than or equal to a first preset value;

第二确定单元4212,用于若所述压力的大小大于第一预设值,确定所述图片切换速度为第二值,所述图片切换方向为与所述第一方向相反的第二方向。The second determining unit 4212 is configured to determine that the picture switching speed is a second value if the magnitude of the pressure is greater than a first preset value, and that the picture switching direction is a second direction opposite to the first direction.

具体的,如图6所示,本发明的第三实施例中,所述切换确定模块42包括:Specifically, as shown in FIG. 6, in the third embodiment of the present invention, the handover determination module 42 includes:

第二切换确定子模块422,用于根据所述压力信息中的压力值,确定与所述压力值对应的图片切换速度;The second switching determination sub-module 422 is configured to determine the picture switching speed corresponding to the pressure value according to the pressure value in the pressure information;

第三切换确定子模块423,用于根据所述压力信息中的单次按压的按压位置移动方向,确定与所述按压位置移动方向对应的图片切换方向。The third switching determining sub-module 423 is configured to determine a picture switching direction corresponding to the moving direction of the pressing position according to the moving direction of the pressing position of a single press in the pressure information.

具体的,如图6所示,本发明的第三实施例中,根据第三切换确定子模块423包括:Specifically, as shown in FIG. 6, in the third embodiment of the present invention, the determination submodule 423 according to the third handover includes:

第三确定单元4231,用于若所述按压位置移动方向在第一预设范围内,确定所述切换方向为第一方向;The third determining unit 4231 is configured to determine that the switching direction is the first direction if the moving direction of the pressing position is within a first preset range;

第四确定单元4232,用于若所述按压位置移动方向在第二预设范围内,确定所述切换方向为与所述第一方向相反的第二方向。The fourth determination unit 4232 is configured to determine that the switching direction is a second direction opposite to the first direction if the moving direction of the pressed position is within a second preset range.

本发明的第三实施例将切换图片的条件对应到按压终端的压力值(或者压力值和按压位置移动方向),根据压力值确定图片切换速度和图片切换方向(或者根据压力值确定图片切换速度并根据按压位置移动方向确定图片切换方向),继而自动切换图片,实现了对切换图片的方式灵活控制,提升用户体验。The third embodiment of the present invention corresponds the condition of switching pictures to the pressure value (or pressure value and the moving direction of the pressed position) of pressing the terminal, and determines the picture switching speed and picture switching direction according to the pressure value (or determines the picture switching speed according to the pressure value And determine the picture switching direction according to the moving direction of the pressed position), and then automatically switch pictures, realize the flexible control of the mode of switching pictures, and improve user experience.

需要说的是,本发明的第三实施例提供的移动终端是能够实现上述第一实施例和第二实施例提供的切换图片的方法的移动终端,故上述第一实施例及上述第二实施例的所有实施例均适用于该第三实施例,且均能达到相同或相似的有益效果。It should be said that the mobile terminal provided by the third embodiment of the present invention is a mobile terminal capable of implementing the methods for switching pictures provided in the above-mentioned first embodiment and the second embodiment, so the above-mentioned first embodiment and the above-mentioned second embodiment All the embodiments of the example are applicable to the third embodiment, and all can achieve the same or similar beneficial effects.

第四实施例Fourth embodiment

如图7所示是本发明第四实施例的移动终端的框图。图7所示的移动终端700包括:至少一个处理器701、存储器702、至少一个网络接口704和其他用户接口703、压力传感器706。移动终端700中的各个组件通过总线系统705耦合在一起。可理解,总线系统705用于实现这些组件之间的连接通信。总线系统705除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图7中将各种总线都标为总线系统705。FIG. 7 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention. The mobile terminal 700 shown in FIG. 7 includes: at least one processor 701 , a memory 702 , at least one network interface 704 and other user interfaces 703 , and a pressure sensor 706 . Various components in the mobile terminal 700 are coupled together through a bus system 705 . It can be understood that the bus system 705 is used to realize connection and communication between these components. In addition to the data bus, the bus system 705 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 705 in FIG. 7 .

其中,用户接口703可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏。Wherein, the user interface 703 may include a display, a keyboard or a pointing device (for example, a mouse, a trackball (trackball), a touch pad or a touch screen.

可以理解,本发明实施例中的存储器702可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。且存储器702用于图片切换速度及图片切换方向与压力信息的对应关系等所有需要保存的值以及常量。其中,非易失性存储器可以是只读存储器(Read-OnlyMemory,ROM)、可编程只读存储器(ProgrammableROM,PROM)、可擦除可编程只读存储器(ErasablePROM,EPROM)、电可擦除可编程只读存储器(ElectricallyEPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccessMemory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(StaticRAM,SRAM)、动态随机存取存储器(DynamicRAM,DRAM)、同步动态随机存取存储器(SynchronousDRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(DoubleDataRate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(SynchlinkDRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambusRAM,DRRAM)。本发明实施例描述的系统和方法的存储器702旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 702 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. And the memory 702 is used for all the values and constants that need to be saved, such as the corresponding relationship between the picture switching speed, the picture switching direction and the pressure information. Among them, the non-volatile memory can be read-only memory (Read-OnlyMemory, ROM), programmable read-only memory (ProgrammableROM, PROM), erasable programmable read-only memory (ErasablePROM, EPROM), electrically erasable Programming read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (Random Access Memory, RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DoubleDataRate SDRAM, DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), Synchronous Connection Dynamic Random Access Memory (SynchlinkDRAM, SLDRAM) and Direct Memory Bus Random Access Memory Access memory (DirectRambusRAM, DRRAM). The memory 702 of the systems and methods described in embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

在一些实施方式中,存储器702存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统7021和应用程序7022。In some implementations, the memory 702 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 7021 and an application program 7022 .

其中,操作系统7021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序7022,包含各种应用程序,例如媒体播放器(MediaPlayer)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序7022中。Among them, the operating system 7021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing hardware-based tasks. The application program 7022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 7022 .

在本发明实施例中,通过调用存储器702存储的程序或指令,具体的,可以是应用程序7022中存储的程序或指令,压力传感器706在终端显示图片时,获取终端检测到的压力信息;处理器701用于根据所述压力信息,确定与所述压力信息对应的图片切换速度和图片切换方向;在所述压力信息中的压力值大于零的按压时间内,沿所述图片切换方向以所述图片切换速度自动切换图片。In the embodiment of the present invention, by calling the program or instruction stored in the memory 702, specifically, the program or instruction stored in the application program 7022, the pressure sensor 706 obtains the pressure information detected by the terminal when the terminal displays a picture; The device 701 is used to determine the picture switching speed and the picture switching direction corresponding to the pressure information according to the pressure information; during the pressing time when the pressure value in the pressure information is greater than zero, the picture switching direction is determined along the picture switching direction The above picture switching speed automatically switches pictures.

上述本发明实施例揭示的方法可以应用于处理器701中,或者由处理器701实现。处理器701可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器701中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器701可以是通用处理器、数字信号处理器(DigitalSignalProcessor,DSP)、专用集成电路(ApplicationSpecificIntegratedCircuit,ASIC)、现成可编程门阵列(FieldProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器702,处理器701读取存储器702中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 701 or implemented by the processor 701 . The processor 701 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 701 or instructions in the form of software. The above-mentioned processor 701 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or Transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702, and completes the steps of the above method in combination with its hardware.

可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecificIntegratedCircuits,ASIC)、数字信号处理器(DigitalSignalProcessing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(ProgrammableLogicDevice,PLD)、现场可编程门阵列(Field-ProgrammableGateArray,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD ), Field-Programmable Gate Array (Field-Programmable GateArray, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application, or a combination thereof.

对于软件实现,可通过执行本发明实施例所述功能的模块(例如过程、函数等)来实现本发明实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques described in the embodiments of the present invention may be implemented through modules (such as procedures, functions, etc.) that execute the functions described in the embodiments of the present invention. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

可选地,作为另一个实施例,处理器701还用于根据所述压力信息中的压力值,确定与所述压力值对应的图片切换速度和图片切换方向。Optionally, as another embodiment, the processor 701 is further configured to determine a picture switching speed and a picture switching direction corresponding to the pressure value according to the pressure value in the pressure information.

可选地,作为另一个实施例,处理器701还用于若所述压力值大于零且小于或者等于第一预设值,确定所述图片切换速度为第一值,所述图片切换方向为第一方向;若所述压力的大小大于第一预设值,确定所述图片切换速度为第二值,所述图片切换方向为与所述第一方向相反的第二方向。Optionally, as another embodiment, the processor 701 is further configured to determine that the picture switching speed is a first value if the pressure value is greater than zero and less than or equal to a first preset value, and that the picture switching direction is A first direction; if the magnitude of the pressure is greater than a first preset value, determine that the picture switching speed is a second value, and the picture switching direction is a second direction opposite to the first direction.

可选地,作为另一个实施例,处理器701还用于根据所述压力信息中的压力值,确定与所述压力值对应的图片切换速度;根据所述压力信息中的单次按压的按压位置移动方向,确定与所述按压位置移动方向对应的图片切换方向。Optionally, as another embodiment, the processor 701 is further configured to determine the picture switching speed corresponding to the pressure value according to the pressure value in the pressure information; The position moving direction is to determine the picture switching direction corresponding to the pressing position moving direction.

可选地,作为另一个实施例,处理器701还用于若所述按压位置移动方向在第一预设范围内,确定所述切换方向为第一方向;若所述按压位置移动方向在第二预设范围内,确定所述切换方向为与所述第一方向相反的第二方向。Optionally, as another embodiment, the processor 701 is further configured to determine that the switching direction is the first direction if the moving direction of the pressing position is within a first preset range; Within a preset range, the switching direction is determined to be a second direction opposite to the first direction.

移动终端700能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 700 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here.

本发明实施例的移动终端700通过上述模块,将切换图片的条件对应到按压终端的压力值(或者压力值和按压位置移动方向),根据压力值确定图片切换速度和图片切换方向(或者根据压力值确定图片切换速度并根据按压位置移动方向确定图片切换方向),继而自动切换图片,实现了对切换图片的方式灵活控制,提升用户体验。The mobile terminal 700 of the embodiment of the present invention corresponds the condition of switching pictures to the pressure value (or pressure value and the moving direction of the pressed position) of pressing the terminal through the above modules, and determines the picture switching speed and picture switching direction according to the pressure value (or according to the pressure value). The value determines the picture switching speed and determines the picture switching direction according to the moving direction of the pressed position), and then automatically switches pictures, which realizes flexible control of the way of switching pictures and improves user experience.

第五实施例fifth embodiment

如图8所示,移动终端800可以为手机、平板电脑、个人数字助理(PersonalDigital Assistant,PDA)、或车载电脑等具有RF电路810的通信设备。As shown in FIG. 8 , the mobile terminal 800 may be a communication device having an RF circuit 810 such as a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

图8中的移动终端800包括射频(RadioFrequency,RF)电路810、存储器820、输入单元830、显示单元840、压力传感器850、处理器860、音频电路870、WiFi(WirelessFidelity)模块880和电源890。The mobile terminal 800 in FIG. 8 includes a radio frequency (Radio Frequency, RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a pressure sensor 850, a processor 860, an audio circuit 870, a WiFi (Wireless Fidelity) module 880, and a power supply 890.

其中,输入单元830可用于接收用户输入的数字或字符信息,以及产生与移动终端800的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元830可以包括触控面板831。触控面板831,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板831上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板831可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器860,并能接收处理器860发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板831。除了触控面板831,输入单元830还可以包括其他输入设备832,其他输入设备832可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 830 can be used for receiving number or character information input by the user, and generating signal input related to the user setting and function control of the mobile terminal 800 . Specifically, in the embodiment of the present invention, the input unit 830 may include a touch panel 831 . The touch panel 831, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 831 using any suitable object or accessory such as a finger or a stylus), and based on preset The specified program drives the corresponding connected device. Optionally, the touch panel 831 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 860, and can receive and execute commands sent by the processor 860. In addition, the touch panel 831 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 831, the input unit 830 may also include other input devices 832, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元840可用于显示由用户输入的信息或提供给用户的信息以及移动终端800的各种菜单界面。显示单元840可包括显示面板841,可选的,可以采用LCD或有机发光二极管(OrganicLight-EmittingDiode,OLED)等形式来配置显示面板841。Wherein, the display unit 840 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 800 . The display unit 840 may include a display panel 841. Optionally, the display panel 841 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

在本发明实施例中,通过调用存储该第一存储器821内的软件程序和/或模块和/或该第二存储器822内的数据,第一存储器821和/或第二存储器822用于保存图片切换速度及图片切换方向与压力信息的对应关系。压力传感器850用于在终端显示图片时,获取终端检测到的压力信息;处理器860用于根据所述压力信息,确定与所述压力信息对应的图片切换速度和图片切换方向;在所述压力信息中的压力值大于零的按压时间内,沿所述图片切换方向以所述图片切换速度自动切换图片。In the embodiment of the present invention, the first memory 821 and/or the second memory 822 are used to store pictures by calling and storing software programs and/or modules in the first memory 821 and/or data in the second memory 822 The corresponding relationship between switching speed, picture switching direction and pressure information. The pressure sensor 850 is used to obtain pressure information detected by the terminal when the terminal displays pictures; the processor 860 is used to determine the picture switching speed and picture switching direction corresponding to the pressure information according to the pressure information; During the pressing time when the pressure value in the information is greater than zero, the pictures are automatically switched along the picture switching direction at the picture switching speed.

可选地,作为另一实施例,处理器860还用于根据所述压力信息中的压力值,确定与所述压力值对应的图片切换速度和图片切换方向。Optionally, as another embodiment, the processor 860 is further configured to determine a picture switching speed and a picture switching direction corresponding to the pressure value according to the pressure value in the pressure information.

可选地,作为另一个实施例,处理器860还用于若所述压力值大于零且小于或者等于第一预设值,确定所述图片切换速度为第一值,所述图片切换方向为第一方向;若所述压力的大小大于第一预设值,确定所述图片切换速度为第二值,所述图片切换方向为与所述第一方向相反的第二方向。Optionally, as another embodiment, the processor 860 is further configured to determine that the picture switching speed is a first value if the pressure value is greater than zero and less than or equal to a first preset value, and that the picture switching direction is A first direction; if the magnitude of the pressure is greater than a first preset value, determine that the picture switching speed is a second value, and the picture switching direction is a second direction opposite to the first direction.

可选地,作为另一个实施例,处理器860还用于根据所述压力信息中的压力值,确定与所述压力值对应的图片切换速度;根据所述压力信息中的单次按压的按压位置移动方向,确定与所述按压位置移动方向对应的图片切换方向。Optionally, as another embodiment, the processor 860 is further configured to determine the picture switching speed corresponding to the pressure value according to the pressure value in the pressure information; The position moving direction is to determine the picture switching direction corresponding to the pressing position moving direction.

可选地,作为另一个实施例,处理器860还用于若所述按压位置移动方向在第一预设范围内,确定所述切换方向为第一方向;若所述按压位置移动方向在第二预设范围内,确定所述切换方向为与所述第一方向相反的第二方向。Optionally, as another embodiment, the processor 860 is further configured to determine that the switching direction is the first direction if the moving direction of the pressing position is within a first preset range; Within a preset range, the switching direction is determined to be a second direction opposite to the first direction.

应注意,触控面板831可以覆盖显示面板841,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器860以确定触摸事件的类型,随后处理器860根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 831 can cover the display panel 841 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 860 to determine the type of the touch event, and then the processor The 860 provides corresponding visual output on the touch display screen according to the type of the touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.

其中处理器860是移动终端800的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器821内的软件程序和/或模块,以及调用存储在第二存储器822内的数据,执行移动终端800的各种功能和处理数据,从而对移动终端800进行整体监控。可选的,处理器860可包括一个或多个处理单元。Wherein the processor 860 is the control center of the mobile terminal 800, utilizes various interfaces and lines to connect the various parts of the whole mobile phone, by running or executing the software programs and/or modules stored in the first memory 821, and calling the software programs and/or modules stored in the second memory 821. The data in the memory 822 executes various functions of the mobile terminal 800 and processes data, so as to monitor the mobile terminal 800 as a whole. Optionally, the processor 860 may include one or more processing units.

移动终端800能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 800 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.

本发明实施例的移动终端800通过上述模块,将切换图片的条件对应到按压终端的压力值(或者压力值和按压位置移动方向),根据压力值确定图片切换速度和图片切换方向(或者根据压力值确定图片切换速度并根据按压位置移动方向确定图片切换方向),继而自动切换图片,实现了对切换图片的方式灵活控制,提升用户体验。The mobile terminal 800 of the embodiment of the present invention corresponds the condition of switching pictures to the pressure value (or the pressure value and the moving direction of the pressed position) of pressing the terminal through the above modules, and determines the picture switching speed and picture switching direction according to the pressure value (or according to the pressure value). The value determines the picture switching speed and determines the picture switching direction according to the moving direction of the pressed position), and then automatically switches pictures, which realizes flexible control of the way of switching pictures and improves user experience.

本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。本发明实施例的移动终端通过上述模块,根据按压显示屏的力度变化对播放中的每张幻灯片的展示时间进行调整,简便高效,使得用户能够自由的控制幻灯片播放的图片的显示时间,符合人性化设计,提升了用户体验。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here. The mobile terminal according to the embodiment of the present invention adjusts the display time of each slide in play according to the change of the strength of pressing the display screen through the above-mentioned module, which is simple and efficient, so that the user can freely control the display time of the pictures played by the slide show, In line with the humanized design, it improves the user experience.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, these improvements and modifications It should also be regarded as the protection scope of the present invention.

Claims (10)

1.一种切换图片的方法,其特征在于,所述方法包括:1. A method for switching pictures, characterized in that the method comprises: 终端显示图片时,获取终端检测到的压力信息;When the terminal displays a picture, obtain the pressure information detected by the terminal; 根据所述压力信息,确定与所述压力信息对应的图片切换速度和图片切换方向;determining a picture switching speed and a picture switching direction corresponding to the pressure information according to the pressure information; 在所述压力信息中的压力值大于零的按压时间内,沿所述图片切换方向以所述图片切换速度自动切换图片。During the pressing time when the pressure value in the pressure information is greater than zero, automatically switch pictures along the picture switching direction at the picture switching speed. 2.如权利要求1所述的方法,其特征在于,所述根据所述压力信息,确定与所述压力信息对应的图片切换速度和图片切换方向的步骤包括:2. The method according to claim 1, wherein the step of determining the picture switching speed and picture switching direction corresponding to the pressure information according to the pressure information comprises: 根据所述压力信息中的压力值,确定与所述压力值对应的图片切换速度和图片切换方向。According to the pressure value in the pressure information, a picture switching speed and a picture switching direction corresponding to the pressure value are determined. 3.如权利要求2所述的方法,其特征在于,根据所述压力信息中的压力值,确定与所述压力值对应的图片切换速度和图片切换方向的步骤包括:3. The method according to claim 2, wherein, according to the pressure value in the pressure information, the step of determining the picture switching speed and picture switching direction corresponding to the pressure value comprises: 若所述压力值大于零且小于或者等于第一预设值,确定所述图片切换速度为第一值,所述图片切换方向为第一方向;If the pressure value is greater than zero and less than or equal to a first preset value, determine that the picture switching speed is a first value, and that the picture switching direction is a first direction; 若所述压力的大小大于第一预设值,确定所述图片切换速度为第二值,所述图片切换方向为与所述第一方向相反的第二方向。If the magnitude of the pressure is greater than a first preset value, it is determined that the picture switching speed is a second value, and the picture switching direction is a second direction opposite to the first direction. 4.如权利要求1所述的方法,其特征在于,所述根据所述压力信息,确定与所述压力信息对应的图片切换速度和图片切换方向的步骤包括:4. The method according to claim 1, wherein the step of determining the picture switching speed and picture switching direction corresponding to the pressure information according to the pressure information comprises: 根据所述压力信息中的压力值,确定与所述压力值对应的图片切换速度;determining a picture switching speed corresponding to the pressure value according to the pressure value in the pressure information; 根据所述压力信息中的单次按压的按压位置移动方向,确定与所述按压位置移动方向对应的图片切换方向。According to the moving direction of the pressing position of a single press in the pressure information, a picture switching direction corresponding to the moving direction of the pressing position is determined. 5.如权利要求4所述的方法,其特征在于,根据所述压力信息中的单次按压的按压位置移动方向,确定与所述按压位置移动方向对应的图片切换方向的步骤包括:5. The method according to claim 4, wherein, according to the moving direction of the pressing position of a single press in the pressure information, the step of determining the picture switching direction corresponding to the moving direction of the pressing position comprises: 若所述按压位置移动方向在第一预设范围内,确定所述切换方向为第一方向;If the moving direction of the pressing position is within a first preset range, determining that the switching direction is a first direction; 若所述按压位置移动方向在第二预设范围内,确定所述切换方向为与所述第一方向相反的第二方向。If the moving direction of the pressing position is within a second preset range, it is determined that the switching direction is a second direction opposite to the first direction. 6.一种移动终端,其特征在于,所述移动终端包括:6. A mobile terminal, characterized in that the mobile terminal comprises: 压力获取模块,用于终端显示图片时,获取终端检测到的压力信息;The pressure acquisition module is used to obtain the pressure information detected by the terminal when the terminal displays pictures; 切换确定模块,用于根据所述压力信息,确定与所述压力信息对应的图片切换速度和图片切换方向;A switching determination module, configured to determine a picture switching speed and a picture switching direction corresponding to the pressure information according to the pressure information; 自动切换模块,用于在所述压力信息中的压力值大于零的按压时间内,沿所述图片切换方向以所述图片切换速度自动切换图片。An automatic switching module, configured to automatically switch pictures along the picture switching direction at the picture switching speed within the pressing time when the pressure value in the pressure information is greater than zero. 7.如权利要求6所述的移动终端,其特征在于,所述切换确定模块包括:7. The mobile terminal according to claim 6, wherein the handover determination module comprises: 第一切换确定子模块,用于根据所述压力信息中的压力值,确定与所述压力值对应的图片切换速度和图片切换方向。The first switching determining submodule is configured to determine a picture switching speed and a picture switching direction corresponding to the pressure value according to the pressure value in the pressure information. 8.如权利要求7所述的移动终端,其特征在于,根据第一切换确定子模块包括:8. The mobile terminal according to claim 7, wherein the determining submodule according to the first handover comprises: 第一确定单元,用于若所述压力值大于零且小于或者等于第一预设值,确定所述图片切换速度为第一值,所述图片切换方向为第一方向;A first determination unit, configured to determine that the picture switching speed is a first value and the picture switching direction is a first direction if the pressure value is greater than zero and less than or equal to a first preset value; 第二确定单元,用于若所述压力的大小大于第一预设值,确定所述图片切换速度为第二值,所述图片切换方向为与所述第一方向相反的第二方向。The second determination unit is configured to determine that the picture switching speed is a second value if the magnitude of the pressure is greater than a first preset value, and that the picture switching direction is a second direction opposite to the first direction. 9.如权利要求6所述的移动终端,其特征在于,所述切换确定模块包括:9. The mobile terminal according to claim 6, wherein the handover determining module comprises: 第二切换确定子模块,用于根据所述压力信息中的压力值,确定与所述压力值对应的图片切换速度;The second switching determination submodule is used to determine the picture switching speed corresponding to the pressure value according to the pressure value in the pressure information; 第三切换确定子模块,用于根据所述压力信息中的单次按压的按压位置移动方向,确定与所述按压位置移动方向对应的图片切换方向。The third switching determining submodule is configured to determine a picture switching direction corresponding to the moving direction of the pressing position according to the moving direction of the pressing position of a single press in the pressure information. 10.如权利要求9所述的移动终端,其特征在于,根据第三切换确定子模块包括:10. The mobile terminal according to claim 9, wherein the determining submodule according to the third handover comprises: 第三确定单元,用于若所述按压位置移动方向在第一预设范围内,确定所述切换方向为第一方向;A third determining unit, configured to determine that the switching direction is the first direction if the moving direction of the pressing position is within a first preset range; 第四确定单元,用于若所述按压位置移动方向在第二预设范围内,确定所述切换方向为与所述第一方向相反的第二方向。The fourth determining unit is configured to determine that the switching direction is a second direction opposite to the first direction if the moving direction of the pressing position is within a second preset range.
CN201610195436.XA 2016-03-31 2016-03-31 Image switching method and mobile terminal Pending CN105892856A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610195436.XA CN105892856A (en) 2016-03-31 2016-03-31 Image switching method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610195436.XA CN105892856A (en) 2016-03-31 2016-03-31 Image switching method and mobile terminal

Publications (1)

Publication Number Publication Date
CN105892856A true CN105892856A (en) 2016-08-24

Family

ID=57014249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610195436.XA Pending CN105892856A (en) 2016-03-31 2016-03-31 Image switching method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105892856A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114995736A (en) * 2022-06-29 2022-09-02 润芯微科技(江苏)有限公司 Image searching method and system based on pressure sensing

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309584A (en) * 2012-03-12 2013-09-18 联想(北京)有限公司 Method and system for controlling display contents of display screen, and electronic device
CN105068730A (en) * 2015-08-27 2015-11-18 广东欧珀移动通信有限公司 Content switching method and mobile terminal
CN105094643A (en) * 2015-07-30 2015-11-25 努比亚技术有限公司 Page display control method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309584A (en) * 2012-03-12 2013-09-18 联想(北京)有限公司 Method and system for controlling display contents of display screen, and electronic device
CN105094643A (en) * 2015-07-30 2015-11-25 努比亚技术有限公司 Page display control method and device
CN105068730A (en) * 2015-08-27 2015-11-18 广东欧珀移动通信有限公司 Content switching method and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114995736A (en) * 2022-06-29 2022-09-02 润芯微科技(江苏)有限公司 Image searching method and system based on pressure sensing

Similar Documents

Publication Publication Date Title
CN106843739B (en) A kind of display control method and mobile terminal of mobile terminal
TWI511027B (en) Method, device and apparatus of splitting screen
CN106406656B (en) A control method of application tool bar and mobile terminal
CN105824495B (en) A method for operating a mobile terminal with one hand and the mobile terminal
CN106155480B (en) A kind of interface display method and mobile terminal of application program
CN105224276A (en) A kind of multi-screen display method and electronic equipment
CN107102806A (en) A kind of split screen input method and mobile terminal
CN107613117A (en) A multitasking-based interface display method and mobile terminal
CN107678666A (en) A kind of virtual key display methods, mobile terminal and computer-readable recording medium
CN106445116B (en) A method for calling out a message notification bar and a mobile terminal
CN107659837B (en) A multimedia data playback control method and mobile terminal
CN106527904A (en) Method for adjusting display interface and mobile terminal
CN107678667B (en) A virtual keyboard display method and mobile terminal
CN106959864A (en) A kind of adjusting method and mobile terminal of interface display effect
CN106406741B (en) Operation and processing method of mobile terminal and mobile terminal
CN107566616A (en) A kind of display methods of information, terminal and computer-readable recording medium
CN106951174A (en) The method of adjustment and mobile terminal of a kind of dummy keyboard
CN107608591A (en) The display methods and mobile terminal of a kind of virtual key
CN107333067A (en) Camera control method and terminal
CN107491278A (en) A kind of split screen processing method and terminal
CN106970752A (en) A kind of screenshotss method and mobile terminal
CN106503179A (en) A kind of loading method of Webpage and mobile terminal
CN106940597A (en) A kind of camera starts control method and mobile terminal
CN106354374A (en) Icon moving method and mobile terminal
CN106997268A (en) A kind of application control method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160824