WO2014127626A1 - 一种图库展示方法及装置 - Google Patents

一种图库展示方法及装置 Download PDF

Info

Publication number
WO2014127626A1
WO2014127626A1 PCT/CN2013/083486 CN2013083486W WO2014127626A1 WO 2014127626 A1 WO2014127626 A1 WO 2014127626A1 CN 2013083486 W CN2013083486 W CN 2013083486W WO 2014127626 A1 WO2014127626 A1 WO 2014127626A1
Authority
WO
WIPO (PCT)
Prior art keywords
gallery
sliding
sliding trajectory
predetermined area
trajectory
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.)
Ceased
Application number
PCT/CN2013/083486
Other languages
English (en)
French (fr)
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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to US14/141,497 priority Critical patent/US20140240247A1/en
Publication of WO2014127626A1 publication Critical patent/WO2014127626A1/zh
Anticipated expiration legal-status Critical
Ceased 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/0485Scrolling or panning
    • 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/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
    • G06F3/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a library display method and apparatus. Background technique
  • the total number of photos in the gallery is displayed in the message display bar at the top of the mobile phone screen, and the "mobile phone picture” and “cloud album” message display columns are displayed at the bottom of the mobile phone screen. Used for users to choose to view images stored in different locations.
  • the "mobile phone picture” and “cloud album” message display column occupy the picture display area, the gallery shows a total of 18 pictures in Figure 1 to Figure 18, however, there are 434 pictures in the gallery, only 18 pictures can be displayed at a time. Increased the number of times the image is swiped. Summary of the invention
  • Embodiments of the present invention provide a library display method and apparatus for automatically displaying or hiding a predetermined area, increasing a display area of a picture in a gallery, reducing the number of image slide display times, saving image processing time, and improving the user experience.
  • the method includes:
  • detecting a sliding track of the touch operation on the screen of the terminal comprises: Detecting a starting point and a ending point of the touch operation on the screen of the terminal;
  • the mapping operation corresponding to the sliding track is determined according to the corresponding relationship between the preset sliding track and the library operation, including:
  • the gallery operation corresponding to the sliding track is determined.
  • determining whether the sliding track is valid according to the direction of the sliding track and the sliding straight line distance include:
  • displaying or hiding a predetermined area and displaying a picture in the gallery including:
  • the corresponding gallery operation is to display the predetermined area, then the predetermined area is displayed, and the picture in the gallery is displayed in the position of the entire terminal screen except the predetermined area.
  • a detecting module configured to detect a sliding track of a touch operation on a screen of the terminal
  • a display module configured to display or hide a predetermined area and display a picture in the gallery according to the gallery operation corresponding to the sliding track.
  • the device further includes:
  • a determining module configured to determine a gallery operation corresponding to the sliding track according to a preset relationship between the preset sliding track and the library operation; or send the sliding track to a gallery application installed in the terminal, where the library application is Corresponding relationship between the preset sliding track and the library operation determines the library operation corresponding to the sliding track.
  • the detecting module is configured to detect a starting point and a ending point of the touch operation on the screen of the terminal; determining a direction and a sliding line of the sliding track according to the starting point and the ending point of the touch operation distance.
  • the determining module is configured to determine whether the sliding track is valid according to a direction of the sliding track and a sliding straight line distance; and when the sliding track is determined to be valid, the preset sliding track is Operated with the gallery In the correspondence, the search determines the gallery operation corresponding to the sliding track.
  • the device further includes:
  • the determining module is configured to determine whether the direction of the sliding track and the sliding straight line distance are within a predetermined range; when the predetermined range is within the predetermined range, determine that the sliding track is valid; when not within the predetermined range, determine that the sliding track is invalid.
  • the display module is configured to: when the sliding track is sliding toward the top of the terminal, the corresponding gallery operation is to hide the predetermined area, the predetermined area is hidden, and the picture in the gallery is displayed on the entire terminal screen; When the trajectory is slid to the bottom of the terminal, the corresponding gallery operation is to display the predetermined area, then the predetermined area is displayed, and the pictures in the gallery are displayed in the position of the entire terminal screen except the predetermined area.
  • the method and device for displaying a library are used for detecting a sliding track of a touch operation on a screen of a terminal; displaying or hiding a predetermined area and displaying a picture in a gallery according to a library operation corresponding to the sliding track;
  • the gallery display image is opened, the predetermined area can be automatically hidden according to the sliding track generated by the user on the terminal screen, the display area of the picture in the gallery is increased, the number of image sliding impressions is reduced, the picture processing time is saved, and the user experience is improved.
  • FIG. 1 is a schematic diagram of a gallery display picture in the background art
  • FIG. 2 is a flowchart of a method for displaying a gallery according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a gallery display picture according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for displaying a gallery when sliding up and down in another embodiment of the present invention
  • FIG. 5 is a flowchart of a method for displaying a gallery when sliding left and right according to another embodiment of the present invention.
  • FIG. 6 is a flowchart of a process of determining a gallery operation corresponding to a sliding track according to another embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a virtual structure of a gallery display device according to an embodiment of the present invention. detailed description
  • the method for displaying a gallery provided by the embodiment of the present invention, as shown in FIG. 2, specifically includes the following steps:
  • Step 201 Detect a sliding track of a touch operation on a screen of the terminal
  • Step 202 Display or hide the predetermined area and display the picture in the gallery according to the library operation corresponding to the sliding track.
  • the method comprises: determining a library operation corresponding to the sliding track according to the corresponding relationship between the preset sliding track and the library operation; or sending the sliding track to The gallery application installed in the terminal, the gallery application determines the library operation corresponding to the sliding track according to the corresponding relationship between the preset sliding track and the library operation.
  • the preset relationship between the sliding track and the library operation is preset in the terminal, for example: when the sliding track is swiping up (to the top of the terminal), the corresponding gallery operation is to hide a predetermined area in the gallery, such as a message display column; Corresponds to the predetermined area in the display gallery. In this way, after the sliding track is detected, the corresponding library operation can be determined according to the corresponding relationship.
  • detecting a sliding track of the touch operation on the screen of the terminal comprises: detecting a starting point and a ending point of the touch operation on the screen of the terminal; determining a sliding track according to the starting point and the ending point of the touch operation The direction and the sliding straight distance.
  • determining a library operation corresponding to the sliding track according to the corresponding relationship between the preset sliding track and the library operation comprising: determining whether the sliding track is valid according to the direction of the sliding track and the sliding straight line distance; When the trajectory is judged to be valid, in the corresponding relationship between the preset sliding trajectory and the library operation, the library operation corresponding to the determined sliding trajectory is determined.
  • determining whether the sliding track is valid according to the direction of the sliding track and the sliding straight line distance comprises: determining whether the direction of the sliding track and the sliding straight line distance are within a predetermined range; when in the predetermined range, determining The sliding track is valid; when it is not within the predetermined range, it is judged that the sliding track is invalid.
  • a valid range can be preset for the direction of the sliding track.
  • the straight line between the starting point and the ending point and the horizontal or vertical angle of the terminal are within X, and all are effective sliding.
  • the predetermined range is 30 degrees to 150 degrees with respect to the horizontal direction of the mobile phone.
  • the predetermined range is 30 degrees to 150 degrees with respect to the vertical direction of the mobile phone. If the direction of the sliding track is too biased, such as vertical sliding, the gallery operation corresponding to the sliding track cannot be determined, which is invalid sliding.
  • a threshold value can also be set for the sliding linear distance of the sliding track, such as y, and when the sliding straight line distance is greater than y, it is determined to be an effective operation.
  • displaying or hiding the predetermined area and displaying the picture in the gallery including: when the sliding track is sliding toward the top of the terminal, the corresponding gallery operation is to hide the predetermined area, The predetermined area is hidden, and the picture in the gallery is displayed on the entire terminal screen; when the sliding track is sliding to the bottom of the terminal, the corresponding gallery operation is to display the predetermined area, then the predetermined area is displayed, and the entire terminal screen is except the predetermined area. Show images from the gallery. As shown in FIG. 3, a schematic diagram of a picture displayed in the gallery after hiding the predetermined area. With Figure 1 Contrast, it can be seen that the number of pictures displayed in the gallery has increased, and 26 pictures from picture 1 to picture 26 can be displayed, which reduces the number of slides of viewing pictures and improves processing efficiency.
  • the gallery display method provided by the embodiment of the present invention can automatically hide the predetermined area according to the sliding track generated by the user on the screen of the terminal when the library display picture is opened, and increase the display area of the picture in the gallery, thereby reducing Image slide impressions saves image processing time and improves user experience.
  • the method provided by the present invention is described in detail by taking an upward sliding and hiding a predetermined area as an example. As shown in FIG. 4, the following steps are included:
  • Step 401 Detect a sliding track of a touch operation on a screen of the terminal
  • Step 402 Determine a library operation corresponding to the sliding track according to the corresponding relationship between the preset sliding track and the library operation.
  • the process of determining the corresponding relationship may be processed by the main processor of the terminal, or the sliding track may be sent to the terminal.
  • the installed gallery application which determines the library operation corresponding to the sliding track according to the corresponding relationship between the preset sliding track and the library operation.
  • Step 403 When the sliding track is sliding toward the top of the terminal, and the corresponding gallery operation is to hide the predetermined area, the predetermined area is hidden, and the picture in the gallery is displayed on the entire terminal screen; the process ends.
  • Step 404 When the sliding track is sliding to the bottom of the terminal, the corresponding gallery operation is to display the predetermined area, then the predetermined area is displayed, and the picture in the gallery is displayed in the position of the entire terminal screen except the predetermined area.
  • Step 501 detecting a sliding track of the touch operation on the screen of the terminal
  • Step 502 Determine a library operation corresponding to the sliding track according to the corresponding relationship between the preset sliding track and the library operation.
  • the process of determining the corresponding relationship may be processed by the main processor of the terminal, or the sliding track may be sent to the terminal.
  • the installed gallery application which determines the library operation corresponding to the sliding track according to the corresponding relationship between the preset sliding track and the library operation.
  • Step 503 When the sliding track is sliding to the left side of the terminal, and the corresponding gallery operation is to hide the predetermined area, the predetermined area is hidden, and the picture in the gallery is displayed on the entire terminal screen; the process ends.
  • Step 504 When the sliding track is sliding to the right side of the terminal, and the corresponding gallery operation is to display the predetermined area, the predetermined area is displayed, and the picture in the gallery is displayed in the position of the entire terminal screen except the predetermined area.
  • Step 601 Determine whether the direction of the sliding track and the sliding straight line distance are within a predetermined range
  • Step 602 When the predetermined range is within, determine that the sliding track is valid; when not within the predetermined range, determine that the sliding track is invalid;
  • Step 603 When the sliding track is determined to be valid, in the corresponding relationship between the preset sliding track and the library operation, the library operation corresponding to the determined sliding track is determined.
  • the gallery display method provided by the embodiment of the present invention can automatically hide the predetermined area according to the sliding track generated by the user on the screen of the terminal when the library display picture is opened, and increase the display area of the picture in the gallery, thereby reducing Image slide impressions saves image processing time and improves user experience.
  • an embodiment of the present invention further provides a gallery display device. Since the principle of solving the problem is similar to the foregoing method, the implementation of the device may refer to the implementation of the method, and the repeated description is not repeated.
  • a gallery display device includes:
  • the detecting module 701 is configured to detect a sliding track of the touch operation on the screen of the terminal;
  • the display module 702 is configured to display or hide the predetermined area and display the picture in the gallery according to the gallery operation corresponding to the sliding track.
  • the device further comprises:
  • a determining module 703 configured to determine, according to a preset relationship between the preset sliding track and the library operation, a gallery operation corresponding to the sliding track; or send the sliding track to the gallery application installed in the terminal, and the gallery application according to the preset sliding track Correspondence with the library operation, determine the gallery operation corresponding to the sliding track.
  • the detecting module 701 is configured to detect a starting point and a ending point of the touch operation on the screen of the terminal; and determine a direction of the sliding track and a sliding straight line according to the starting point and the ending point of the touch operation.
  • the determining module 703 is configured to determine whether the sliding track is valid according to the direction of the sliding track and the sliding straight line distance; and when the sliding track is determined to be valid, in the corresponding relationship between the preset sliding track and the library operation, Find the gallery operation that determines the sliding track.
  • the device further comprises:
  • the determining module 704 is configured to determine whether the direction of the sliding track and the sliding straight line distance are within a predetermined range; when in the predetermined range, determine that the sliding track is valid; when not within the predetermined range, determine that the sliding track is invalid.
  • the display module 702 is configured to: when the sliding track is sliding toward the top of the terminal, the corresponding gallery operation is to hide the predetermined area, the predetermined area is hidden, and the picture in the gallery is displayed on the entire terminal screen; When the bottom of the terminal slides, the corresponding gallery operation is to display the predetermined area, then the predetermined area is displayed, and the pictures in the gallery are displayed in the position of the entire terminal screen except the predetermined area.
  • the library display method and device provided by the embodiment of the present invention can automatically hide the predetermined area according to the sliding track generated by the user on the screen of the terminal when the picture is displayed in the gallery, and increase the display area of the picture in the gallery, thereby reducing Image slide impressions saves image processing time and improves user experience.
  • the embodiments of the present invention can be implemented by hardware, or can be implemented by means of software plus a necessary general hardware platform.
  • the technical solution of the embodiment of the present invention may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.).
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
  • modules in the apparatus in the embodiments may be distributed in the apparatus of the embodiment according to the description of the embodiments, or may be correspondingly changed in one or more apparatuses different from the embodiment.
  • the modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.

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)

