WO2015090242A1 - 一种定位图片列表中图片的方法和装置 - Google Patents

一种定位图片列表中图片的方法和装置 Download PDF

Info

Publication number
WO2015090242A1
WO2015090242A1 PCT/CN2015/072651 CN2015072651W WO2015090242A1 WO 2015090242 A1 WO2015090242 A1 WO 2015090242A1 CN 2015072651 W CN2015072651 W CN 2015072651W WO 2015090242 A1 WO2015090242 A1 WO 2015090242A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
screen
current
list
location
Prior art date
Application number
PCT/CN2015/072651
Other languages
English (en)
French (fr)
Inventor
潘述鑫
暴国辉
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2015090242A1 publication Critical patent/WO2015090242A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Definitions

  • the present invention relates to the field of computer software, and in particular, to a method and apparatus for locating pictures in a picture list.
  • photo wall is a list of photos arranged in chronological order and grouped by date.
  • a method for browsing pictures in a photo wall is: when a user needs to find a photo of a certain date, use a finger or other tool to gradually slide the photo wall list, and then, by comparing the dates in the time group, and finally Find the image of the target date.
  • Embodiments of the present invention provide a method and apparatus for locating pictures in a picture list, so as to quickly and easily locate a target picture that the user wants to find.
  • An embodiment of the present invention provides a method for locating a picture in a picture list, where the method includes:
  • the list of pictures is automatically swiped up until the picture of the target location is displayed at the current location.
  • Another embodiment of the present invention provides an apparatus for locating a picture in a picture list, where the apparatus includes:
  • a positioning module configured to acquire a user's selection of a time item in a time list in the sidebar, and locate the corresponding target position of the time item in the picture list;
  • a comparison module configured to compare a relationship between a current location and the target location, where the current location is a location of a picture currently at the top of the picture list;
  • a first shifting module configured to automatically slide the picture list downward if the target position is above the current position, until a picture of the target position is displayed at the current position;
  • a second shifting module configured to automatically slide the picture list upward if the target position is below the current position, until a picture of the target position is displayed at the current position.
  • the user can locate the corresponding target position in the picture list, and then, according to the current location and the target.
  • the positional relationship automatically slides the picture list to the appropriate location.
  • the method provided by the embodiment of the invention can locate the target picture without manual sliding of the user, which makes the picture positioning simple and easy, and provides great convenience for the user to find the picture.
  • FIG. 1 is a schematic diagram of positioning a picture by using a sidebar according to an embodiment of the present invention
  • FIG. 1 is a schematic flowchart of a method for locating a picture in a picture list according to an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of a logical structure of an apparatus for locating pictures in a picture list according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a logical structure of a device for locating a picture in a picture list according to another embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a logical structure of a device for locating a picture in a picture list according to another embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a logical structure of a device for locating a picture in a picture list according to another embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a logical structure of a device for locating a picture in a picture list according to another embodiment of the present invention.
  • FIG. 5-a is a schematic structural diagram of a device for locating a picture in a picture list according to another embodiment of the present invention.
  • FIG. 5-b is a schematic structural diagram of a device for locating a picture in a picture list according to another embodiment of the present invention.
  • 6-a is a schematic diagram of a logical structure of a device for locating a picture in a picture list according to another embodiment of the present invention.
  • FIG. 6-b is a schematic diagram showing the logical structure of a device for locating a picture in a picture list according to another embodiment of the present invention. intention.
  • An embodiment of the present invention provides a method for locating a picture in a picture list, where the method includes: acquiring, by a user, a time item in a time list in a sidebar, and positioning to a target position corresponding to the time item in the picture list. Comparing the relationship between the current location and the target location P, the current location being the location of the picture currently at the top of the picture list; if the target location P is above the current location, automatically sliding down the a picture list until the picture of the target position P is displayed at the current position; if the target position P is below the current position, the picture list is automatically slid upward until the picture of the target position P is displayed At the current location.
  • the embodiment of the invention further provides a corresponding device for locating a picture in the picture list. The details are described below separately.
  • the method for locating a picture in a picture list in the embodiment of the present invention may be applied to a terminal application, such as QQ, WeChat, etc., and the basic process may refer to FIG. 1 , which mainly includes steps S101 to S103 .
  • the picture list may be a photo wall.
  • the sidebar is an auxiliary search tool added to the right or left side of a picture list such as a photo wall. It has the following characteristics: By operating the controls of the sidebar, you can control the hiding of the sidebar. The display slides into the screen. By default, the sidebar is in a stowed state to ensure that the user's normal use of the image list is not affected. The sidebar can be opened by clicking on the control or by dragging the control section, and the effect is to slide it into the screen from the right or left side of the screen. When you slide in the screen, a list of time appears in the sidebar, corresponding to the timeline of the picture list.
  • the first picture of each time group is used as the icon for each list item in the time list, time as each List item title.
  • the user's selection of the time item in the time list in the sidebar may be the user's click or touch on the time item in the time list in the sidebar.
  • the time list displayed in the sidebar corresponds to the timeline of the picture list
  • the time item can be located in the picture list. Corresponding target position P.
  • the current location refers to the location of the picture currently at the top of the picture list.
  • the method provided by the embodiment of the present invention determines how to slide the picture list by comparing the relationship between the current location and the target location P.
  • the picture list is automatically slid down until the target position P
  • the picture is displayed at the current position, and includes the following steps Sa1031 to Sa1032.
  • Determining whether the picture of the target position P is within the previous screen of the current position may be: comparing the value of the parameter with the height of the screen, and if the value of the parameter is less than the height of the screen, determining the picture of the target position P Within the previous screen of the current location, otherwise, determining that the picture of the target location P is in the Outside the previous screen of the current location.
  • the value of the parameter is the product of the difference between the current position minus the target position P and the line height, wherein the line height is the height of a row of pictures in the picture list.
  • step Sa1032 indicates that the system may need to repeatedly perform an action of sliding the picture list down to a distance not exceeding the line height until the picture of the target position P is displayed at the top of the screen.
  • step Sa1031 if the relationship between the current position and the target position P is compared, and it is determined in step Sa1031 that the picture of the target position P is outside the previous screen of the current position, then The picture list is slid down until the picture of the target position P is displayed at a position below the current position, including the following steps Sb1031 to Sb1032.
  • step Sb1031 and step Sb1032 are not the user manually sliding the picture list downward, but the program determines the target bit.
  • the picture of P is the result of the program being automatically executed after the previous screen of the current position.
  • steps Sb1031 and Sb1032 indicates that the system may need to repeatedly perform the action of sliding down the picture list until the picture of the target position P is displayed on the previous screen of the current position. Inside and displayed at the top of the screen.
  • the picture list is automatically slid upward until the picture of the target position P Displaying at the current location includes the following steps Sc1031 to Step Sc1032.
  • Sc1031 determining whether the picture of the target position P is within the current screen.
  • Determining whether the picture of the target position P is within the current screen may be: comparing a position of the last line of the picture list in the current screen with the target position P, if the picture list is in the last line of the current screen If the location is greater than the target location P, it is determined that the picture is within the current screen, otherwise, it is determined that the picture is outside the current screen.
  • the line height here is the height of a row of images in the image list. It should be noted that, in the up-sliding picture list of the present invention, the user does not manually slide the picture list upward, but the program determines that the picture of the target position P is within the current screen, and the program automatically executes the result. . Further, "at least" in step Sc1032 indicates that the system may need to repeatedly perform an action of sliding up the list of pictures up to a line height not until the picture of the target position P is displayed at the top of the screen.
  • step Sc1031 if the relationship between the current location and the target location P is compared, and it is determined by step Sc1031 that the picture of the target location P is outside the current screen, then The picture list is slid up until the picture of the target position P is displayed at a position above the current position, including the following steps Sd1031 to Sd1032.
  • Sd1031 at least sliding the distance of the picture list by one screen until the picture of the target position P is displayed within the previous screen of the current position.
  • step Sd1031 and step Sd1032 are not the user manually sliding the picture list up, but the program determines that the picture of the target position P is outside the current screen. After the program automatically executes the result.
  • "at least" in step Sd1031 and step Sd1032 indicates that the system may need to repeatedly perform the action of sliding up the picture list until the picture of the target position P is displayed within the previous screen of the current position. And it is displayed at the top of the screen.
  • the method for locating a picture in a picture list provided by the foregoing embodiment of the present invention can be used to locate a time item corresponding to the time item in the picture list by selecting a time item in the time list in the sidebar. Then, according to the relationship between the current location and the target location P, the picture list is automatically swept to the appropriate location.
  • the method provided by the embodiment of the invention can locate the target picture without manual sliding of the user, which makes the picture positioning simple and easy, and provides great convenience for the user to find the picture.
  • FIG. 2 An apparatus for locating a picture in a picture list according to an embodiment of the present invention for performing the method for locating a picture in a picture list is described below.
  • the basic logical structure is referred to FIG. 2.
  • the apparatus for locating a picture in a picture list as exemplified in FIG. 2 may be a functional unit or module in the terminal.
  • Figure 2 shows the image of the image in the positioning picture list.
  • the device mainly includes a positioning module 201, a comparison module 202, a first shifting module 203 and a second shifting module 204, and each module is described in detail as follows:
  • the positioning module 201 is configured to acquire a selection of a time item in the time list in the sidebar by the user, and locate the target position P corresponding to the time item in the picture list.
  • the picture list may be a photo wall.
  • the sidebar is an auxiliary search tool added to the right or to the right of a picture list such as a photo wall. It has the following characteristics: By operating the controls of the sidebar, you can control the hiding of the sidebar. The display slides into the screen. By default, the sidebar is in a stowed state to ensure that the user's normal use of the image list is not affected. The sidebar can be opened by clicking on the control or dragging the control, and the effect is to slide it into the screen from the right or left side of the screen. When you slide in the screen, a list of time appears in the sidebar, corresponding to the timeline of the picture list.
  • the first picture of each time group is used as an icon for each list item in the time list, and time is used as the title of each list item.
  • the user's selection of the time item in the time list in the sidebar may be the user's click or touch on the time item in the time list in the sidebar.
  • the time list displayed in the sidebar corresponds to the timeline of the picture list
  • the time item can be located in the picture list. Corresponding target position P.
  • the comparison module 202 is configured to compare the relationship between the current location and the target location P, where the current location is the location of the picture currently at the top of the picture list.
  • the first shifting module 203 is configured to automatically slide the picture list downward if the target position P is above the current position until the picture of the target position P is displayed at the current position.
  • the second shifting module 204 is configured to automatically slide the picture list upward if the target position P is below the current position until the picture of the target position P is displayed at the current position.
  • each functional module is only an example, and the actual application may be implemented according to requirements, such as corresponding hardware configuration requirements or software implementation.
  • the above-mentioned function allocation is completed by different function modules, that is, the internal structure of the device for locating the pictures in the picture list is divided into different functional modules to complete all or part of the functions described above.
  • the corresponding functional modules in this embodiment may be implemented by corresponding hardware, or may be executed by corresponding hardware.
  • the foregoing positioning module may have the user function of performing the foregoing acquisition.
  • the selection of the time item in the time list in the sidebar, the hardware that locates the corresponding target position P of the time item in the picture list, such as a locator, may also be a general processor capable of executing a corresponding computer program to perform the aforementioned functions.
  • another hardware device; and the comparison module as described above may be hardware having a function of performing the foregoing comparison of the relationship between the current location and the target location P, such as a comparator, or a general capable of executing the corresponding computer program to perform the foregoing functions.
  • a processor or other hardware device (the various described embodiments of the present specification may apply the above described principles).
  • the first shifting module 203 illustrated in FIG. 2 may include a first determining unit 301 and a first downward sliding unit 302, and the apparatus for locating a picture in the picture list provided by another embodiment of the present invention as shown in FIG. 3-a ,among them:
  • the first determining unit 301 is configured to determine whether the picture of the target location P is within a previous screen of the current location
  • a first downward sliding unit 302 configured to: when the picture of the target position P is within a previous screen of the current position, sliding at least the distance of the picture list not exceeding a line height until the aims A picture of position P is displayed at the top of the screen, the line height being the height of a row of pictures in the picture list.
  • the first shifting module 203 of the example of FIG. 3-a may further include a second downward sliding unit 303 and a third downward sliding unit 304, as shown in FIG. 3-b, according to another embodiment of the present invention.
  • the device for the pictures in the list where:
  • a second downward sliding unit 303 configured to: if the picture of the target position P is outside the previous screen of the current position, at least slide the distance of the picture list by one screen until the target position A picture of P is displayed within the previous screen of the current location;
  • a third downward sliding unit 304 configured to: at least when the picture of the target position P is within a previous screen of the current position, at least the distance of the picture list does not exceed a line height until the target The picture of position P is displayed at the top of the screen.
  • the first determining unit 301 illustrated in FIG. 3-a or FIG. 3-b may further include a first comparing unit 401 and a first determining unit 402, as shown in FIG. 4-a or FIG. 4-b.
  • An apparatus for locating a picture in a picture list provided by an embodiment, wherein:
  • a first comparing unit 401 configured to compare a value of the parameter with a height of the screen, where the value of the parameter is a product of a difference between the current position minus the target position P and the line height;
  • a first determining unit 402 configured to determine that the picture of the target position P is within a previous screen of the current location, if the value of the parameter is less than a height of the screen, otherwise determine the target location The picture of P is outside the previous screen of the current location.
  • the second shifting module 204 exemplified in FIG. 2 may include a second judging unit 501 and a first upward sliding unit 502, as shown in FIG. 5-a, a device for locating a picture in a picture list according to another embodiment of the present invention, among them:
  • a second determining unit 501 configured to determine whether the picture of the target location P is on the current screen Inside;
  • a first upward sliding unit 502 configured to: when the picture of the target position P is within the current screen, slide at least the distance of the picture list not exceeding a line height until the picture of the target position P is displayed. At the top of the screen, the line height is the height of a row of pictures in the picture list.
  • the second shifting module 204 of the example of FIG. 5-a may further include a second upward sliding unit 503 and a third upward sliding unit 504, as shown in FIG. 5-b, in the positioning picture list provided by another embodiment of the present invention.
  • Picture device where:
  • a second upward sliding unit 503, configured to: if the picture of the target position P is outside the current screen, at least slide the distance of the picture list by one screen until the picture of the target position P is displayed in the Within the previous screen of the current location;
  • a third upward sliding unit 504 configured to slide at least the distance of the picture list not exceeding a line height when the picture of the target position P is within a previous screen of the current position, until the target position P The picture is displayed at the top of the screen.
  • the second judging unit 501 illustrated in FIG. 5-a or FIG. 5-b may further include a second comparing unit 601 and a second determining unit 602, as shown in FIG. 6-a or FIG. 6-b.
  • An apparatus for locating a picture in a picture list provided by an embodiment, wherein:
  • a second comparison unit 601 configured to compare a position of the last line of the picture list in the current screen with the target position P;
  • the second determining unit 602 is configured to determine that the picture is within the current screen if the position of the last line of the picture list in the current screen is greater than the target position P, otherwise, determine that the picture is on the current screen Outside.
  • a terminal which can be used to implement the foregoing provided in the foregoing embodiments.
  • a terminal may include components such as a memory of one or more computer readable storage media, a processor of one or more processing cores, and the like. It will be understood by those skilled in the art that the above server structure does not constitute a limitation to the terminal, and may include more or less components, or combine some components, or different component arrangements. among them:
  • the memory can be used to store software programs and modules, and the processor executes various functional applications and data processing by running software programs and modules stored in the memory.
  • the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to the terminal. Use the data created, etc.
  • the memory may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory can also include a memory controller to provide processor access to the memory.
  • the terminal further includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to execute the one or more programs included by the one or more processors Instructions for doing the following:
  • the image list is automatically slid up, A picture up to the target position P is displayed at the current position.
  • the memory of the terminal further includes an instruction for performing the following operations. :
  • the row height is the height of a row of pictures in the picture list.
  • the memory of the terminal further includes an instruction for performing the following operations. :
  • the value of the parameter is less than the height of the screen, determining that the picture of the target position P is Within the previous screen of the current location, otherwise, the picture of the target location P is determined to be outside the previous screen of the current location.
  • the memory of the terminal further includes the following instructions:
  • the picture of the target position P is within the current screen, at least the distance of the picture list does not exceed the line height until the picture of the target position P is displayed at the top of the screen, and the line height is The height of a row of pictures in the picture list.
  • the memory of the terminal further includes an instruction for performing the following operations. :
  • still another embodiment of the present invention provides a computer readable storage medium, which may be a computer readable storage medium included in the memory in the above embodiment; There is a computer readable storage medium that is not assembled into the terminal.
  • the computer readable storage medium stores one or more programs, the one or more programs being used by one or more processors to perform a method of locating a picture in a picture list, the method comprising:
  • the picture list is automatically slid upward until the picture of the target position P is displayed at the current position.
  • a second possible implementation manner provided by the first possible implementation manner, if the target location P is above the current location, Then automatically sliding down the picture list until the picture of the target position P is displayed under the current position, including:
  • the row height is the height of a row of pictures in the picture list.
  • a third possible implementation manner provided by the second possible implementation manner, if the picture of the target location P is at the current location In addition to the previous screen, the picture list is automatically slid down until the picture of the target position P is displayed below the current position, including:
  • the determining the target location P Whether the picture is included in the previous screen of the current location is a second or third possible implementation manner
  • the value of the parameter is less than the height of the screen, determining that the picture of the target position P is within a previous screen of the current position, otherwise determining that the picture of the target position P is at the current position Outside the previous screen.
  • a fifth possible implementation manner provided by the first possible implementation manner, if the target location P is below the current location, Then, the picture list is automatically slid up until the picture of the target position P is displayed at a position above the current position, including:
  • the slice list does not exceed the line height distance until the picture of the target position P is displayed at the top of the screen, and the line height is the height of a row of pictures in the picture list.
  • a sixth possible implementation manner if the picture of the target location P is on the current screen
  • the picture list is automatically slid up until the picture of the target position P is displayed at a position above the current position, including:
  • the determining the target location P Whether the picture is within the current screen including:
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Read only memory (ROM, Read Only Memory), with Machine access memory (RAM, Random Access Memory), disk or CD.
  • ROM Read only memory
  • RAM Machine access memory
  • CD Compact Disc

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Primary Health Care (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种定位图片列表中图片的方法和装置。所述方法包括:获取用户对侧边栏内时间列表中时间项的选择,定位至所述时间项在图片列表中对应的目标位置(S101);比较当前位置与所述目标位置的关系(S102);若所述目标位置在所述当前位置之上,则自动向下滑动所述图片列表,直至所述目标位置的图片显示在所述当前位置;若所述目标位置在所述当前位置之下,则自动向上滑动所述图片列表,直至所述目标位置的图片显示在所述当前位置(S103)。

Description

一种定位图片列表中图片的方法和装置
本申请要求于2013年12月19日提交中国专利局、申请号为201310705592.2、发明名称为“一种定位图片列表中图片的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及计算机软件领域,具体涉及一种定位图片列表中图片的方法和装置。
背景技术
在一些常见的社交软件中,图片的展示或浏览是一种比较重要的应用,展示或浏览图片的常用方法是使用照片墙。所谓照片墙,是一种按时间顺序排列,并按日期为照片分组的照片列表。
一种现有技术提供的浏览照片墙中图片的方法是:当用户需要查找某个日期的照片时,采用手指或者其它工具逐步滑动照片墙列表,然后,通过比较时间分组中的日期,最后才找到目标日期的图片。
发明内容
本发明实施例提供一种定位图片列表中图片的方法和装置,以快速简便地定位到用户想要查找的目标图片。
本发明实施例提供一种定位图片列表中图片的方法,所述方法包括:
获取用户对侧边栏内时间列表中时间项的选择,定位至所述时间项在图片列表中对应的目标位置;
比较当前位置与所述目标位置的关系,所述当前位置为当前处于图片列表顶端的图片所在的位置;
若所述目标位置在所述当前位置之上,则自动向下滑动所述图片列表,直至所述目标位置的图片显示在所述当前位置;
若所述目标位置在所述当前位置之下,则自动向上滑动所述图片列表,直至所述目标位置的图片显示在所述当前位置。
本发明另一实施例提供一种定位图片列表中图片的装置,所述装置包括:
定位模块,用于获取用户对侧边栏内时间列表中时间项的选择,定位至所述时间项在图片列表中对应的目标位置;
比较模块,用于比较当前位置与所述目标位置的关系,所述当前位置为当前处于图片列表顶端的图片所在的位置;
第一移位模块,用于若所述目标位置在所述当前位置之上,则自动向下滑动所述图片列表,直至所述目标位置的图片显示在所述当前位置;
第二移位模块,用于若所述目标位置在所述当前位置之下,则自动向上滑动所述图片列表,直至所述目标位置的图片显示在所述当前位置。
从上述本发明实施例可知,由于只需要用户对侧边栏内时间列表中时间项的选择即可定位至所述时间项在图片列表中对应的目标位置,然后,根据当前位置与所述目标位置的关系,自动滑动图片列表到适合位置。本发明实施例提供的方法无需用户手动滑动即可定位到目标图片,使得图片定位变得简单易行,为用户查找图片提供了很大的方便。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1-a是本发明实施例提供的利用侧边栏定位图片的示意图;
图1-b是本发明实施例提供的定位图片列表中图片的方法的基本流程示意图;
图2是本发明实施例提供的定位图片列表中图片的装置逻辑结构示意图;
图3-a是本发明另一实施例提供的定位图片列表中图片的装置逻辑结构示意图;
图3-b是本发明另一实施例提供的定位图片列表中图片的装置逻辑结构示意图;
图4-a是本发明另一实施例提供的定位图片列表中图片的装置逻辑结构示意图;
图4-b是本发明另一实施例提供的定位图片列表中图片的装置逻辑结构示意图;
图5-a是本发明另一实施例提供的定位图片列表中图片的装置逻辑结构示意图;
图5-b是本发明另一实施例提供的定位图片列表中图片的装置逻辑结构示意图;
图6-a是本发明另一实施例提供的定位图片列表中图片的装置逻辑结构示意图;
图6-b是本发明另一实施例提供的定位图片列表中图片的装置逻辑结构示 意图。
具体实施方式
本发明实施例提供一种定位图片列表中图片的方法,所述方法包括:获取用户对侧边栏内时间列表中时间项的选择,定位至所述时间项在图片列表中对应的目标位置P;比较当前位置与所述目标位置P的关系,所述当前位置为当前处于图片列表顶端的图片所在的位置;若所述目标位置P在所述当前位置之上,则自动向下滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置;若所述目标位置P在所述当前位置之下,则自动向上滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置。本发明实施例还提供相应的定位图片列表中图片的装置。以下分别进行详细说明。
本发明实施例的定位图片列表中图片的方法可应用于终端应用程序,例如QQ、微信等,其基本流程可参考图1,主要包括步骤S101至步骤S103。
S101,获取用户对侧边栏内时间列表中时间项的选择,定位至所述时间项在图片列表中对应的目标位置P。
在本发明实施例中,图片列表可以是照片墙。所谓侧边栏,是在照片墙等之类的图片列表右侧或者左侧增加的一个辅助查找工具,其具有如下特性:通过对侧边栏的控件的操作,可以控制侧边栏的隐藏和显示即滑入屏幕。默认状态下,侧边栏为收起状态,以保证不影响用户对图片列表的正常使用。通过点击控件或拖拽控件部分,可将侧边栏打开,效果为从屏幕右侧或者左侧滑入屏幕中。滑入屏幕后,侧边栏内显示一个时间列表,与图片列表的时间轴相对应。每个时间分组的第一张图片作为时间列表中每个列表项的图标,时间作为每个 列表项标题。一旦用户对侧边栏内时间列表中的某个时间项进行了选择,图片列表则快速并平滑地滑动到此时间项所对应的图片位置,显示到屏幕顶端,与此同时,侧边栏收起并滑出屏幕。
用户对侧边栏内时间列表中时间项的选择可以是用户对侧边栏内时间列表中时间项的点击或触摸。如前所述,由于侧边栏内显示的时间列表与图片列表的时间轴相对应,因此,若用户对侧边栏内时间列表中时间项进行选择,则可定位至时间项在图片列表中对应的目标位置P。
S102,比较当前位置与所述目标位置P的关系。
在本发明实施例中,所谓当前位置,是指当前处于图片列表顶端的图片所在的位置。本发明实施例提供的方法就是通过比较当前位置与所述目标位置P的关系来确定怎样滑动图片列表。
S103,若所述目标位置P在所述当前位置之上,则自动向下滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置,若所述目标位置P在所述当前位置之下,则自动向上滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置。
作为本发明一个实施例,若经过比较当前位置与所述目标位置P的关系,确定目标位置P在所述当前位置之上,则自动向下滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置,包括如下步骤Sa1031至步骤Sa1032。
Sa1031,判断目标位置P的图片是否在当前位置的前一屏之内。
判断目标位置P的图片是否在当前位置的前一屏之内可以是:比较参数的值与屏幕的高度,若所述参数的值小于所述屏幕的高度,则确定所述目标位置P的图片在所述当前位置的前一屏之内,否则,确定所述目标位置P的图片在所 述当前位置的前一屏之外。此处,所述参数的值为所述当前位置减去所述目标位置P后所得差值与所述行高的乘积,其中,行高为图片列表中一排图片的高度。
Sa1032,若所述目标位置P的图片在所述当前位置的前一屏之内,则至少向下滑动图片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部。
需要说明的是,本发明所述的向下滑动图片列表,并非用户通过手动向下滑动图片列表,而是程序判断所述目标位置P的图片在所述当前位置的前一屏之内后,程序自动执行的结果。此外,步骤Sa1032中的“至少”表明,系统可能需要重复执行向下滑动图片列表不超过行高的距离这一动作,直至所述目标位置P的图片显示在屏幕顶部。
作为本发明另一实施例,若经过比较当前位置与所述目标位置P的关系,并通过步骤Sa1031判断所述目标位置P的图片是在所述当前位置的前一屏之外,则自动向下滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置之下的位置,包括如下步骤Sb1031至步骤Sb1032。
Sb1031,至少向下滑动所述图片列表一屏的距离,直至所述目标位置P的图片显示在所述当前位置的前一屏之内;
Sb1032,在所述目标位置P的图片在所述当前位置的前一屏之内时,至少向下滑动所述图片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部。
与上述步骤Sa1032的说明类似,步骤Sb1031和步骤Sb1032中所述的向下滑动图片列表,并非用户通过手动向下滑动图片列表,而是程序判断所述目标位 置P的图片是在所述当前位置的前一屏之外后,程序自动执行的结果。同样地,步骤步骤Sb1031和Sb1032中的“至少”表明,系统可能需要重复执行向下滑动所述图片列表这一动作,直至所述目标位置P的图片显示在所述当前位置的前一屏之内以及显示在屏幕顶部。
作为本发明一个实施例,若经过比较当前位置与所述目标位置P的关系,确定目标位置P在所述当前位置之下,则自动向上滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置包括如下步骤Sc1031至步骤Sc1032。
Sc1031,判断所述目标位置P的图片是否在所述当前屏幕之内。
判断所述目标位置P的图片是否在所述当前屏幕之内可以是:比较所述图片列表在当前屏幕中最后一行的位置和所述目标位置P,若所述图片列表在当前屏幕中最后一行的位置大于所述目标位置P,则确定图片是在所述当前屏幕之内,否则,确定图片是在所述当前屏幕之外。
Sc1032,若所述目标位置P的图片是在所述当前屏幕之内,则至少向上滑动所述图片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部。
此处的行高为图片列表中一排图片的高度。需要说明的是,本发明所述的向上滑动图片列表,并非用户通过手动向上滑动图片列表,而是程序判断所述目标位置P的图片是在所述当前屏幕之内后,程序自动执行的结果。此外,步骤Sc1032中的“至少”表明,系统可能需要重复执行向上滑动图片列表不超过行高的距离这一动作,直至所述目标位置P的图片显示在屏幕顶部。
作为本发明另一实施例,若经过比较当前位置与所述目标位置P的关系,并通过步骤Sc1031判断所述目标位置P的图片是在所述当前屏幕之外,则自动 向上滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置之上的位置,包括如下步骤Sd1031至步骤Sd1032。
Sd1031,至少向上滑动所述图片列表一屏的距离,直至所述目标位置P的图片显示在所述当前位置的前一屏之内。
Sd1032,在所述目标位置P的图片在所述当前位置的前一屏之内时,至少向上滑动所述图片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部。
与上述步骤Sc1032的说明类似,步骤Sd1031和步骤Sd1032中所述的向上滑动图片列表,并非用户通过手动向上滑动图片列表,而是程序判断所述目标位置P的图片是在所述当前屏幕之外后,程序自动执行的结果。同样地,步骤Sd1031和步骤Sd1032中的“至少”表明,系统可能需要重复执行向上滑动所述图片列表这一动作,直至所述目标位置P的图片显示在所述当前位置的前一屏之内以及显示在屏幕顶部。
从上述本发明实施例提供的定位图片列表中图片的方法可知,由于只需要用户对侧边栏内时间列表中时间项的选择即可定位至所述时间项在图片列表中对应的目标位置P,然后,根据当前位置与所述目标位置P的关系,自动滑动图片列表到适合位置。本发明实施例提供的方法无需用户手动滑动即可定位到目标图片,使得图片定位变得简单易行,为用户查找图片提供了很大的方便。
下面对用于执行上述定位图片列表中图片的方法的本发明实施例的定位图片列表中图片的装置进行说明,其基本逻辑结构参考图2。为了便于说明,仅仅示出了与本发明实施例相关的部分。附图2示例的定位图片列表中图片的装置可以是终端中的功能单元或模块。附图2示例的定位图片列表中图片的装 置主要包括定位模块201、比较模块202、第一移位模块203和第二移位模块204,各模块详细说明如下:
定位模块201,用于获取用户对侧边栏内时间列表中时间项的选择,定位至所述时间项在图片列表中对应的目标位置P。
在附图2示例的定位图片列表中图片的装置中,图片列表可以是照片墙。所谓侧边栏,是在照片墙等之类的图片列表右侧或者右侧增加的一个辅助查找工具,其具有如下特性:通过对侧边栏的控件的操作,可以控制侧边栏的隐藏和显示即滑入屏幕。默认状态下,侧边栏为收起状态,以保证不影响用户对图片列表的正常使用。通过点击控件或拖拽控件,可将侧边栏打开,效果为从屏幕右侧或者左侧滑入屏幕中。滑入屏幕后,侧边栏内显示一个时间列表,与图片列表的时间轴相对应。每个时间分组的第一张图片作为时间列表中每个列表项的图标,时间作为每个列表项标题。一旦用户对侧边栏内时间列表中的某个时间项进行了选择,图片列表则快速并平滑地滑动到此时间项所对应的图片位置,显示到屏幕顶端,与此同时,侧边栏收起并滑出屏幕。
用户对侧边栏内时间列表中时间项的选择可以是用户对侧边栏内时间列表中时间项的点击或触摸。如前所述,由于侧边栏内显示的时间列表与图片列表的时间轴相对应,因此,若用户对侧边栏内时间列表中时间项进行选择,则可定位至时间项在图片列表中对应的目标位置P。
比较模块202,用于比较当前位置与所述目标位置P的关系,所述当前位置为当前处于图片列表顶端的图片所在的位置。
第一移位模块203,用于若所述目标位置P在所述当前位置之上,则自动向下滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置。
第二移位模块204,用于若所述目标位置P在所述当前位置之下,则自动向上滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置。
需要说明的是,以上附图2示例的定位图片列表中图片的装置的实施方式中,各功能模块的划分仅是举例说明,实际应用中可以根据需要,例如相应硬件的配置要求或者软件的实现的便利考虑,而将上述功能分配由不同的功能模块完成,即将所述定位图片列表中图片的装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。而且,实际应用中,本实施例中的相应的功能模块可以是由相应的硬件实现,也可以由相应的硬件执行相应的软件完成,例如,前述的定位模块,可以是具有执行前述获取用户对侧边栏内时间列表中时间项的选择,定位至所述时间项在图片列表中对应的目标位置P的硬件,例如定位器,也可以是能够执行相应计算机程序从而完成前述功能的一般处理器或者其他硬件设备;再如前述的比较模块,可以是具有执行前述比较当前位置与所述目标位置P的关系功能的硬件,例如比较器,也可以是能够执行相应计算机程序从而完成前述功能的一般处理器或者其他硬件设备(本说明书提供的各个实施例都可应用上述描述原则)。
附图2示例的第一移位模块203可以包括第一判断单元301和第一向下滑动单元302,如附图3-a所示本发明另一实施例提供的定位图片列表中图片的装置,其中:
第一判断单元301,用于判断所述目标位置P的图片是否在所述当前位置的前一屏之内;
第一向下滑动单元302,用于若所述目标位置P的图片是在所述当前位置的前一屏之内,则至少向下滑动所述图片列表不超过行高的距离,直至所述目标 位置P的图片显示在屏幕顶部,所述行高为所述图片列表中一排图片的高度。
附图3-a示例的第一移位模块203还可以包括第二向下滑动单元303和第三向下滑动单元304,如附图3-b所示本发明另一实施例提供的定位图片列表中图片的装置,其中:
第二向下滑动单元303,用于若所述目标位置P的图片是在所述当前位置的前一屏之外,则至少向下滑动所述图片列表一屏的距离,直至所述目标位置P的图片显示在所述当前位置的前一屏之内;
第三向下滑动单元304,用于在所述目标位置P的图片在所述当前位置的前一屏之内时,至少向下滑动所述图片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部。
附图3-a或附图3-b示例的第一判断单元301还可以包括第一比较单元401和第一确定单元402,如附图4-a或附图4-b所示本发明另一实施例提供的定位图片列表中图片的装置,其中:
第一比较单元401,用于比较参数的值与屏幕的高度,所述参数的值为所述当前位置减去所述目标位置P后所得差值与所述行高的乘积;
第一确定单元402,用于若所述参数的值小于所述屏幕的高度,则确定所述目标位置P的图片是在所述当前位置的前一屏之内,否则,确定所述目标位置P的图片在所述当前位置的前一屏之外。
附图2示例的第二移位模块204可以包括第二判断单元501和第一向上滑动单元502,如附图5-a所示本发明另一实施例提供的定位图片列表中图片的装置,其中:
第二判断单元501,用于判断所述目标位置P的图片是否在所述当前屏幕之 内;
第一向上滑动单元502,用于若所述目标位置P的图片是在所述当前屏幕之内,则至少向上滑动所述图片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部,所述行高为所述图片列表中一排图片的高度。
附图5-a示例的第二移位模块204还可以包括第二向上滑动单元503和第三向上滑动单元504,如附图5-b所示本发明另一实施例提供的定位图片列表中图片的装置,其中:
第二向上滑动单元503,用于若所述目标位置P的图片是在所述当前屏幕之外,则至少向上滑动所述图片列表一屏的距离,直至所述目标位置P的图片显示在所述当前位置的前一屏之内;
第三向上滑动单元504,用于在所述目标位置P的图片在所述当前位置的前一屏之内时,至少向上滑动所述图片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部。
附图5-a或附图5-b示例的第二判断单元501还可以包括第二比较单元601和第二确定单元602,如附图6-a或附图6-b所示本发明另一实施例提供的定位图片列表中图片的装置,其中:
第二比较单元601,用于比较所述图片列表在当前屏幕中最后一行的位置和所述目标位置P;
第二确定单元602,用于若所述图片列表在当前屏幕中最后一行的位置大于所述目标位置P,则确定图片是在所述当前屏幕之内,否则,确定图片是在所述当前屏幕之外。
本发明实施例还给出一种终端,该终端可以用于实施上述实施例中提供的 定位图片列表中图片的方法。具体来讲:终端可以包括有一个或一个以上计算机可读存储介质的存储器、一个或者一个以上处理核心的处理器等部件。本领域技术人员可以理解,上述服务器结构并不构成对终端的限定,可以包括更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
存储器可用于存储软件程序以及模块,处理器通过运行存储在存储器的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端的使用所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器还可以包括存储器控制器,以提供处理器对存储器的访问。
尽管未示出,终端还还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行述一个或者一个以上程序包含用于进行以下操作的指令:
获取用户对侧边栏内时间列表中时间项的选择,定位至所述时间项在图片列表中对应的目标位置P;
比较当前位置与所述目标位置P的关系,所述当前位置为当前处于图片列表顶端的图片所在的位置;
若所述目标位置P在所述当前位置之上,则自动向下滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置;
若所述目标位置P在所述当前位置之下,则自动向上滑动所述图片列表, 直至所述目标位置P的图片显示在所述当前位置。
假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,所述终端的存储器中,还包含用于执行以下操作的指令:
判断所述目标位置P的图片是否在所述当前位置的前一屏之内;
若所述目标位置P的图片是在所述当前位置的前一屏之内,则至少向下滑动所述图片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部,所述行高为所述图片列表中一排图片的高度。
假设上述为第二种可能的实施方式,则在第二种可能的实施方式作为基础而提供的第三种可能的实施方式中,所述终端的存储器中,还包含用于执行以下操作的指令:
若所述目标位置P的图片是在所述当前位置的前一屏之外,则至少向下滑动所述图片列表一屏的距离,直至所述目标位置P的图片显示在所述当前位置的前一屏之内;
在所述目标位置P的图片在所述当前位置的前一屏之内时,至少向下滑动所述图片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部。
假设上述为第二种或第三种可能的实施方式,则在第二种或第三种可能的实施方式作为基础而提供的第四种可能的实施方式中,所述终端的存储器中,还包含以下指令:
比较参数的值与屏幕的高度,所述参数的值为所述当前位置减去所述目标位置P后所得差值与所述行高的乘积;
若所述参数的值小于所述屏幕的高度,则确定所述目标位置P的图片是在 所述当前位置的前一屏之内,否则,确定所述目标位置P的图片在所述当前位置的前一屏之外。
假设上述为第四种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第五种可能的实施方式中,所述终端的存储器中,还包含以下指令:
判断所述目标位置P的图片是否在所述当前屏幕之内;
若所述目标位置P的图片是在所述当前屏幕之内,则至少向上滑动所述图片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部,所述行高为所述图片列表中一排图片的高度。
假设上述为第五种可能的实施方式,则在第五种可能的实施方式作为基础而提供的第六种可能的实施方式中,所述终端的存储器中,还包含用于执行以下操作的指令:
若所述目标位置P的图片是在所述当前屏幕之外,则至少向上滑动所述图片列表一屏的距离,直至所述目标位置P的图片显示在所述当前位置的前一屏之内;
在所述目标位置P的图片在所述当前位置的前一屏之内时,至少向上滑动所述图片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部。
假设上述为第五种或第六种可能的实施方式,则在第五种或第六种可能的实施方式作为基础而提供的第七种可能的实施方式中,所述终端的存储器中,还包含以下指令:
比较所述图片列表在当前屏幕中最后一行的位置和所述目标位置P;
若所述图片列表在当前屏幕中最后一行的位置大于所述目标位置P,则确定图片是在所述当前屏幕之内,否则,确定图片是在所述当前屏幕之外。
作为另一方面,本发明再一实施例还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中的存储器中所包含的计算机可读存储介质;也可以是单独存在,未装配入终端中的计算机可读存储介质。所述计算机可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序被一个或者一个以上的处理器用来执行一个定位图片列表中图片的方法,所述方法包括:
获取用户对侧边栏内时间列表中时间项的选择,定位至所述时间项在图片列表中对应的目标位置P;
比较当前位置与所述目标位置P的关系,所述当前位置为当前处于图片列表顶端的图片所在的位置;
若所述目标位置P在所述当前位置之上,则自动向下滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置;
若所述目标位置P在所述当前位置之下,则自动向上滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置。
假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,所述若所述目标位置P在所述当前位置之上,则自动向下滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置之下的位置,包括:
判断所述目标位置P的图片是否在所述当前位置的前一屏之内;
若所述目标位置P的图片是在所述当前位置的前一屏之内,则至少向下滑动所述图片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部,所述行高为所述图片列表中一排图片的高度。
假设上述为第二种可能的实施方式,则在第二种可能的实施方式作为基础而提供的第三种可能的实施方式中,所述若所述目标位置P的图片是在所述当前位置的前一屏之外,则自动向下滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置之下的位置,包括:
至少向下滑动所述图片列表一屏的距离,直至所述目标位置P的图片显示在所述当前位置的前一屏之内;
在所述目标位置P的图片在所述当前位置的前一屏之内时,至少向下滑动所述图片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部。
假设上述为第二种或第三种可能的实施方式,则在第二种或第三种可能的实施方式作为基础而提供的第四种可能的实施方式中,所述判断所述目标位置P的图片是否在所述当前位置的前一屏之内包括:
比较参数的值与屏幕的高度,所述参数的值为所述当前位置减去所述目标位置P后所得差值与所述行高的乘积;
若所述参数的值小于所述屏幕的高度,则确定所述目标位置P的图片是在所述当前位置的前一屏之内,否则,确定所述目标位置P的图片在所述当前位置的前一屏之外。
假设上述为第四种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第五种可能的实施方式中,所述若所述目标位置P在所述当前位置之下,则自动向上滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置之上的位置,包括:
判断所述目标位置P的图片是否在所述当前屏幕之内;
若所述目标位置P的图片是在所述当前屏幕之内,则至少向上滑动所述图 片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部,所述行高为所述图片列表中一排图片的高度。
假设上述为第五种可能的实施方式,则在第五种可能的实施方式作为基础而提供的第六种可能的实施方式中,所述若所述目标位置P的图片是在所述当前屏幕之外,则自动向上滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置之上的位置,包括:
至少向上滑动所述图片列表一屏的距离,直至所述目标位置P的图片显示在所述当前位置的前一屏之内;
在所述目标位置P的图片在所述当前位置的前一屏之内时,至少向上滑动所述图片列表不超过行高的距离,直至所述目标位置P的图片显示在屏幕顶部。
假设上述为第五种或第六种可能的实施方式,则在第五种或第六种可能的实施方式作为基础而提供的第七种可能的实施方式中,所述判断所述目标位置P的图片是否在所述当前屏幕之内,包括:
比较所述图片列表在当前屏幕中最后一行的位置和所述目标位置P;
若所述图片列表在当前屏幕中最后一行的位置大于所述目标位置P,则确定图片是在所述当前屏幕之内,否则,确定图片是在所述当前屏幕之外。
需要说明的是,上述装置各模块/单元之间的信息交互、执行过程等内容,由于与本发明方法实施例基于同一构思,其带来的技术效果与本发明方法实施例相同,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随 机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。
以上对本发明实施例所提供的一种定位图片列表中图片的方法和装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (16)

  1. 一种定位图片列表中图片的方法,其特征在于,所述方法包括:
    获取用户对侧边栏内时间列表中时间项的选择,定位至所述时间项在图片列表中对应的目标位置;
    比较当前位置与所述目标位置的关系,所述当前位置为当前处于图片列表顶端的图片所在的位置;
    若所述目标位置在所述当前位置之上,则自动向下滑动所述图片列表,直至所述目标位置的图片显示在所述当前位置;
    若所述目标位置在所述当前位置之下,则自动向上滑动所述图片列表,直至所述目标位置的图片显示在所述当前位置。
  2. 根据权利要求1所述的方法,其特征在于,所述若所述目标位置在所述当前位置之上,则自动向下滑动所述图片列表,直至所述目标位置的图片显示在所述当前位置,包括:
    判断所述目标位置的图片是否在所述当前位置的前一屏之内;
    若所述目标位置的图片是在所述当前位置的前一屏之内,则至少向下滑动所述图片列表不超过行高的距离,直至所述目标位置的图片显示在屏幕顶部,所述行高为所述图片列表中一排图片的高度。
  3. 根据权利要求2所述的方法,其特征在于,若所述目标位置的图片是在所述当前位置的前一屏之外,则自动向下滑动所述图片列表,直至所述目标位置的图片显示在所述当前位置,包括:
    至少向下滑动所述图片列表一屏的距离,直至所述目标位置的图片显示在 所述当前位置的前一屏之内;
    在所述目标位置的图片在所述当前位置的前一屏之内时,至少向下滑动所述图片列表不超过行高的距离,直至所述目标位置的图片显示在屏幕顶部。
  4. 根据权利要求2或3所述的方法,其特征在于,所述判断所述目标位置的图片是否在所述当前位置的前一屏之内包括:
    比较参数的值与屏幕的高度,所述参数的值为所述当前位置减去所述目标位置后所得差值与所述行高的乘积;
    若所述参数的值小于所述屏幕的高度,则确定所述目标位置的图片是在所述当前位置的前一屏之内,否则,确定所述目标位置的图片在所述当前位置的前一屏之外。
  5. 根据权利要求1所述的方法,其特征在于,所述若所述目标位置在所述当前位置之下,则自动向上滑动所述图片列表,直至所述目标位置的图片显示在所述当前位置,包括:
    判断所述目标位置的图片是否在所述当前屏幕之内;
    若所述目标位置的图片是在所述当前屏幕之内,则至少向上滑动所述图片列表不超过行高的距离,直至所述目标位置的图片显示在屏幕顶部,所述行高为所述图片列表中一排图片的高度。
  6. 根据权利要求5所述的方法,其特征在于,若所述目标位置的图片是在所述当前屏幕之外,则自动向上滑动所述图片列表,直至所述目标位置的图片显示在所述当前位置,包括:
    至少向上滑动所述图片列表一屏的距离,直至所述目标位置的图片显示在所述当前位置的前一屏之内;
    在所述目标位置的图片在所述当前位置的前一屏之内时,至少向上滑动所述图片列表不超过行高的距离,直至所述目标位置的图片显示在屏幕顶部。
  7. 根据权利要求5或6所述的方法,其特征在于,所述判断所述目标位置的图片是否在所述当前屏幕之内,包括:
    比较所述图片列表在当前屏幕中最后一行的位置和所述目标位置;
    若所述图片列表在当前屏幕中最后一行的位置大于所述目标位置,则确定图片是在所述当前屏幕之内,否则,确定图片是在所述当前屏幕之外。
  8. 根据权利要求1所述的方法,其特征在于,所述侧边栏位于所述图片列表右侧,通过对所述侧边栏的把柄的操作以隐藏所述侧边栏或使所述侧边栏滑入屏幕,所述侧边栏滑入所述屏幕后,在所述侧边栏内显示与所述图片列表的时间轴相对应的所述时间列表。
  9. 一种定位图片列表中图片的装置,其特征在于,所述装置包括:
    定位模块,用于获取用户对侧边栏内时间列表中时间项的选择,定位至所述时间项在图片列表中对应的目标位置;
    比较模块,用于比较当前位置与所述目标位置的关系,所述当前位置为当前处于图片列表顶端的图片所在的位置;
    第一移位模块,用于若所述目标位置在所述当前位置之上,则自动向下滑动所述图片列表,直至所述目标位置P的图片显示在所述当前位置;
    第二移位模块,用于若所述目标位置在所述当前位置之下,则自动向上滑动所述图片列表,直至所述目标位置的图片显示在所述当前位置。
  10. 根据权利要求9所述的装置,其特征在于,所述第一移位模块包括:
    第一判断单元,用于判断所述目标位置的图片是否在所述当前位置的前一 屏之内;
    第一向下滑动单元,用于若所述目标位置的图片是在所述当前位置的前一屏之内,则至少向下滑动所述图片列表不超过行高的距离,直至所述目标位置的图片显示在屏幕顶部,所述行高为所述图片列表中一排图片的高度。
  11. 根据权利要求10所述的装置,其特征在于,所述第一移位模块还包括:
    第二向下滑动单元,用于若所述目标位置的图片是在所述当前位置的前一屏之外,则至少向下滑动所述图片列表一屏的距离,直至所述目标位置的图片显示在所述当前位置的前一屏之内;
    第三向下滑动单元,用于在所述目标位置的图片在所述当前位置的前一屏之内时,至少向下滑动所述图片列表不超过行高的距离,直至所述目标位置的图片显示在屏幕顶部。
  12. 根据权利要求10或11所述的装置,其特征在于,所述第一判断单元包括:
    第一比较单元,用于比较参数的值与屏幕的高度,所述参数的值为所述当前位置减去所述目标位置后所得差值与所述行高的乘积;
    第一确定单元,用于若所述参数的值小于所述屏幕的高度,则确定所述目标位置的图片是在所述当前位置的前一屏之内,否则,确定所述目标位置的图片在所述当前位置的前一屏之外。
  13. 根据权利要求9所述的装置,其特征在于,所述第二移位模块包括:
    第二判断单元,用于判断所述目标位置的图片是否在所述当前屏幕之内;
    第一向上滑动单元,用于若所述目标位置的图片是在所述当前屏幕之内,则至少向上滑动所述图片列表不超过行高的距离,直至所述目标位置的图片显 示在屏幕顶部,所述行高为所述图片列表中一排图片的高度。
  14. 根据权利要求13所述的装置,其特征在于,所述第二移位模块还包括:
    第二向上滑动单元,用于若所述目标位置的图片是在所述当前屏幕之外,则至少向上滑动所述图片列表一屏的距离,直至所述目标位置的图片显示在所述当前位置的前一屏之内;
    第三向上滑动单元,用于在所述目标位置的图片在所述当前位置的前一屏之内时,至少向上滑动所述图片列表不超过行高的距离,直至所述目标位置的图片显示在屏幕顶部。
  15. 根据权利要求13或14所述的装置,其特征在于,所述第二判断单元包括:
    第二比较单元,用于比较所述图片列表在当前屏幕中最后一行的位置和所述目标位置;
    第二确定单元,用于若所述图片列表在当前屏幕中最后一行的位置大于所述目标位置,则确定图片是在所述当前屏幕之内,否则,确定图片是在所述当前屏幕之外。
  16. 根据权利要求9所述的装置,其特征在于,所述侧边栏位于所述图片列表右侧,通过对所述侧边栏的把柄的操作以隐藏所述侧边栏或使所述侧边栏滑入屏幕,所述侧边栏滑入所述屏幕后,在所述侧边栏内显示与所述图片列表的时间轴相对应的所述时间列表。
PCT/CN2015/072651 2013-12-19 2015-02-10 一种定位图片列表中图片的方法和装置 WO2015090242A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310705592.2A CN104731463B (zh) 2013-12-19 2013-12-19 一种定位图片列表中图片的方法和装置
CN201310705592.2 2013-12-19

Publications (1)

Publication Number Publication Date
WO2015090242A1 true WO2015090242A1 (zh) 2015-06-25

Family

ID=53402132

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/072651 WO2015090242A1 (zh) 2013-12-19 2015-02-10 一种定位图片列表中图片的方法和装置

Country Status (3)

Country Link
CN (1) CN104731463B (zh)
TW (1) TWI554937B (zh)
WO (1) WO2015090242A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108062193A (zh) * 2017-11-27 2018-05-22 杭州布魔方空间科技股份有限公司 图片的十字交叉滑动操作方法、装置及系统

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528158B (zh) * 2015-12-25 2018-12-07 北京嘉和美康信息技术有限公司 图片显示方法及图片显示装置
CN107037952B (zh) * 2016-02-03 2020-01-24 腾讯科技(深圳)有限公司 资源的显示控制方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1804839A (zh) * 2005-01-12 2006-07-19 微软公司 用于数据的基于时间线的可视化的体系结构和引擎
CN101388041A (zh) * 2008-10-21 2009-03-18 深圳市同洲电子股份有限公司 一种手持终端的浏览器页面导航方法及系统
CN103248739A (zh) * 2012-02-14 2013-08-14 联想(北京)有限公司 一种联系人列表导航显示方法、装置以及移动通信设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4136032B2 (ja) * 1997-08-14 2008-08-20 シャープ株式会社 画像検索装置および画像検索装置が読み取り可能な記録媒体
TWI425410B (zh) * 2010-07-26 2014-02-01 Pegatron Corp 電子裝置以及應用於此電子裝置之事件顯示方法
JP2012079174A (ja) * 2010-10-04 2012-04-19 Sony Corp 情報処理装置、情報処理方法及びプログラム
US8914743B2 (en) * 2010-11-12 2014-12-16 Apple Inc. Device, method, and graphical user interface for navigating a list of identifiers
CN102646120A (zh) * 2012-02-20 2012-08-22 百度在线网络技术(北京)有限公司 一种用于移动终端的文件查看方法与装置
CN102999270B (zh) * 2012-11-27 2015-10-21 广东欧珀移动通信有限公司 列表显示方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1804839A (zh) * 2005-01-12 2006-07-19 微软公司 用于数据的基于时间线的可视化的体系结构和引擎
CN101388041A (zh) * 2008-10-21 2009-03-18 深圳市同洲电子股份有限公司 一种手持终端的浏览器页面导航方法及系统
CN103248739A (zh) * 2012-02-14 2013-08-14 联想(北京)有限公司 一种联系人列表导航显示方法、装置以及移动通信设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108062193A (zh) * 2017-11-27 2018-05-22 杭州布魔方空间科技股份有限公司 图片的十字交叉滑动操作方法、装置及系统

Also Published As

Publication number Publication date
TWI554937B (zh) 2016-10-21
CN104731463B (zh) 2019-04-12
CN104731463A (zh) 2015-06-24
TW201525845A (zh) 2015-07-01

Similar Documents

Publication Publication Date Title
RU2602384C2 (ru) Мультипрограммная среда
JP6215433B2 (ja) タイルの配列
US9942486B2 (en) Identifying dominant and non-dominant images in a burst mode capture
RU2598333C2 (ru) Группирование выбираемых плиток
US9104440B2 (en) Multi-application environment
US9699351B2 (en) Displaying image thumbnails in re-used screen real estate
US10282219B2 (en) Consolidated orthogonal guide creation
US20110302529A1 (en) Display control apparatus, display control method, display control program, and recording medium storing the display control program
JP2011530769A5 (zh)
JP5932831B2 (ja) 没入型環境の管理
US20220155948A1 (en) Offset touch screen editing
WO2015090242A1 (zh) 一种定位图片列表中图片的方法和装置
US20140173442A1 (en) Presenter view in presentation application
WO2019184317A1 (zh) 设置背景图片的方法、装置、设备及存储介质
WO2012166683A2 (en) Insertion of picture content for use in a layout
WO2017012598A1 (zh) 一种密码设置方法及装置
US10310700B2 (en) Apparatus and method for managing of content using electronic device
US20130326342A1 (en) Object scalability and morphing and two way communication method
CN112905076A (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: 15729726

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 15729726

Country of ref document: EP

Kind code of ref document: A1