Abstract

本发明实施例公开了一种图库展示方法及装置,用于检测终端屏幕上触控操作的滑动轨迹;根据所述滑动轨迹对应的图库操作,显示或隐藏预定区域并展示图库中的图片。当打开图库显示图片时,可以根据用户在终端屏幕上产生的滑动轨迹,自动隐藏预定区域,增加图库中图片的显示区域,减少图片滑动展示次数,节省了图片处理时间,并且提高了用户体验。

Description

一种图库展示方法及装置
技术领域
本发明涉及通讯技术领域, 尤其涉及一种图库展示方法及装置。 背景技术
在通讯技术迅速发展的今天, 手机已经成为绝大多数人每天工作和生活的必需品, 而 利用手机拍照是目前常用且流行的方式。 由于手机存储空间越来越大, 可存储的照片数量 可以达到几百张。
目前, 如图 1所示, 打开手机中的图库应用程序后, 在手机屏幕顶端的消息显示栏中 显示图库中照片总数, 在手机屏幕底部显示 "手机图片"和 "云相册"消息显示栏, 用于 用户选择查看不同位置存储的图片。
其中, "手机图片"和 "云相册"消息显示栏占用了图片显示区域, 图库中显示了图 1至图 18共 18个图片, 然而图库中共有 434张图片, 每次仅能显示 18张, 增加了图片滑 动显示次数。 发明内容
本发明实施例提供了一种图库展示方法及装置, 用以自动显示或隐藏预定区域, 增加 图库中图片的显示区域, 减少图片滑动展示次数, 节省了图片处理时间, 并且提高了用户 体验。
本发明实施例提供的一种图库展示方法, 包括:
检测终端屏幕上触控操作的滑动轨迹;
根据所述滑动轨迹对应的图库操作, 显示或隐藏预定区域并展示图库中的图片。 较佳的, 所述检测终端屏幕上触控操作的滑动轨迹之后, 包括:
根据预置的滑动轨迹与图库操作的对应关系, 确定所述滑动轨迹对应的图库操作; 或 者
将所述滑动轨迹发送到终端中安装的图库应用程序,所述图库应用程序根据预置的滑 动轨迹与图库操作的对应关系, 确定所述滑动轨迹对应的图库操作。
较佳的, 检测终端屏幕上触控操作的滑动轨迹, 包括: 检测所述终端屏幕上触控操作的起始点和终止点;
根据所述触控操作的起始点和终止点, 确定所述滑动轨迹的方向和滑动直线距离。 较佳的, 根据预置的滑动轨迹与图库操作的对应关系, 确定所述滑动轨迹对应的图库 操作, 包括:
根据所述滑动轨迹的方向和滑动直线距离, 判断所述滑动轨迹是否有效;
当所述滑动轨迹被判断为有效时, 在所述预置的滑动轨迹与图库操作的对应关系中, 查找确定出所述滑动轨迹对应的图库操作。
较佳的, 根据所述滑动轨迹的方向和滑动直线距离, 判断所述滑动轨迹是否有效, 包 括:
判断所述滑动轨迹的方向和滑动直线距离是否在预定范围内;
当在预定范围内时, 判断所述滑动轨迹有效;
当不在预定范围内时, 判断所述滑动轨迹无效。
较佳的, 根据所述滑动轨迹对应的图库操作, 显示或隐藏预定区域并展示图库中的图 片, 包括:
当所述滑动轨迹为向终端顶部滑动时, 对应的图库操作为隐藏预定区域, 则将预定区 域隐藏, 在整个终端屏幕展示图库中的图片;
当所述滑动轨迹为向终端底部滑动时, 对应的图库操作为显示预定区域, 则显示预定 区域, 在整个终端屏幕除了预定区域以外的位置展示图库中的图片。
本发明实施例提供的一种图库展示方法装置, 包括:
检测模块, 用于检测终端屏幕上触控操作的滑动轨迹;
展示模块, 用于根据所述滑动轨迹对应的图库操作, 显示或隐藏预定区域并展示图库 中的图片。
较佳的, 所述装置还包括:
确定模块, 用于根据预置的滑动轨迹与图库操作的对应关系, 确定所述滑动轨迹对应 的图库操作; 或者将所述滑动轨迹发送到终端中安装的图库应用程序, 所述图库应用程序 根据预置的滑动轨迹与图库操作的对应关系, 确定所述滑动轨迹对应的图库操作。
较佳的, 所述检测模块, 用于检测所述终端屏幕上触控操作的起始点和终止点; 根据 所述触控操作的起始点和终止点, 确定所述滑动轨迹的方向和滑动直线距离。
较佳的, 所述确定模块, 用于根据所述滑动轨迹的方向和滑动直线距离, 判断所述滑 动轨迹是否有效; 当所述滑动轨迹被判断为有效时, 在所述预置的滑动轨迹与图库操作的 对应关系中, 查找确定出所述滑动轨迹对应的图库操作。
较佳的, 所述装置还包括:
判断模块, 用于判断所述滑动轨迹的方向和滑动直线距离是否在预定范围内; 当在预 定范围内时, 判断所述滑动轨迹有效; 当不在预定范围内时, 判断所述滑动轨迹无效。
较佳的, 展示模块, 用于当所述滑动轨迹为向终端顶部滑动时, 对应的图库操作为隐 藏预定区域, 则将预定区域隐藏, 在整个终端屏幕展示图库中的图片; 当所述滑动轨迹为 向终端底部滑动时, 对应的图库操作为显示预定区域, 则显示预定区域, 在整个终端屏幕 除了预定区域以外的位置展示图库中的图片。
本发明实施例的有益效果包括:
本发明实施例提供的图库展示方法及装置, 用于检测终端屏幕上触控操作的滑动轨 迹; 根据所述滑动轨迹对应的图库操作, 显示或隐藏预定区域并展示图库中的图片。 当打 开图库显示图片时, 可以根据用户在终端屏幕上产生的滑动轨迹, 自动隐藏预定区域, 增 加图库中图片的显示区域, 减少图片滑动展示次数, 节省了图片处理时间, 并且提高了用 户体验。 附图说明
图 1为背景技术中图库展示图片的示意图;
图 2为本发明实施例提供的图库展示方法的流程图;
图 3为本发明实施例提供的图库展示图片的示意图;
图 4为本发明另一实施例中上下滑动时图库展示方法的流程图;
图 5为本发明另一实施例中左右滑动时图库展示方法的流程图;
图 6为本发明另一实施例中确定滑动轨迹对应的图库操作的过程流程图;
图 7为本发明实施例中图库展示装置虚拟结构示意图。 具体实施方式
下面结合附图,对本发明实施例提供的图库展示方法及装置的具体实施方式进行详细 地说明。
本发明实施例提供的图库展示方法, 如图 2所示, 具体包括以下步骤:
步骤 201、 检测终端屏幕上触控操作的滑动轨迹;
步骤 202、根据滑动轨迹对应的图库操作,显示或隐藏预定区域并展示图库中的图片。 较佳地, 在一个实施中, 检测终端屏幕上触控操作的滑动轨迹之后, 包括: 根据预置 的滑动轨迹与图库操作的对应关系, 确定滑动轨迹对应的图库操作; 或者将滑动轨迹发送 到终端中安装的图库应用程序, 图库应用程序根据预置的滑动轨迹与图库操作的对应关 系, 确定滑动轨迹对应的图库操作。
其中, 预先在终端中预置滑动轨迹与图库操作的对应关系, 例如: 滑动轨迹为向上滑 动 (向终端顶部) 时, 其对应的图库操作为隐藏图库中的预定区域, 如消息显示栏; 或者 对应为显示图库中的预定区域。 这样, 检测到滑动轨迹后, 即可根据对应关系确定出相应 的图库操作。
较佳地, 在一个实施中, 检测终端屏幕上触控操作的滑动轨迹, 包括: 检测终端屏幕 上触控操作的起始点和终止点; 根据触控操作的起始点和终止点, 确定滑动轨迹的方向和 滑动直线距离。
较佳地, 在一个实施中, 根据预置的滑动轨迹与图库操作的对应关系, 确定滑动轨迹 对应的图库操作, 包括: 根据滑动轨迹的方向和滑动直线距离, 判断滑动轨迹是否有效; 当滑动轨迹被判断为有效时, 在预置的滑动轨迹与图库操作的对应关系中, 查找确定出滑 动轨迹对应的图库操作。
较佳地, 在一个实施中, 根据滑动轨迹的方向和滑动直线距离, 判断滑动轨迹是否有 效, 包括: 判断滑动轨迹的方向和滑动直线距离是否在预定范围内; 当在预定范围内时, 判断滑动轨迹有效; 当不在预定范围内时, 判断滑动轨迹无效。 为了防止误操作, 可以为 滑动轨迹的方向预先设置一个有效范围,如起始点和终止点之间的直线与终端横向或竖向 的角度为 X以内, 均为有效滑动。 例如预定范围为以手机横向为基准 30度至 150度, 若 滑动轨迹的方向过于偏移, 如横向滑动, 则无法判定该滑动轨迹对应的图库操作, 其为无 效滑动。 又例如预定范围为以手机竖向为基准 30度至 150度, 若滑动轨迹的方向过于偏 移, 如竖向滑动, 则无法判定该滑动轨迹对应的图库操作, 其为无效滑动。 同样的, 为了 防止误操作, 对于滑动轨迹的滑动直线距离也可以设置一个阈值, 如 y, 当滑动直线距离 大于 y时, 确定为有效操作。
较佳地, 在一个实施中, 根据滑动轨迹对应的图库操作, 显示或隐藏预定区域并展示 图库中的图片,包括: 当滑动轨迹为向终端顶部滑动时,对应的图库操作为隐藏预定区域, 则将预定区域隐藏,在整个终端屏幕展示图库中的图片;当滑动轨迹为向终端底部滑动时, 对应的图库操作为显示预定区域, 则显示预定区域, 在整个终端屏幕除了预定区域以外的 位置展示图库中的图片。 如图 3所示, 为隐藏预定区域后图库展示图片的示意图。 与图 1 对比, 可以看出, 图库展示的图片增多, 可以显示图片 1至图片 26共 26张, 进而减少了 查看图片的滑动次数, 提高处理效率。
通过上述描述可以看出,本发明实施例提供的图库展示方法,当打开图库显示图片时, 可以根据用户在终端屏幕上产生的滑动轨迹, 自动隐藏预定区域, 增加图库中图片的显示 区域, 减少图片滑动展示次数, 节省了图片处理时间, 并且提高了用户体验。
下面以向上滑动隐藏预定区域为例,对本发明提供的方法进行详细描述,如图 4所示, 包括以下步骤:
步骤 401、 检测终端屏幕上触控操作的滑动轨迹;
步骤 402、 根据预置的滑动轨迹与图库操作的对应关系, 确定滑动轨迹对应的图库操 作; 其中, 该确定对应关系的过程可以由终端的主处理器处理, 也可以将滑动轨迹发送到 终端中安装的图库应用程序, 该图库应用程序根据预置的滑动轨迹与图库操作的对应关 系, 确定滑动轨迹对应的图库操作。
步骤 403、 当滑动轨迹为向终端顶部滑动时, 对应的图库操作为隐藏预定区域, 则将 预定区域隐藏, 在整个终端屏幕展示图库中的图片; 流程结束。
步骤 404、 当滑动轨迹为向终端底部滑动时, 对应的图库操作为显示预定区域, 则显 示预定区域, 在整个终端屏幕除了预定区域以外的位置展示图库中的图片。
下面以横向滑动隐藏预定区域为例,对本发明提供的方法进行详细描述,如图 5所示, 包括以下步骤:
步骤 501、 检测终端屏幕上触控操作的滑动轨迹;
步骤 502、 根据预置的滑动轨迹与图库操作的对应关系, 确定滑动轨迹对应的图库操 作; 其中, 该确定对应关系的过程可以由终端的主处理器处理, 也可以将滑动轨迹发送到 终端中安装的图库应用程序, 该图库应用程序根据预置的滑动轨迹与图库操作的对应关 系, 确定滑动轨迹对应的图库操作。
步骤 503、 当滑动轨迹为向终端左侧滑动时, 对应的图库操作为隐藏预定区域, 则将 预定区域隐藏, 在整个终端屏幕展示图库中的图片; 流程结束。
步骤 504、 当滑动轨迹为向终端右侧滑动时, 对应的图库操作为显示预定区域, 则显 示预定区域, 在整个终端屏幕除了预定区域以外的位置展示图库中的图片。
其中, 可以通过检测终端屏幕上触控操作的起始点和终止点; 根据触控操作的起始点 和终止点, 确定滑动轨迹的方向和滑动直线距离。 这样, 如图 5所示, 上述步骤 402、 步 骤 502具体实现时可以包括以下步骤: 步骤 601、 判断滑动轨迹的方向和滑动直线距离是否在预定范围内;
步骤 602、 当在预定范围内时, 判断滑动轨迹有效; 当不在预定范围内时, 判断滑动 轨迹无效;
步骤 603、当滑动轨迹被判断为有效时,在预置的滑动轨迹与图库操作的对应关系中, 查找确定出滑动轨迹对应的图库操作。
通过上述描述可以看出,本发明实施例提供的图库展示方法,当打开图库显示图片时, 可以根据用户在终端屏幕上产生的滑动轨迹, 自动隐藏预定区域, 增加图库中图片的显示 区域, 减少图片滑动展示次数, 节省了图片处理时间, 并且提高了用户体验。
基于同一发明构思, 本发明实施例还提供了一种图库展示装置, 由于该装置解决问题 的原理与前述方法相似, 因此该装置的实施可以参见方法的实施, 重复之处不再赘述。
本发明实施例提供的一种图库展示装置, 如图 7所示, 包括:
检测模块 701, 用于检测终端屏幕上触控操作的滑动轨迹;
展示模块 702, 用于根据滑动轨迹对应的图库操作, 显示或隐藏预定区域并展示图库 中的图片。
较佳的, 该装置还包括:
确定模块 703, 用于根据预置的滑动轨迹与图库操作的对应关系, 确定滑动轨迹对应 的图库操作; 或者将滑动轨迹发送到终端中安装的图库应用程序, 图库应用程序根据预置 的滑动轨迹与图库操作的对应关系, 确定滑动轨迹对应的图库操作。
较佳的, 该检测模块 701, 用于检测终端屏幕上触控操作的起始点和终止点; 根据触 控操作的起始点和终止点, 确定滑动轨迹的方向和滑动直线距离。
较佳的, 该确定模块 703, 用于根据滑动轨迹的方向和滑动直线距离, 判断滑动轨迹 是否有效; 当滑动轨迹被判断为有效时, 在预置的滑动轨迹与图库操作的对应关系中, 查 找确定出滑动轨迹对应的图库操作。
较佳的, 该装置还包括:
判断模块 704, 用于判断滑动轨迹的方向和滑动直线距离是否在预定范围内; 当在预 定范围内时, 判断滑动轨迹有效; 当不在预定范围内时, 判断滑动轨迹无效。
较佳的, 展示模块 702, 用于当滑动轨迹为向终端顶部滑动时, 对应的图库操作为隐 藏预定区域, 则将预定区域隐藏, 在整个终端屏幕展示图库中的图片; 当滑动轨迹为向终 端底部滑动时, 对应的图库操作为显示预定区域, 则显示预定区域, 在整个终端屏幕除了 预定区域以外的位置展示图库中的图片。 通过上述描述可知, 本发明实施例提供的图库展示方法及装置, 当打开图库显示图片 时, 可以根据用户在终端屏幕上产生的滑动轨迹, 自动隐藏预定区域, 增加图库中图片的 显示区域, 减少图片滑动展示次数, 节省了图片处理时间, 并且提高了用户体验。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明实施例可以 通过硬件实现, 也可以借助软件加必要的通用硬件平台的方式来实现。 基于这样的理解, 本发明实施例的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非 易失性存储介质 (可以是 CD-ROM, U盘, 移动硬盘等) 中, 包括若干指令用以使得一台 计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述 的方法。
本领域技术人员可以理解附图只是一个优选实施例的示意图, 附图中的模块或流程并 不一定是实施本发明所必须的。
本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于 实施例的装置中, 也可以进行相应变化位于不同于本实施例的一个或多个装置中。 上述实 施例的模块可以合并为一个模块, 也可以进一步拆分成多个子模块。
上述本发明实施例序号仅仅为了描述, 不代表实施例的优劣。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和 范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。

Claims

权利要求
1、 一种图库展示方法, 其特征在于, 包括:
检测终端屏幕上触控操作的滑动轨迹;
根据所述滑动轨迹对应的图库操作, 显示或隐藏预定区域并展示图库中的图片。
2、 根据权利要求 1所述的方法, 其特征在于, 所述检测终端屏幕上触控操作的滑动 轨迹之后, 包括:
根据预置的滑动轨迹与图库操作的对应关系,确定所述滑动轨迹对应的图库操作;或 者
将所述滑动轨迹发送到终端中安装的图库应用程序,所述图库应用程序根据预置的滑 动轨迹与图库操作的对应关系, 确定所述滑动轨迹对应的图库操作。
3、根据权利要求 1所述的方法, 其特征在于, 检测终端屏幕上触控操作的滑动轨迹, 包括:
检测所述终端屏幕上触控操作的起始点和终止点;
根据所述触控操作的起始点和终止点, 确定所述滑动轨迹的方向和滑动直线距离。
4、 根据权利要求 3所述的方法, 其特征在于, 所述根据预置的滑动轨迹与图库操作 的对应关系, 确定所述滑动轨迹对应的图库操作, 包括:
根据所述滑动轨迹的方向和滑动直线距离, 判断所述滑动轨迹是否有效;
当所述滑动轨迹被判断为有效时, 在所述预置的滑动轨迹与图库操作的对应关系中, 查找确定出所述滑动轨迹对应的图库操作。
5、 根据权利要求 4所述的方法, 其特征在于, 根据所述滑动轨迹的方向和滑动直线 距离, 判断所述滑动轨迹是否有效, 包括:
判断所述滑动轨迹的方向和滑动直线距离是否在预定范围内;
当在预定范围内时, 判断所述滑动轨迹有效;
当不在预定范围内时, 判断所述滑动轨迹无效。
6、 根据权利要求 1所述的方法, 其特征在于, 根据所述滑动轨迹对应的图库操作, 显示或隐藏预定区域并展示图库中的图片, 包括:
当所述滑动轨迹为向终端顶部滑动时,对应的图库操作为隐藏预定区域,则将预定区 域隐藏, 在整个终端屏幕展示图库中的图片;
当所述滑动轨迹为向终端底部滑动时,对应的图库操作为显示预定区域,则显示预定 区域, 在整个终端屏幕除了预定区域以外的位置展示图库中的图片。
7、 一种图库展示装置, 其特征在于, 包括:
检测模块, 用于检测终端屏幕上触控操作的滑动轨迹;
展示模块,用于根据所述滑动轨迹对应的图库操作,显示或隐藏预定区域并展示图库 中的图片。
8、 根据权利要求 7所述的装置, 其特征在于, 所述装置还包括:
确定模块,用于根据预置的滑动轨迹与图库操作的对应关系,确定所述滑动轨迹对应 的图库操作;或者将所述滑动轨迹发送到终端中安装的图库应用程序,所述图库应用程序 根据预置的滑动轨迹与图库操作的对应关系, 确定所述滑动轨迹对应的图库操作。
9、 根据权利要求 7所述的装置, 其特征在于, 所述检测模块, 用于检测所述终端屏 幕上触控操作的起始点和终止点;根据所述触控操作的起始点和终止点,确定所述滑动轨 迹的方向和滑动直线距离。
10、根据权利要求 9所述的装置, 其特征在于, 所述确定模块, 用于根据所述滑动轨 迹的方向和滑动直线距离,判断所述滑动轨迹是否有效;当所述滑动轨迹被判断为有效时, 在所述预置的滑动轨迹与图库操作的对应关系中,查找确定出所述滑动轨迹对应的图库操 作。
11、 根据权利要求 10所述的装置, 其特征在于, 所述装置还包括:
判断模块,用于判断所述滑动轨迹的方向和滑动直线距离是否在预定范围内; 当在预 定范围内时, 判断所述滑动轨迹有效; 当不在预定范围内时, 判断所述滑动轨迹无效。
12、 根据权利要求 7所述的装置, 其特征在于, 所述展示模块, 用于当所述滑动轨迹 为向终端顶部滑动时, 对应的图库操作为隐藏预定区域, 则将预定区域隐藏, 在整个终端 屏幕展示图库中的图片; 当所述滑动轨迹为向终端底部滑动时,对应的图库操作为显示预 定区域, 则显示预定区域, 在整个终端屏幕除了预定区域以外的位置展示图库中的图片。
PCT/CN2013/083486 2013-02-22 2013-09-13 一种图库展示方法及装置 Ceased WO2014127626A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/141,497 US20140240247A1 (en) 2013-02-22 2013-12-27 Method for presenting a photo gallery and terminal device thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310056645.2A CN103135903B (zh) 2013-02-22 2013-02-22 一种图库展示方法及装置
CN201310056645.2 2013-02-22

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/141,497 Continuation-In-Part US20140240247A1 (en) 2013-02-22 2013-12-27 Method for presenting a photo gallery and terminal device thereof

Publications (1)

Publication Number Publication Date
WO2014127626A1 true WO2014127626A1 (zh) 2014-08-28

Family

ID=48495795

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/083486 Ceased WO2014127626A1 (zh) 2013-02-22 2013-09-13 一种图库展示方法及装置

Country Status (2)

Country Link
CN (1) CN103135903B (zh)
WO (1) WO2014127626A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135903B (zh) * 2013-02-22 2016-04-27 小米科技有限责任公司 一种图库展示方法及装置
CN104679395B (zh) 2013-11-26 2017-11-28 华为技术有限公司 一种文档呈现方法及用户终端
CN104142792B (zh) 2014-04-18 2016-10-26 腾讯科技(深圳)有限公司 一种应用界面切换方法及装置
CN103995666B (zh) * 2014-04-30 2018-10-02 小米科技有限责任公司 一种设置工作模式的方法和装置
CN104820538B (zh) * 2015-05-18 2018-05-25 广东欧珀移动通信有限公司 一种相册的打开方法及系统
CN105549935B (zh) * 2015-12-18 2018-11-23 小米科技有限责任公司 显示照片的方法及装置
CN107678628A (zh) * 2017-10-27 2018-02-09 珠海市魅族科技有限公司 图片展示方法及装置、计算机装置和计算机可读存储介质
CN107798254A (zh) * 2017-11-30 2018-03-13 努比亚技术有限公司 一种隐私保护方法、移动终端及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314298A (zh) * 2010-07-06 2012-01-11 宏碁股份有限公司 电子装置与工具栏的显示方法
WO2012039985A1 (en) * 2010-09-22 2012-03-29 Qualcomm Incorporated Method and device for revealing images obscured by a program guide in electronic devices
CN102760005A (zh) * 2012-03-26 2012-10-31 联想(北京)有限公司 一种控制电子设备的方法及装置
CN102799382A (zh) * 2012-07-16 2012-11-28 华为终端有限公司 用户设备的系统栏的控制方法和用户设备
CN103135903A (zh) * 2013-02-22 2013-06-05 北京小米科技有限责任公司 一种图库展示方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7768501B1 (en) * 1998-05-01 2010-08-03 International Business Machines Corporation Method and system for touch screen keyboard and display space sharing
CN101356493A (zh) * 2006-09-06 2009-01-28 苹果公司 用于照片管理的便携式电子装置
CN101571784B (zh) * 2008-04-29 2013-03-06 宏达国际电子股份有限公司 电子装置与自动隐藏键盘方法
CN101950235B (zh) * 2010-08-23 2013-06-05 中兴通讯股份有限公司 一种实现触摸屏界面滑动的方法和终端
CN102819397A (zh) * 2012-08-02 2012-12-12 广东欧珀移动通信有限公司 一种手持设备相册的快速浏览查找方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314298A (zh) * 2010-07-06 2012-01-11 宏碁股份有限公司 电子装置与工具栏的显示方法
WO2012039985A1 (en) * 2010-09-22 2012-03-29 Qualcomm Incorporated Method and device for revealing images obscured by a program guide in electronic devices
CN102760005A (zh) * 2012-03-26 2012-10-31 联想(北京)有限公司 一种控制电子设备的方法及装置
CN102799382A (zh) * 2012-07-16 2012-11-28 华为终端有限公司 用户设备的系统栏的控制方法和用户设备
CN103135903A (zh) * 2013-02-22 2013-06-05 北京小米科技有限责任公司 一种图库展示方法及装置

Also Published As

Publication number Publication date
CN103135903B (zh) 2016-04-27
CN103135903A (zh) 2013-06-05

Similar Documents

Publication Publication Date Title
WO2014127626A1 (zh) 一种图库展示方法及装置
KR101957951B1 (ko) 컴퓨팅 디바이스들 사이에서 정보를 이동시키기 위한 방법들 및 시스템들
CN105574388B (zh) 一种基于触摸屏终端的解锁方法、装置和触摸屏终端
WO2017128522A1 (zh) 一种触控操作处理的方法、装置以及终端
WO2014183546A1 (zh) 一种控制屏幕旋转的方法、装置和设备
EP2898502A1 (en) Systems and methods for transferring images and information from a mobile computing device to a computer monitor for display
CN105094679B (zh) 一种基于锁屏界面的对象浏览方法及终端设备
JP2017518553A (ja) 携帯型デバイス上のユーザ操作モードを識別する方法及び携帯型デバイス
CN105159581B (zh) 一种图片浏览方法及移动终端
CN112947754B (zh) 头戴设备交互模式的切换方法及系统
CN109460073B (zh) 一种音频设备定向显示方法、装置和音频设备
TW201624260A (zh) 資訊查看系統及方法
CN104902479A (zh) 一种网络安全管理设备、方法和移动终端
WO2018119732A1 (zh) 一种信息处理方法及装置
CN106547454A (zh) 显示方法及装置
CN105975550A (zh) 一种智能设备的题目搜索方法和装置
US20170192653A1 (en) Display area adjusting method and electronic device
US9665260B2 (en) Method and apparatus for controlling screen of mobile device
CN106648042B (zh) 一种识别控制方法以及装置
WO2015024198A1 (zh) 一种手持设备和在手持设备上实现输入区位置调整的方法
CN103279286A (zh) 调整图片显示比例的电子装置及方法
CN105739817A (zh) 一种图标隐藏的方法、装置及移动终端
US9456136B2 (en) Apparatus and method for generating image data in portable terminal
CN104020956A (zh) 一种实现移动终端单手握持拍照的方法及系统
CN108040144A (zh) 电子装置、图像绘制方法及相关产品

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

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

Country of ref document: EP

Kind code of ref document: A1