CN116700854B - List processing method, device and storage medium - Google Patents
List processing method, device and storage medium Download PDFInfo
- Publication number
- CN116700854B CN116700854B CN202211336853.3A CN202211336853A CN116700854B CN 116700854 B CN116700854 B CN 116700854B CN 202211336853 A CN202211336853 A CN 202211336853A CN 116700854 B CN116700854 B CN 116700854B
- Authority
- CN
- China
- Prior art keywords
- list
- elements
- list element
- jump
- preset
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及终端技术领域,尤其涉及一种列表处理方法、装置及存储介质。The present application relates to the field of terminal technology, and in particular to a list processing method, device and storage medium.
背景技术Background technique
随着终端技术的发展,可穿戴设备越来越受到用户的青睐。一些可穿戴设备(例如智能手表)可以具备用户界面(user interface,UI),UI可以包括丰富的UI组件,例如按钮组件、列表组件、数字角标组件等。其中列表组件是一个普遍使用的组件,如文件管理应用(application,APP)的文件列表,联系人APP的联系人列表,信息APP的信息列表等都使用到列表组件,并基于列表组件显示列表内容。With the development of terminal technology, wearable devices are becoming more and more popular among users. Some wearable devices (such as smart watches) can have a user interface (UI), which can include a variety of UI components, such as button components, list components, digital badge components, etc. Among them, the list component is a commonly used component, such as the file list of the file management application (application, APP), the contact list of the contact APP, the information list of the information APP, etc., all use the list component and display the list content based on the list component.
一些实现中,在列表发生跳转时,可穿戴设备可以加载跳转的目标位置的列表内容,然后从当前的列表内容跳转至目标位置的列表内容进行显示。In some implementations, when a list jump occurs, the wearable device can load the list content of the jump target location, and then jump from the current list content to the list content of the target location for display.
然而,这样的列表跳转效果类似于刷新页面以显示内容,用户体验不佳。However, the effect of such a list jump is similar to refreshing the page to display the content, which is a poor user experience.
发明内容Summary of the invention
本申请实施例提供一种列表处理方法、装置及存储介质,应用于终端技术领域。有助于在节省可穿戴设备的内存和硬件资源开销的基础上,实现列表跳转的滚动效果,提升用户体验。The embodiments of the present application provide a list processing method, device and storage medium, which are applied to the field of terminal technology, and are helpful to realize the scrolling effect of list jump and improve user experience on the basis of saving memory and hardware resource overhead of wearable devices.
第一方面,本申请实施例提出一种列表处理方法,应用于可穿戴设备,可穿戴设备包括显示屏。该方法包括:在显示屏中显示第一界面,第一界面中包括第一列表元素和索引条,第一列表元素为预设列表中的一个列表元素;检测到作用于索引条上的列表跳转操作,列表跳转操作用于跳转至预设列表的第二列表元素;响应于列表跳转操作,在显示屏中依次显示第一中间列表元素和第二中间列表元素,直至显示出第二界面;其中,第一中间列表元素为第一列表元素和第二列表元素之间靠近第一列表元素的一个或多个列表元素,第二中间列表元素为第一列表元素和第二列表元素之间靠近第二列表元素的一个或多个列表元素;第二界面中包括第二列表元素。这样在列表跳转过程中,除了跳转起始位置的第一列表元素和跳转目标位置的第二列表元素之外,智能手表可以依次显示预设列表中第一列表元素和第二列表元素之间的部分列表元素,以使得基于可穿戴设备的内存和硬件资源开销是可以实现待显示的列表元素加载的。且依次显示第一中间列表元素、第二中间列表元素以及第二列表元素,可以实现列表位置跳转过程中的列表滚动效果,从而提升用户体验。In the first aspect, the embodiment of the present application proposes a list processing method, which is applied to a wearable device, and the wearable device includes a display screen. The method includes: displaying a first interface on the display screen, the first interface includes a first list element and an index bar, and the first list element is a list element in a preset list; detecting a list jump operation acting on the index bar, and the list jump operation is used to jump to the second list element in the preset list; in response to the list jump operation, displaying the first intermediate list element and the second intermediate list element in sequence on the display screen until the second interface is displayed; wherein the first intermediate list element is one or more list elements between the first list element and the second list element and close to the first list element, and the second intermediate list element is one or more list elements between the first list element and the second list element and close to the second list element; the second interface includes the second list element. In this way, during the list jump process, in addition to the first list element at the jump start position and the second list element at the jump target position, the smart watch can sequentially display some list elements between the first list element and the second list element in the preset list, so that the list elements to be displayed can be loaded based on the memory and hardware resource overhead of the wearable device. And by displaying the first middle list element, the second middle list element and the second list element in sequence, a list scrolling effect can be achieved during the list position jump process, thereby improving the user experience.
在一种可能的实现方式中,第一中间列表元素包括预设列表中与第一列表元素相邻的连续N个列表元素;和/或,第二中间列表元素包括预设列表中与第二列表元素相邻的连续M个列表元素;N和M均为大于0的整数。In one possible implementation, the first intermediate list element includes N consecutive list elements adjacent to the first list element in a preset list; and/or the second intermediate list element includes M consecutive list elements adjacent to the second list element in the preset list; N and M are both integers greater than 0.
在一种可能的实现方式中,第一界面还包括部分或全部第一中间列表元素;和/或,第二界面还包括部分或全部第二中间列表元素。In a possible implementation, the first interface further includes part or all of the first intermediate list elements; and/or the second interface further includes part or all of the second intermediate list elements.
在一种可能的实现方式中,索引条包括依次排列的多个索引元素,列表跳转操作包括点击索引条中第一索引元素的操作。In a possible implementation, the index bar includes a plurality of index elements arranged in sequence, and the list jump operation includes an operation of clicking the first index element in the index bar.
在一种可能的实现方式中,检测到作用于索引条上的列表跳转操作之后,方法还包括:In a possible implementation, after detecting a list jump operation acting on an index bar, the method further includes:
根据第一列表元素在预设列表中的第一位置和第二列表元素在预设列表中的第二位置,确定列表跳转方向,列表跳转方向包括向上跳转和向下跳转;根据列表跳转方向,确定第一位置和第二位置的位置偏移值;根据列表跳转方向和位置偏移值,在预设列表中确定第一位置和第二位置之间的多个中间列表元素,中间列表元素包括第一中间列表元素和第二中间列表元素。这样通过列表跳转方向和位置偏移值通过选择预设列表中一部分的列表元素为中间列表元素,可以保证基于智能手表的内存等硬件条件,可以实现对多个中间列表元素的显示,进而可以基于多个中间列表元素来实现滑动效果。According to the first position of the first list element in the preset list and the second position of the second list element in the preset list, determine the list jump direction, which includes jumping up and jumping down; according to the list jump direction, determine the position offset value of the first position and the second position; according to the list jump direction and the position offset value, determine multiple intermediate list elements between the first position and the second position in the preset list, and the intermediate list elements include the first intermediate list element and the second intermediate list element. In this way, by selecting a part of the list elements in the preset list as intermediate list elements through the list jump direction and the position offset value, it can be ensured that based on the hardware conditions such as the memory of the smart watch, the display of multiple intermediate list elements can be realized, and then the sliding effect can be realized based on the multiple intermediate list elements.
在一种可能的实现方式中,列表跳转方向为向下跳转;根据列表跳转方向和位置偏移值,在预设列表中确定第一位置和第二位置之间的多个中间列表元素,包括:若位置偏移值大于预设数量,则在预设列表中,将第一位置之后的第一数量个列表元素、以及第二位置之前的第二数量个列表元素,确定为中间列表元素;若位置偏移值小于或等于预设数量,则在预设列表中,将第一位置和第二位置之间的多个列表元素,确定为中间列表元素。当第一位置和第二位置之间的列表元素较少时确定第一位置至第二位置之间列表元素为中间列表元素;当第一位置和第二位置之间的列表元素较多时,将第一位置和第二位置之间,第一位置下方的连续多个列表元素和第二位置上方的连续多个列表元素确定为中间列表元素,使得后续对目标列表元素依次显示时,可以产生列表元素从第一位置开始向下滚动,经过了连续多个列表元素的滚动之后,最终滚动到了第二列表元素显示出来的效果。同时这个滚动效果可以只加载少量的列表元素,因此基于可穿戴设备的内存和硬件条件是可以实现的。In a possible implementation, the list jump direction is downward jump; according to the list jump direction and the position offset value, multiple intermediate list elements between the first position and the second position are determined in the preset list, including: if the position offset value is greater than the preset number, then in the preset list, a first number of list elements after the first position and a second number of list elements before the second position are determined as intermediate list elements; if the position offset value is less than or equal to the preset number, then in the preset list, multiple list elements between the first position and the second position are determined as intermediate list elements. When there are fewer list elements between the first position and the second position, the list elements between the first position and the second position are determined as intermediate list elements; when there are more list elements between the first position and the second position, the continuous multiple list elements below the first position and the continuous multiple list elements above the second position between the first position and the second position are determined as intermediate list elements, so that when the target list elements are displayed in sequence later, the list elements can be scrolled down from the first position, and after scrolling through the continuous multiple list elements, they are finally scrolled to the second list element for display. At the same time, this scrolling effect can only load a small number of list elements, so it can be achieved based on the memory and hardware conditions of the wearable device.
在一种可能的实现方式中,列表跳转方向为向上跳转;根据列表跳转方向和位置偏移值,在预设列表中确定第一位置和第二位置之间的多个中间列表元素,包括:若位置偏移值大于预设数量,则在预设列表中,将第一位置之前的第三数量个列表元素、以及第二位置之后的第四数量个列表元素,确定为中间列表元素;若位置偏移值小于或等于预设数量,则在预设列表中,将第一位置和第二位置之间的多个列表元素,确定为中间列表元素。当第一位置和第二位置之间的列表元素较少时确定第一位置至第二位置之间列表元素为中间列表元素;当第一位置和第二位置之间的列表元素较多时,将第一位置和第二位置之间,第一位置上方的连续多个列表元素和第二位置下方的连续多个列表元素确定为中间列表元素,使得后续对目标列表元素依次显示时,可以产生列表元素从第一位置开始向上滚动,经过了连续多个列表元素的滚动之后,最终滚动到了第二列表元素显示出来的效果。同时这个滚动效果可以只加载少量的列表元素,因此基于可穿戴设备的内存和硬件条件是可以实现的。In a possible implementation, the list jump direction is upward jump; according to the list jump direction and the position offset value, multiple intermediate list elements between the first position and the second position are determined in the preset list, including: if the position offset value is greater than the preset number, the third number of list elements before the first position and the fourth number of list elements after the second position are determined as intermediate list elements in the preset list; if the position offset value is less than or equal to the preset number, multiple list elements between the first position and the second position are determined as intermediate list elements in the preset list. When there are fewer list elements between the first position and the second position, the list elements between the first position and the second position are determined as intermediate list elements; when there are more list elements between the first position and the second position, the continuous multiple list elements above the first position and the continuous multiple list elements below the second position between the first position and the second position are determined as intermediate list elements, so that when the target list elements are displayed in sequence later, the effect of the list elements scrolling upward from the first position can be generated, and after scrolling through the continuous multiple list elements, the second list elements are finally scrolled to display. At the same time, this scrolling effect can only load a small number of list elements, so it can be achieved based on the memory and hardware conditions of the wearable device.
在一种可能的实现方式中,在显示屏中依次显示第一中间列表元素和第二中间列表元素,直至显示出第二界面,包括:将多个目标列表元素依次加载至可穿戴设备的内存中,目标列表元素包括第一中间列表元素、第二中间列表元素以及第二列表元素;确定各目标列表元素的坐标信息;根据第一列表元素的坐标信息和第二列表元素的坐标信息,确定跳转距离;根据跳转距离,依次显示各目标列表元素。In a possible implementation, a first intermediate list element and a second intermediate list element are displayed in sequence on a display screen until a second interface is displayed, including: loading multiple target list elements into the memory of a wearable device in sequence, the target list elements including a first intermediate list element, a second intermediate list element, and a second list element; determining coordinate information of each target list element; determining a jump distance based on the coordinate information of the first list element and the coordinate information of the second list element; and displaying each target list element in sequence based on the jump distance.
本申请实施例中,通过将第一列表元素,多个第一中间列表元素,多个第二中间列表元素,以及第二列表元素加载至可穿戴设备的内存中,以拼接成待显示的列表,在这个待显示的列表中仅包括预设列表中的少量列表元素,且将第一列表元素和第二列表元素拼接在了一个顺序展示的列表中。之后再根据第一列表元素的坐标信息和第二列表元素的坐标信息,确定跳转距离,并根据跳转距离,在显示屏中依次显示各目标列表元素,从而可以有效的在显示屏中表现出从第一列表元素开始滑动,经过一些中间列表元素之后,滑动至第二列表元素的效果。In an embodiment of the present application, a first list element, a plurality of first intermediate list elements, a plurality of second intermediate list elements, and a second list element are loaded into the memory of a wearable device to be spliced into a list to be displayed, in which only a small number of list elements in a preset list are included in the list to be displayed, and the first list element and the second list element are spliced into a list displayed sequentially. Then, the jump distance is determined based on the coordinate information of the first list element and the coordinate information of the second list element, and each target list element is displayed in sequence on the display screen based on the jump distance, so that the effect of sliding from the first list element, passing through some intermediate list elements, and then sliding to the second list element can be effectively displayed on the display screen.
在一种可能的实现方式中,根据跳转距离,依次显示各目标列表元素,包括:将跳转距离划分为多段,得到多段单次移动距离;根据列表跳转方向,将各目标列表元素的坐标信息移动第一段单次移动距离,得到各目标列表元素的移动后的坐标信息;获取显示屏所对应的可见纵坐标范围;将移动后的坐标信息满足可见纵坐标范围对应的第一条件的目标列表元素,按照移动后的坐标信息显示在显示屏中,并将移动后的坐标信息不满足第一条件的目标列表元素从内存中移除;重复执行根据列表跳转方向将各目标列表元素的坐标信息移动下一段单次移动距离,并根据移动后的坐标信息显示或移除目标列表元素的操作,直至第二列表元素完全显示在显示屏中。这样将跳转距离划分为多段单次移动距离,根据列表跳转方向将第一列表元素,各中间列表元素,以及第二列表元素依次移动单次移动距离,在单次移动距离较小时,可以使得各列表元素的移动更加平滑。In a possible implementation, each target list element is displayed in sequence according to the jump distance, including: dividing the jump distance into multiple segments to obtain multiple single movement distances; moving the coordinate information of each target list element by a first single movement distance according to the list jump direction to obtain the coordinate information of each target list element after the movement; obtaining the visible vertical coordinate range corresponding to the display screen; displaying the target list element whose coordinate information after the movement meets the first condition corresponding to the visible vertical coordinate range in the display screen according to the coordinate information after the movement, and removing the target list element whose coordinate information after the movement does not meet the first condition from the memory; repeatedly performing the operation of moving the coordinate information of each target list element by the next single movement distance according to the list jump direction, and displaying or removing the target list element according to the coordinate information after the movement, until the second list element is completely displayed in the display screen. In this way, the jump distance is divided into multiple single movement distances, and the first list element, each intermediate list element, and the second list element are moved by the single movement distance in sequence according to the list jump direction. When the single movement distance is small, the movement of each list element can be made smoother.
在一种可能的实现方式中,可见纵坐标范围对应有第一端点值和第二端点值,第二端点值大于第一端点值;坐标信息包括:目标列表元素的下边缘对应的第一纵坐标值、目标列表元素的上边缘对应的第二纵坐标值;第一条件为:第一纵坐标值大于可见纵坐标范围的第一端点值,以及第二纵坐标值小于可见纵坐标范围的第二端点值。In a possible implementation, the visible vertical coordinate range corresponds to a first endpoint value and a second endpoint value, and the second endpoint value is greater than the first endpoint value; the coordinate information includes: the first vertical coordinate value corresponding to the lower edge of the target list element, and the second vertical coordinate value corresponding to the upper edge of the target list element; the first condition is: the first vertical coordinate value is greater than the first endpoint value of the visible vertical coordinate range, and the second vertical coordinate value is less than the second endpoint value of the visible vertical coordinate range.
在一种可能的实现方式中,将多个目标列表元素加载至可穿戴设备的内存中,包括:根据可穿戴设备的内存中已加载的目标列表元素,在目标列表元素中确定未加载至内存中的目标列表元素;根据预设列表中列表元素的顺序,将未加载至内存中的目标列表元素,依次加载至内存中。确定目标列表元素后,有些目标列表元素已加载在可穿戴设备的内存中,可以不用再次加载,只需加载未加载至内存中的目标列表元素,以减少可穿戴设备的硬件资源开销。In a possible implementation, multiple target list elements are loaded into the memory of the wearable device, including: determining the target list elements that are not loaded into the memory in the target list elements according to the target list elements that are loaded into the memory of the wearable device; and sequentially loading the target list elements that are not loaded into the memory into the memory according to the order of the list elements in a preset list. After determining the target list elements, some of the target list elements have been loaded into the memory of the wearable device and do not need to be loaded again. Only the target list elements that are not loaded into the memory need to be loaded, so as to reduce the hardware resource overhead of the wearable device.
第二方面,本申请实施例提供一种列表处理装置,显示单元,用于在显示屏中显示第一界面,第一界面中包括第一列表元素和索引条,第一列表元素为预设列表中的一个列表元素;处理单元,用于检测到作用于索引条上的列表跳转操作,列表跳转操作用于跳转至预设列表的第二列表元素;处理单元,还用于响应于列表跳转操作,在显示屏中依次显示第一中间列表元素和第二中间列表元素,直至显示出第二界面;其中,第一中间列表元素为第一列表元素和第二列表元素之间靠近第一列表元素的一个或多个列表元素,第二中间列表元素为第一列表元素和第二列表元素之间靠近第二列表元素的一个或多个列表元素;第二界面中包括第二列表元素。In a second aspect, an embodiment of the present application provides a list processing device, including a display unit, for displaying a first interface on a display screen, the first interface including a first list element and an index bar, the first list element being a list element in a preset list; a processing unit, for detecting a list jump operation acting on the index bar, the list jump operation being used to jump to a second list element in the preset list; the processing unit, further for displaying a first intermediate list element and a second intermediate list element in sequence on the display screen in response to the list jump operation until the second interface is displayed; wherein the first intermediate list element is one or more list elements between the first list element and the second list element that are close to the first list element, and the second intermediate list element is one or more list elements between the first list element and the second list element that are close to the second list element; the second interface includes the second list element.
在一种可能的实现方式中,第一中间列表元素包括预设列表中与第一列表元素相邻的连续N个列表元素;和/或,第二中间列表元素包括预设列表中与第二列表元素相邻的连续M个列表元素;N和M均为大于0的整数。In one possible implementation, the first intermediate list element includes N consecutive list elements adjacent to the first list element in a preset list; and/or the second intermediate list element includes M consecutive list elements adjacent to the second list element in the preset list; N and M are both integers greater than 0.
在一种可能的实现方式中,第一界面还包括部分或全部第一中间列表元素;和/或,第二界面还包括部分或全部第二中间列表元素。In a possible implementation, the first interface further includes part or all of the first intermediate list elements; and/or the second interface further includes part or all of the second intermediate list elements.
在一种可能的实现方式中,索引条包括依次排列的多个索引元素,列表跳转操作包括点击索引条中第一索引元素的操作。In a possible implementation, the index bar includes a plurality of index elements arranged in sequence, and the list jump operation includes an operation of clicking the first index element in the index bar.
在一种可能的实现方式中,检测到作用于索引条上的列表跳转操作之后,处理单元,还用于根据第一列表元素在预设列表中的第一位置和第二列表元素在预设列表中的第二位置,确定列表跳转方向,列表跳转方向包括向上跳转和向下跳转;处理单元,还用于根据列表跳转方向,确定第一位置和第二位置的位置偏移值;处理单元,还用于根据列表跳转方向和位置偏移值,在预设列表中确定第一位置和第二位置之间的多个中间列表元素,中间列表元素包括第一中间列表元素和第二中间列表元素。In one possible implementation, after detecting a list jump operation acting on an index bar, the processing unit is further used to determine a list jump direction based on a first position of a first list element in a preset list and a second position of a second list element in the preset list, the list jump direction including an upward jump and a downward jump; the processing unit is further used to determine a position offset value between the first position and the second position based on the list jump direction; the processing unit is further used to determine a plurality of intermediate list elements between the first position and the second position in the preset list based on the list jump direction and the position offset value, the intermediate list elements including a first intermediate list element and a second intermediate list element.
在一种可能的实现方式中,列表跳转方向为向下跳转;处理单元,还用于若位置偏移值大于预设数量,则在预设列表中,将第一位置之后的第一数量个列表元素、以及第二位置之前的第二数量个列表元素,确定为中间列表元素;处理单元,还用于若位置偏移值小于或等于预设数量,则在预设列表中,将第一位置和第二位置之间的多个列表元素,确定为中间列表元素。In one possible implementation, the list jump direction is downward jump; the processing unit is also used to determine, in the preset list, a first number of list elements after the first position and a second number of list elements before the second position as intermediate list elements if the position offset value is greater than a preset number; the processing unit is also used to determine, in the preset list, multiple list elements between the first position and the second position as intermediate list elements if the position offset value is less than or equal to the preset number.
在一种可能的实现方式中,列表跳转方向为向上跳转;处理单元,还用于若位置偏移值大于预设数量,则在预设列表中,将第一位置之前的第三数量个列表元素、以及第二位置之后的第四数量个列表元素,确定为中间列表元素;处理单元,还用于若位置偏移值小于或等于预设数量,则在预设列表中,将第一位置和第二位置之间的多个列表元素,确定为中间列表元素。In one possible implementation, the list jump direction is upward jump; the processing unit is also used to, if the position offset value is greater than a preset number, determine the third number of list elements before the first position and the fourth number of list elements after the second position in the preset list as intermediate list elements; the processing unit is also used to, if the position offset value is less than or equal to the preset number, determine multiple list elements between the first position and the second position in the preset list as intermediate list elements.
在一种可能的实现方式中,处理单元,还用于将多个目标列表元素依次加载至可穿戴设备的内存中,目标列表元素包括第一中间列表元素、第二中间列表元素以及第二列表元素;处理单元,还用于确定各目标列表元素的坐标信息;处理单元,还用于根据第一列表元素的坐标信息和第二列表元素的坐标信息,确定跳转距离;处理单元,还用于根据跳转距离,依次显示各目标列表元素。In a possible implementation, the processing unit is also used to load multiple target list elements into the memory of the wearable device in sequence, and the target list elements include a first intermediate list element, a second intermediate list element, and a second list element; the processing unit is also used to determine the coordinate information of each target list element; the processing unit is also used to determine the jump distance based on the coordinate information of the first list element and the coordinate information of the second list element; the processing unit is also used to display each target list element in sequence according to the jump distance.
在一种可能的实现方式中,处理单元,还用于将跳转距离划分为多段,得到多段单次移动距离;处理单元,还用于根据列表跳转方向,将各目标列表元素的坐标信息移动第一段单次移动距离,得到各目标列表元素的移动后的坐标信息;处理单元,还用于获取显示屏所对应的可见纵坐标范围;处理单元,还用于将移动后的坐标信息满足可见纵坐标范围对应的第一条件的目标列表元素,按照移动后的坐标信息显示在显示屏中,并将移动后的坐标信息不满足第一条件的目标列表元素从内存中移除;处理单元,还用于重复执行根据列表跳转方向将各目标列表元素的坐标信息移动下一段单次移动距离,并根据移动后的坐标信息显示或移除目标列表元素的操作,直至第二列表元素完全显示在显示屏中。In a possible implementation, the processing unit is further used to divide the jump distance into multiple segments to obtain multiple single movement distances; the processing unit is further used to move the coordinate information of each target list element by a first single movement distance according to the list jump direction to obtain the coordinate information of each target list element after moving; the processing unit is further used to obtain the visible vertical coordinate range corresponding to the display screen; the processing unit is further used to display the target list elements whose coordinate information after moving meets the first condition corresponding to the visible vertical coordinate range on the display screen according to the coordinate information after moving, and remove the target list elements whose coordinate information after moving does not meet the first condition from the memory; the processing unit is further used to repeatedly execute the operation of moving the coordinate information of each target list element by the next single movement distance according to the list jump direction, and displaying or removing the target list elements according to the coordinate information after moving, until the second list element is completely displayed on the display screen.
在一种可能的实现方式中,可见纵坐标范围对应有第一端点值和第二端点值,第二端点值大于第一端点值;坐标信息包括:目标列表元素的下边缘对应的第一纵坐标值、目标列表元素的上边缘对应的第二纵坐标值;第一条件为:第一纵坐标值大于可见纵坐标范围的第一端点值,以及第二纵坐标值小于可见纵坐标范围的第二端点值。In a possible implementation, the visible vertical coordinate range corresponds to a first endpoint value and a second endpoint value, and the second endpoint value is greater than the first endpoint value; the coordinate information includes: the first vertical coordinate value corresponding to the lower edge of the target list element, and the second vertical coordinate value corresponding to the upper edge of the target list element; the first condition is: the first vertical coordinate value is greater than the first endpoint value of the visible vertical coordinate range, and the second vertical coordinate value is less than the second endpoint value of the visible vertical coordinate range.
在一种可能的实现方式中,处理单元,还用于根据可穿戴设备的内存中已加载的目标列表元素,在目标列表元素中确定未加载至内存中的目标列表元素;处理单元,还用于根据预设列表中列表元素的顺序,将未加载至内存中的目标列表元素,依次加载至内存中In a possible implementation, the processing unit is further used to determine the target list elements that are not loaded into the memory in the target list elements according to the target list elements that have been loaded into the memory of the wearable device; the processing unit is also used to load the target list elements that are not loaded into the memory into the memory in sequence according to the order of the list elements in the preset list.
第三方面,本申请实施例提供一种电子设备,包括处理器和存储器,存储器用于存储代码指令;处理器用于运行代码指令,使得电子设备执行如第一方面或第一方面的任一种可能的实现方式中描述的列表处理方法。In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, the memory being used to store code instructions; the processor being used to run the code instructions so that the electronic device executes the list processing method described in the first aspect or any possible implementation of the first aspect.
第四方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质存储有指令,当指令被执行时,使得计算机执行如第一方面或第一方面的任一种可能的实现方式中描述的列表处理方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed, the computer executes the list processing method described in the first aspect or any possible implementation of the first aspect.
第五方面,本申请实施例提供一种计算机程序产品,计算机程序产品包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面或第一方面的任一种可能的实现方式中描述的列表处理方法。In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the list processing method described in the first aspect or any possible implementation of the first aspect.
第六方面,本申请实施例提供一种芯片或者芯片系统,该芯片或者芯片系统包括至少一个处理器和通信接口,通信接口和至少一个处理器通过线路互联,至少一个处理器用于运行计算机程序或指令,以执行第一方面或第一方面的任一种可能的实现方式中描述的列表处理方法。其中,芯片中的通信接口可以为输入/输出接口、管脚或电路等。In a sixth aspect, an embodiment of the present application provides a chip or a chip system, the chip or chip system comprising at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is used to run a computer program or instruction to execute the list processing method described in the first aspect or any possible implementation of the first aspect. The communication interface in the chip can be an input/output interface, a pin or a circuit, etc.
应当理解的是,本申请的第二方面至第六方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the second to sixth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为一种联系人列表界面的示意图一;FIG1 is a schematic diagram of a contact list interface;
图2为一种联系人列表界面的示意图二;FIG. 2 is a second schematic diagram of a contact list interface;
图3为一种联系人列表跳转的界面示意图;FIG3 is a schematic diagram of an interface for jumping to a contact list;
图4为本申请实施例所适用的场景示意图;FIG4 is a schematic diagram of a scenario applicable to an embodiment of the present application;
图5为本申请实施例提供的一种可穿戴设备的硬件结构示意图;FIG5 is a schematic diagram of the hardware structure of a wearable device provided in an embodiment of the present application;
图6为本申请实施例提供的一种列表处理方法的流程示意图;FIG6 is a flowchart of a list processing method provided in an embodiment of the present application;
图7为本申请实施例提供的一种联系人预设列表示意图一;FIG. 7 is a schematic diagram of a preset list of contacts provided in an embodiment of the present application;
图8为本申请实施例提供的一种列表界面示意图一;FIG8 is a schematic diagram of a list interface provided in an embodiment of the present application;
图9为本申请实施例提供的一种列表跳转前后的界面示意图一;FIG9 is a schematic diagram of an interface before and after a list jump provided in an embodiment of the present application;
图10为本申请实施例提供的一种列表跳转前后的界面示意图二;FIG10 is a second schematic diagram of an interface before and after a list jump provided in an embodiment of the present application;
图11为本申请实施例提供的一种联系人预设列表示意图二;FIG11 is a second schematic diagram of a preset list of contacts provided in an embodiment of the present application;
图12为本申请实施例提供的一种联系人预设列表示意图三;FIG12 is a third schematic diagram of a preset list of contacts provided in an embodiment of the present application;
图13为本申请实施例提供的一种联系人预设列表示意图四;FIG13 is a fourth schematic diagram of a preset list of contacts provided in an embodiment of the present application;
图14为本申请实施例提供的一种联系人预设列表示意图五;FIG14 is a schematic diagram 5 of a preset list of contacts provided in an embodiment of the present application;
图15为本申请实施例提供的一种列表界面示意图二;FIG15 is a second schematic diagram of a list interface provided in an embodiment of the present application;
图16为本申请实施例提供的一种列表向下跳转时加载的列表元素示意图;FIG16 is a schematic diagram of list elements loaded when a list jumps downward provided by an embodiment of the present application;
图17为本申请实施例提供的一种列表向上跳转时加载的列表元素示意图;FIG17 is a schematic diagram of list elements loaded when a list jumps upward provided by an embodiment of the present application;
图18为本申请实施例提供的一种列表向下跳转过程中依次显示列表元素的示意图;FIG18 is a schematic diagram of displaying list elements in sequence during a downward jump of a list provided by an embodiment of the present application;
图19为本申请实施例提供的一种列表处理的流程示意图;FIG19 is a flowchart of a list processing provided in an embodiment of the present application;
图20为本申请实施例提供的一种列表处理装置的结构示意图;FIG20 is a schematic diagram of the structure of a list processing device provided in an embodiment of the present application;
图21为本申请实施例提供的一种电子设备的硬件结构示意图;FIG21 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
图22为本申请实施例提供的一种芯片的结构示意图。FIG. 22 is a schematic diagram of the structure of a chip provided in an embodiment of the present application.
具体实施方式Detailed ways
为了便于清楚描述本申请实施例的技术方案,以下,对本申请实施例中所涉及的部分术语和技术进行简单介绍:In order to clearly describe the technical solutions of the embodiments of the present application, some terms and technologies involved in the embodiments of the present application are briefly introduced below:
1)列表宽度和列表高度:也可以称为列表可见宽度和列表可见高度。本申请实施例中,列表可见宽度可以指可穿戴设备的显示屏的宽度,列表可见高度可以指可穿戴设备的显示屏的高度,处在列表宽度和列表高度范围内的列表为可见列表。本申请实施例中以智能手表为例进行示例性说明,当然,本申请实施例也适用于其他可穿戴设备,例如手环等,只要可以显示列表,本申请实施例对可穿戴设备的种类不作具体限制。1) List width and list height: can also be referred to as list visible width and list visible height. In the embodiment of the present application, the list visible width may refer to the width of the display screen of the wearable device, and the list visible height may refer to the height of the display screen of the wearable device. The list within the range of the list width and list height is a visible list. In the embodiment of the present application, a smart watch is used as an example for illustrative explanation. Of course, the embodiment of the present application is also applicable to other wearable devices, such as bracelets, etc. As long as the list can be displayed, the embodiment of the present application does not specifically limit the type of wearable device.
示例性的,图1示出了一种联系人列表界面的示意图一。以智能手表为例,当智能手表检测到用户针对联系人APP的启动操作后,智能手表可以显示如图1所示的界面,如图1所示,智能手表的显示屏100中显示有联系人列表界面。在当前的示例中,联系人列表界面中可见的列表内容可以包括:“联系人”对应的控件,“收藏联系人”对应的控件,联系人“阿一”对应的控件101,联系人“艾一”对应的控件102以及索引条103。其中,联系人“阿一”对应的控件101中可以包括联系人名称“阿一”及其对应的头像,联系人“艾一”对应的控件102可以包括联系人名称“艾一”及其对应的头像,索引条103可以包括索引#,索引A,索引B等字母索引以及可伸展按钮1031。Exemplarily, FIG1 shows a schematic diagram of a contact list interface. Taking a smart watch as an example, when the smart watch detects the user's startup operation for the contact APP, the smart watch can display the interface shown in FIG1. As shown in FIG1, the contact list interface is displayed on the display screen 100 of the smart watch. In the current example, the list content visible in the contact list interface may include: controls corresponding to "contacts", controls corresponding to "favorite contacts", controls 101 corresponding to the contact "Ayi", controls 102 corresponding to the contact "Ayi" and index bar 103. Among them, the control 101 corresponding to the contact "Ayi" may include the contact name "Ayi" and its corresponding avatar, the control 102 corresponding to the contact "Aiyi" may include the contact name "Aiyi" and its corresponding avatar, and the index bar 103 may include letter indexes such as index #, index A, index B, and an extendable button 1031.
在一种可能的实现方式中,在渲染可见列表时,针对列表可见宽度和列表可见高度范围内的列表元素都会进行渲染。而每一个列表元素又对应有各自的高度和宽度,因此可见列表比如说可以是矩形的。In a possible implementation, when rendering the visible list, all list elements within the visible list width and visible list height range are rendered. Each list element has its own height and width, so the visible list can be rectangular, for example.
然而显示屏在不同的产品中可能会存在不同的形状,比如说在图1的示例,显示屏的形状是列表高度和列表宽度所组成的矩形的内切圆。或者显示屏的形状还可以为椭圆形、长方形、不规则形状等等的任意形状。However, the display screen may have different shapes in different products. For example, in the example of FIG. 1 , the shape of the display screen is the inscribed circle of a rectangle formed by the list height and the list width. Alternatively, the shape of the display screen may be any shape such as an ellipse, a rectangle, an irregular shape, etc.
那么可以理解的是,受制于显示屏的形状,矩形的可见列表可能不能完全的显示在显示屏中,例如会存在一些边缘部分未显示在显示屏中,但是这些未显示的部分仍然是完成了渲染的。比如说在图1的示例中,处在显示屏100中边缘位置的联系人“艾一”对应的控件102中的头像仅显示了一部分,这就是因为显示屏100的形状,导致头像未完整显示。如图1所示,本申请实施例中设置有x轴和y轴用于衡量列表内容所在位置,以显示屏100左上角为原点,水平方向设为x轴,且水平向右为x轴的正方向;垂直方向设为y轴,且垂直向下为y轴的正方向。列表宽度在x轴方向,列表高度在y轴方向。当然,实际实现中用于衡量列表内容所在位置的x轴和y轴可以有其他不同的设置,也可以用其他方式衡量列表内容所在位置,对此本申请实施例不作具体限制。It can be understood that, subject to the shape of the display screen, the visible list of the rectangle may not be fully displayed in the display screen, for example, there may be some edge parts that are not displayed in the display screen, but these undisplayed parts are still rendered. For example, in the example of Figure 1, the avatar in the control 102 corresponding to the contact "Ai Yi" at the edge of the display screen 100 is only partially displayed, which is because of the shape of the display screen 100, resulting in the incomplete display of the avatar. As shown in Figure 1, in the embodiment of the present application, an x-axis and a y-axis are provided to measure the location of the list content, with the upper left corner of the display screen 100 as the origin, the horizontal direction is set to the x-axis, and the horizontal right is the positive direction of the x-axis; the vertical direction is set to the y-axis, and the vertical downward is the positive direction of the y-axis. The list width is in the x-axis direction, and the list height is in the y-axis direction. Of course, in actual implementation, the x-axis and y-axis used to measure the location of the list content can have other different settings, and the location of the list content can also be measured in other ways, and the embodiment of the present application is not specifically limited to this.
2)列表元素:列表元素也可以称为列表项,列表元素可以是列表中的显示内容。每个列表元素是独立的,每个列表元素具有其宽度和高度,且每个列表元素在加载至可穿戴设备的内存中时,可以针对列表元素确定其在显示屏对应的坐标系中的位置坐标,位置坐标可以包括横坐标(x轴方向)和纵坐标(y轴方向)。列表元素被加载到内存后,可穿戴设备可将内存中的列表元素发送至自身的显示屏进行显示。示例性的,图2示出了一种联系人列表界面的示意图二,以智能手表为例,该界面中显示的内容可以参照图1,在此不再赘述。如图2所示,列表中每一行(或者是每一条)内容可以为一个列表元素,例如“联系人”对应的控件为一个列表元素,“收藏联系人”对应的控件为一个列表元素,联系人“阿一”对应的控件为一个列表元素。2) List elements: List elements can also be called list items, and list elements can be the display content in the list. Each list element is independent, each list element has its width and height, and when each list element is loaded into the memory of the wearable device, its position coordinates in the coordinate system corresponding to the display screen can be determined for the list element, and the position coordinates can include abscissas (x-axis direction) and ordinates (y-axis direction). After the list elements are loaded into the memory, the wearable device can send the list elements in the memory to its own display screen for display. Exemplarily, FIG2 shows a schematic diagram of a contact list interface. Taking a smart watch as an example, the content displayed in the interface can refer to FIG1, which will not be repeated here. As shown in FIG2, each row (or each item) of content in the list can be a list element, for example, the control corresponding to "Contact" is a list element, the control corresponding to "Favorite Contact" is a list element, and the control corresponding to the contact "Ayi" is a list element.
需要说明的是,若列表元素有一部分显示在可见列表范围内,则可以认为该列表元素在可见列表的范围之内。例如,以图1中的坐标系为例,当列表元素的下边缘对应的坐标大于0,且该列表元素的上边缘对应的坐标小于列表高度时,则可以认为该列表元素在可见列表的范围之内。It should be noted that if a part of a list element is displayed within the visible list range, the list element can be considered to be within the visible list range. For example, taking the coordinate system in Figure 1 as an example, when the coordinate corresponding to the bottom edge of the list element is greater than 0, and the coordinate corresponding to the top edge of the list element is less than the list height, the list element can be considered to be within the visible list range.
本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And/or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character "/" generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple.
需要说明的是,本申请实施例中的“在……时”,可以为在某种情况发生的瞬时,也可以为在某种情况发生后的一段时间内,本申请实施例对此不作具体限定。此外,本申请实施例提供的显示界面仅作为示例,显示界面还可以包括更多或更少的内容。It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or can be a period of time after a certain situation occurs, and the embodiment of the present application does not specifically limit this. In addition, the display interface provided in the embodiment of the present application is only an example, and the display interface can also include more or less content.
随着终端技术的发展,可穿戴设备越来越受到用户的青睐。一些可穿戴设备(例如智能手表)可以具备用户界面(user interface,UI),UI可以包括丰富的UI组件,例如按钮组件、列表组件、数字角标组件等。其中列表组件是一个普遍使用的组件,如文件管理应用(application,APP)的文件列表,联系人APP的联系人列表,信息APP的信息列表等都使用到列表组件,并基于列表组件显示列表内容。With the development of terminal technology, wearable devices are becoming more and more popular among users. Some wearable devices (such as smart watches) may have a user interface (UI), which may include a variety of UI components, such as button components, list components, digital badge components, etc. Among them, the list component is a commonly used component, such as the file list of the file management application (application, APP), the contact list of the contact APP, the information list of the information APP, etc., all use the list component and display the list content based on the list component.
在一些包含长列表的界面上,设置有索引条,索引条中包括多个索引。一些实现中,用户可以通过点击索引使界面由当前列表位置跳转到索引对应的列表位置。On some interfaces containing long lists, an index bar is provided, and the index bar includes multiple indexes. In some implementations, the user can click an index to make the interface jump from the current list position to the list position corresponding to the index.
示例性的,图3示出了一种联系人列表跳转的界面示意图。以智能手表为例,如图3的a所示的界面,该界面中可以包括“联系人”对应的列表元素,“收藏联系人”对应的列表元素,联系人“阿一”对应的列表元素,联系人“艾一”对应的列表元素以及索引条301,其中,索引条301包括索引“#”,索引“A”至索引“Z”等字母或符号,以及可收缩按钮3011。Exemplarily, Fig. 3 shows a schematic diagram of an interface for jumping to a contact list. Taking a smartwatch as an example, the interface shown in a of Fig. 3 may include a list element corresponding to "contacts", a list element corresponding to "favorite contacts", a list element corresponding to contact "阿一", a list element corresponding to contact "艾一" and an index bar 301, wherein the index bar 301 includes an index "#", letters or symbols such as indexes "A" to "Z", and a retractable button 3011.
在如图3的a所示的界面中,当智能手表检测到用户针对索引条301中的索引“D”的触发操作时,列表跳转到索引“D”对应的列表位置,智能手表可以显示如图3的b所示的界面。如图3的b所示的界面,该界面中可以包括索引字母“D”对应的列表元素302,索引指示“D”303,联系人“丁一”对应的列表元素,联系人“丁二”对应的列表元素以及索引条。其中,索引指示“D”303在跳转结束后可以消失,下一次发生跳转时再出现,索引指示“D”303用于提示当前已经跳转到了索引“D”对应的联系人页面。In the interface shown in a of FIG. 3 , when the smartwatch detects a user trigger operation on index "D" in index bar 301, the list jumps to the list position corresponding to index "D", and the smartwatch may display the interface shown in b of FIG. 3 . As shown in b of FIG. 3 , the interface may include a list element 302 corresponding to the index letter "D", an index indication "D" 303, a list element corresponding to contact "Ding Yi", a list element corresponding to contact "Ding Er", and an index bar. Among them, index indication "D" 303 may disappear after the jump is completed, and reappear the next time a jump occurs. Index indication "D" 303 is used to prompt that the current page has been jumped to the contact page corresponding to index "D".
可以理解的是,上述介绍的从列表中的一个位置跳转到另一个位置的实现,若是在跳转过程中,可以以列表元素滚动的效果显示跳转过程中的各个列表元素,可以为用户带来良好的体验。若是想实现在跳转过程中以滚动效果显示各个列表元素,则将各个列表元素都进行加载,然后再进行显示。It is understandable that the implementation of jumping from one position in the list to another position described above can provide a good user experience if the list elements in the jumping process can be displayed with a scrolling effect during the jumping process. If you want to display each list element with a scrolling effect during the jumping process, then load each list element and then display it.
然而,受限于可穿戴设备的尺寸要求,可穿戴设备的硬件性能不足,内存资源有限,导致可穿戴设备无法加载跳转过程中的所有列表元素,因此现有技术中在实现列表跳转的时候,通常是加载跳转的目标位置的列表元素,然后从当前的列表元素跳转至目标位置的列表元素进行显示。这样的跳转方式相当于刷新了页面显示的内容,并没有在页面中表现出跳转过程中的滚动效果,这样会导致列表跳转过程中,用户体验不佳。However, due to the size requirements of wearable devices, insufficient hardware performance of wearable devices, and limited memory resources, the wearable devices cannot load all list elements during the jump process. Therefore, in the prior art, when implementing list jumps, the list elements at the jump target position are usually loaded, and then the list elements at the target position are jumped from the current list elements for display. This jump method is equivalent to refreshing the content displayed on the page, and the scrolling effect during the jump process is not shown on the page, which will lead to a poor user experience during the list jump process.
有鉴于此,本申请实施例提供一种列表处理方法,该方法通过加载当前列表元素,当前列表元素与列表跳转操作指示的列表元素之间,当前列表元素附近设定数量的列表元素,列表跳转操作指示的列表元素附近设定数量的列表元素以及列表跳转操作指示的列表元素,将这些列表元素拼接成一个待显示的列表。因为拼接成的这个列表中所包括的列表元素的数量是比较少的,因此可以针对这个拼接出来的列表中的各个列表元素进行滚动显示,同时因为拼接的这个列表中包括的是当前列表元素及其附近的列表元素,以及列表跳转操作指示的列表元素及其附近的列表元素,因此可以表现出从当前列表元素以滚动效果跳转至列表跳转操作指示的列表元素的效果。因此本申请实施例中可以使得可穿戴设备用较小的内存和硬件资源开销,实现列表位置跳转时的列表滚动效果。In view of this, an embodiment of the present application provides a list processing method, which splices these list elements into a list to be displayed by loading the current list element, the list element between the current list element and the list element indicated by the list jump operation, the set number of list elements near the current list element, the set number of list elements near the list element indicated by the list jump operation, and the list element indicated by the list jump operation. Because the number of list elements included in the spliced list is relatively small, it is possible to scroll and display each list element in the spliced list. At the same time, because the spliced list includes the current list element and its nearby list elements, as well as the list element indicated by the list jump operation and its nearby list elements, it is possible to show the effect of jumping from the current list element to the list element indicated by the list jump operation with a scrolling effect. Therefore, in the embodiment of the present application, the wearable device can use less memory and hardware resource overhead to achieve the list scrolling effect when the list position jumps.
示例性的,图4为本申请实施例所适用的场景示意图。如图4所示,可穿戴设备400可以是能够供用户穿戴并且可以处理相应的用户业务以及与用户进行智能交互的智能可穿戴设备,例如智能手表、智能手环、智能眼镜等。For example, Figure 4 is a schematic diagram of a scenario applicable to the embodiments of the present application. As shown in Figure 4, the wearable device 400 can be a smart wearable device that can be worn by a user and can process corresponding user services and intelligently interact with the user, such as a smart watch, a smart bracelet, smart glasses, etc.
可穿戴设备400可以包括显示屏401,在显示屏401中可以显示列表,列表例如可以是联系人列表,或者还可以是音乐播放列表、音乐收藏列表,或者还可以是阅读列表等等,本申请实施例对在显示屏中所显示的列表的具体实现不做限制。The wearable device 400 may include a display screen 401, on which a list may be displayed. The list may be, for example, a contact list, or a music play list, a music collection list, or a reading list, etc. The embodiment of the present application does not limit the specific implementation of the list displayed on the display screen.
在显示屏401中,当可穿戴设备检测到用户针对列表的跳转操作时,可穿戴设备400可以基于本申请实施例提供的列表处理方法在显示屏401中显示跳转过程中的列表元素。本申请实施例以可穿戴设备400为智能手表为例进行示例性说明。In display screen 401, when the wearable device detects a jump operation of the user on the list, the wearable device 400 can display the list elements in the jump process on display screen 401 based on the list processing method provided in the embodiment of the present application. The embodiment of the present application takes the wearable device 400 as a smart watch as an example for exemplary description.
示例性的,列表处理方法可以包括:在显示屏中显示第一界面,第一界面中包括第一列表元素和索引条,第一列表元素为预设列表中的一个列表元素;检测到作用于索引条上的列表跳转操作,列表跳转操作用于跳转至预设列表的第二列表元素;响应于列表跳转操作,在显示屏中依次显示第一中间列表元素和第二中间列表元素,直至显示出第二界面;其中,第一中间列表元素为第一列表元素和第二列表元素之间靠近第一列表元素的一个或多个列表元素,第二中间列表元素为第一列表元素和第二列表元素之间靠近第二列表元素的一个或多个列表元素;第二界面中包括第二列表元素。这样依次显示预设列表中的部分列表元素既可以节省可穿戴设备的内存和硬件资源开销,也可以实现列表位置跳转时的列表滚动效果,提升用户体验。Exemplarily, the list processing method may include: displaying a first interface on a display screen, the first interface including a first list element and an index bar, the first list element being a list element in a preset list; detecting a list jump operation acting on the index bar, the list jump operation being used to jump to a second list element in the preset list; in response to the list jump operation, sequentially displaying a first intermediate list element and a second intermediate list element on the display screen until a second interface is displayed; wherein the first intermediate list element is one or more list elements between the first list element and the second list element that are close to the first list element, and the second intermediate list element is one or more list elements between the first list element and the second list element that are close to the second list element; and the second interface includes the second list element. Displaying some list elements in the preset list sequentially in this way can not only save the memory and hardware resource overhead of the wearable device, but also realize the list scrolling effect when the list position jumps, thereby improving the user experience.
示例性的,图5示出了本申请实施例提供的一种可穿戴设备的硬件结构示意图。可穿戴设备可以包括处理器510,移动通信模块520,无线通信模块530,显示屏540,充电管理模块550,电源管理模块551,电池552,内部存储器560以及音频模块570等。For example, Fig. 5 shows a schematic diagram of the hardware structure of a wearable device provided in an embodiment of the present application. The wearable device may include a processor 510, a mobile communication module 520, a wireless communication module 530, a display screen 540, a charging management module 550, a power management module 551, a battery 552, an internal memory 560, and an audio module 570, etc.
可以理解的是,本申请实施例示意的结构并不构成对可穿戴设备的具体限定。在本申请另一些实施例中,可穿戴设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the wearable device. In other embodiments of the present application, the wearable device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
处理器510可以包括一个或多个处理单元。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。处理器510中还可以设置存储器,用于存储指令和数据。The processor 510 may include one or more processing units. Different processing units may be independent devices or integrated into one or more processors. The processor 510 may also be provided with a memory for storing instructions and data.
可穿戴设备的无线通信功能可以通过天线,天线,移动通信模块520,无线通信模块530,调制解调器以及基带处理器等实现。The wireless communication function of the wearable device can be implemented through an antenna, an antenna, a mobile communication module 520, a wireless communication module 530, a modem, and a baseband processor.
移动通信模块520可以提供应用在终端设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块520可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块520可以由天线接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。The mobile communication module 520 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to terminal devices. The mobile communication module 520 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 520 may receive electromagnetic waves through an antenna, filter, amplify, etc. the received electromagnetic waves, and transmit them to a modulation and demodulation processor for demodulation.
无线通信模块530可以提供应用在可穿戴设备上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM)等无线通信的解决方案。The wireless communication module 530 can provide wireless communication solutions for wearable devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), etc.
充电管理模块550用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。The charging management module 550 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.
电源管理模块551用于连接电池552,充电管理模块550与处理器510。电源管理模块551接收电池552和/或充电管理模块550的输入,为处理器510,内部存储器560,显示屏545,和无线通信模块530等供电。The power management module 551 is used to connect the battery 552, the charging management module 550 and the processor 510. The power management module 551 receives input from the battery 552 and/or the charging management module 550 to power the processor 510, the internal memory 560, the display screen 545, and the wireless communication module 530.
可穿戴设备通过GPU,显示屏540,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏540和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。The wearable device implements display functions through a GPU, a display screen 540, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 540 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.
显示屏540用于显示图像,视频等。显示屏540包括显示面板。在一些实施例中,可穿戴设备可以包括5个或N个显示屏540,N为大于5的正整数。The display screen 540 is used to display images, videos, etc. The display screen 540 includes a display panel. In some embodiments, the wearable device may include 5 or N display screens 540, where N is a positive integer greater than 5.
内部存储器560可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器560可以包括存储程序区和存储数据区。The internal memory 560 may be used to store computer executable program codes, which may include instructions. The internal memory 560 may include a program storage area and a data storage area.
可穿戴设备可以通过音频模块570,扬声器,受话器,以及应用处理器等实现音频功能。例如音乐播放,录音等。The wearable device can implement audio functions such as music playing and recording through the audio module 570, speakers, receivers, and application processors.
音频模块570用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。扬声器,也称“喇叭”,用于将音频电信号转换为声音信号。可穿戴设备可以通过扬声器收听音乐,或收听免提通话。收话器,也称“听筒”,用于将音频电信号转换成声音信号。当可穿戴设备接听电话或语音信息时,可以通过将收话器靠近人耳接听语音。The audio module 570 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The speaker, also known as a "speaker", is used to convert audio electrical signals into sound signals. The wearable device can listen to music or listen to hands-free calls through the speaker. The receiver, also known as a "handset", is used to convert audio electrical signals into sound signals. When the wearable device receives a call or voice message, the voice can be heard by placing the receiver close to the human ear.
示例性的,本申请实施例中的可穿戴设备的系统可以是轻量级物联网操作(liteOS)系统,或者本申请实施例的可穿戴设备的软件系统也可以是安卓(android)系统,例如可以以分层架构的liteOS系统为例对可穿戴设备的软件架构进行说明。本申请实施例对可穿戴设备的软件系统不做具体限定。Exemplarily, the system of the wearable device in the embodiment of the present application may be a lightweight IoT operating system (liteOS) system, or the software system of the wearable device in the embodiment of the present application may also be an Android system. For example, the software architecture of the wearable device may be described by taking the liteOS system of the layered architecture as an example. The embodiment of the present application does not specifically limit the software system of the wearable device.
下面结合附图,以具体的实施例对本申请实施例的技术方案以及本申请实施例的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。The following, in conjunction with the accompanying drawings, describes in detail the technical solutions of the embodiments of the present application and how the technical solutions of the embodiments of the present application solve the above-mentioned technical problems with specific embodiments. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
图6为本申请实施例提供的一种列表处理方法的流程示意图。该方法可以应用于可穿戴设备,可穿戴设备可以包括显示屏,如图6所示,该方法可以包括:FIG6 is a flow chart of a list processing method provided in an embodiment of the present application. The method can be applied to a wearable device, and the wearable device can include a display screen. As shown in FIG6 , the method can include:
S601:在显示屏中显示第一界面,第一界面中包括第一列表元素和索引条,第一列表元素为预设列表中的一个列表元素。S601: Displaying a first interface on a display screen, wherein the first interface includes a first list element and an index bar, and the first list element is a list element in a preset list.
本申请实施例中,在显示屏中可以显示第一界面,第一界面上可以显示有多个列表元素的列表,此处的列表例如可以是联系人列表,或者还可以是音乐播放列表、音乐收藏列表,或者还可以是智能手表的应用程序的列表等等,本申请实施例对第一界面上所显示的列表的具体实现不做限制,其可以根据实际需求进行实现。In an embodiment of the present application, a first interface can be displayed on the display screen, and a list with multiple list elements can be displayed on the first interface. The list here can be, for example, a contact list, or a music play list, a music collection list, or a list of applications for a smart watch, etc. The embodiment of the present application does not limit the specific implementation of the list displayed on the first interface, and it can be implemented according to actual needs.
基于上述介绍可以确定的是,因为屏幕大小有限,因此在第一界面中显示的只是部分列表。而无论是针对什么类型的列表,其都存在一个完整的预设列表,在这个完整的预设列表中,包括了所有的列表元素。Based on the above description, it can be determined that, because the screen size is limited, only part of the list is displayed in the first interface. Regardless of the type of list, there is a complete preset list, which includes all list elements.
例如针对联系人类型的列表,可以结合图7理解其完整的预设列表。示例性的,图7示出了本申请实施例提供的一种联系人预设列表的示意图一,如图7所示,联系人的完整的预设列表中可以包括所有的联系人,以及一些系统预设的列表元素,例如上述介绍的“联系人”、“收藏联系人”,以及各个索引字母对应的列表元素等1000个列表元素。在实际实现过程中,预设列表中所具体包括的列表元素可以根据实际需求进行选择和设置,本申请实施例对此不做限制。For example, for a list of contact types, its complete preset list can be understood in conjunction with Figure 7. Exemplarily, Figure 7 shows a schematic diagram of a contact preset list provided in an embodiment of the present application. As shown in Figure 7, the complete preset list of contacts can include all contacts, as well as some system preset list elements, such as the "Contacts", "Favorite Contacts" introduced above, and 1,000 list elements corresponding to each index letter. In the actual implementation process, the list elements specifically included in the preset list can be selected and set according to actual needs, and the embodiment of the present application does not limit this.
示例性的,预设列表可以存储在智能手表的存储器中,当需要显示预设列表中的列表元素时,将所要显示的列表元素从智能手表的存储器加载至智能手表的内存中,进而发送给显示屏进行显示。Exemplarily, the preset list can be stored in the memory of the smart watch. When the list elements in the preset list need to be displayed, the list elements to be displayed are loaded from the memory of the smart watch to the internal memory of the smart watch, and then sent to the display screen for display.
本申请实施例中,第一列表元素可以是第一界面中所显示的第一个列表元素,也就是第一界面中可见列表的第一个列表元素。或者在其余可能的实现方式中,第一列表元素还可以是第一界面中所显示的最后一个列表元素,本申请实施例对此不做限制。In the embodiment of the present application, the first list element may be the first list element displayed in the first interface, that is, the first list element of the visible list in the first interface. Alternatively, in other possible implementations, the first list element may also be the last list element displayed in the first interface, which is not limited in the embodiment of the present application.
本申请实施例中,索引条可以用于指示列表跳转的位置,索引条可以是具有索引功能的一列或多列按顺序排列的多个索引元素,索引元素例如可以是数字、字母、笔画或音序等任意形式,本申请实施例对索引元素的形式不作具体限定。智能手表可以基于用户针对索引条中的索引元素的点击操作跳转到该点击操作指示的列表元素的位置。本申请实施例中,以索引条中的索引元素为字母进行示例性说明,该示例并不构成对本申请实施例的限制。In the embodiment of the present application, the index bar can be used to indicate the position of the list jump. The index bar can be a column or multiple columns of multiple index elements arranged in order with an index function. The index elements can be any form such as numbers, letters, strokes or phonetic sequences. The embodiment of the present application does not specifically limit the form of the index elements. The smart watch can jump to the position of the list element indicated by the click operation based on the user's click operation on the index element in the index bar. In the embodiment of the present application, the index elements in the index bar are illustrated as letters, which does not constitute a limitation on the embodiment of the present application.
S602:检测到作用于索引条上的列表跳转操作,列表跳转操作用于跳转至预设列表的第二列表元素。S602: A list jump operation on the index bar is detected, where the list jump operation is used to jump to a second list element of a preset list.
第二列表元素可以是列表跳转操作所指示的跳转位置所对应的列表元素。示例性的,可以结合图7和图8进行理解,图8示出了本申请实施例提供的一种列表界面示意图一。如图8所示的界面,该界面中的内容请参见图3的a所示,在此不再赘述。假设如图8显示的界面为第一界面,且假设如图8显示的界面中显示的列表元素在预设列表中的排列如图7所示,则第一列表元素为“联系人”对应的列表元素,且当智能手表检测到作用于索引条上索引“Z”801的列表跳转操作时,则第二列表元素例如可以是图7中索引“Z”这个字母本身所对应的列表元素,也就是图7中示意的第998个列表元素。或者第二列表元素例如也可以是图7中示意的第999个列表元素,也就是图7中索引“Z”这个字母下的多个联系人中,第一个联系人所对应的列表元素。或者再例如还可以是图7中索引“Z”这个字母下的任一联系人,对此本申请实施例不作具体限定。The second list element may be a list element corresponding to the jump position indicated by the list jump operation. Exemplarily, it can be understood in conjunction with FIG. 7 and FIG. 8, FIG. 8 shows a schematic diagram of a list interface provided by an embodiment of the present application. For the interface shown in FIG. 8, please refer to FIG. 3 a for the content of the interface, which will not be repeated here. Assuming that the interface shown in FIG. 8 is the first interface, and assuming that the arrangement of the list elements displayed in the interface shown in FIG. 8 in the preset list is shown in FIG. 7, the first list element is the list element corresponding to "Contact", and when the smart watch detects a list jump operation acting on the index "Z" 801 on the index bar, the second list element may be, for example, the list element corresponding to the letter "Z" in FIG. 7, that is, the 998th list element illustrated in FIG. 7. Or the second list element may also be, for example, the 999th list element illustrated in FIG. 7, that is, the list element corresponding to the first contact among the multiple contacts under the letter "Z" in FIG. 7. Or, for example, it may also be any contact under the letter "Z" in FIG. 7, which is not specifically limited in the embodiment of the present application.
本申请实施例中,当需要列表跳转到某个位置的时候,用户可以针对第一界面上显示的列表输入列表跳转操作。其中,列表跳转操作可以是针对索引条上特定字母的点击操作。In the embodiment of the present application, when the list needs to jump to a certain position, the user can input a list jump operation for the list displayed on the first interface, wherein the list jump operation can be a click operation for a specific letter on the index bar.
S603:响应于列表跳转操作,在显示屏中依次显示第一中间列表元素和第二中间列表元素,直至显示出第二界面;其中,第一中间列表元素为第一列表元素和第二列表元素之间靠近第一列表元素的一个或多个列表元素,第二中间列表元素为第一列表元素和第二列表元素之间靠近第二列表元素的一个或多个列表元素;第二界面中包括第二列表元素。S603: In response to a list jump operation, the first intermediate list element and the second intermediate list element are displayed in sequence on the display screen until a second interface is displayed; wherein the first intermediate list element is one or more list elements between the first list element and the second list element and close to the first list element, and the second intermediate list element is one or more list elements between the first list element and the second list element and close to the second list element; the second interface includes the second list element.
可能的实现中,响应于列表跳转操作,智能手表的第一界面中可以依次显示第一中间列表元素,第二中间列表元素,第二列表元素。In a possible implementation, in response to a list jump operation, the first interface of the smart watch may sequentially display a first middle list element, a second middle list element, and a second list element.
本申请实施例中,第一中间列表元素可以包括预设列表中与第一列表元素相邻的连续N个列表元素,第二中间列表元素可以包括预设列表中与第二列表元素相邻的连续M个列表元素,N和M均为大于0的整数。In an embodiment of the present application, the first intermediate list element may include N consecutive list elements adjacent to the first list element in a preset list, and the second intermediate list element may include M consecutive list elements adjacent to the second list element in the preset list, where N and M are both integers greater than 0.
示例性的,可以参照图7进行理解,假设图7中的“B”为上述介绍的第一列表元素,以及假设列表跳转操作是针对索引条上索引“Z”的点击操作,则第二列表元素例如可以为图7中的“Z”,同时假设N和M均为4。则参照图7,在第一列表元素和第二列表元素之间的,且靠近第一列表元素的联系人“白一”、联系人“白二”、联系人“白三”以及联系人“宾一”这4个连续的列表元素,即可以理解为当前示例中的第一中间列表元素。之后例如可以响应于列表跳转操作,智能手表可以依次显示这4个第一中间列表元素。Exemplarily, it can be understood with reference to FIG. 7 , assuming that “B” in FIG. 7 is the first list element described above, and assuming that the list jump operation is a click operation on the index “Z” on the index bar, then the second list element can be, for example, “Z” in FIG. 7 , and assuming that both N and M are 4. Referring to FIG. 7 , the four consecutive list elements of contact “Bai Yi”, contact “Bai Er”, contact “Bai San”, and contact “Bin Yi” between the first list element and the second list element and close to the first list element can be understood as the first intermediate list elements in the current example. Later, in response to the list jump operation, for example, the smart watch can display these four first intermediate list elements in sequence.
以及,在第一中间列表元素显示完成之后,再接着依次显示第二中间列表元素。参照图7,在第一列表元素和第二列表元素之间的,且靠近第二列表元素的“Y”、联系人“杨一”、联系人“游一”以及联系人“俞二”这4个连续的列表元素,即可以理解为当前示例中的第二中间列表元素。之后例如可以响应于列表跳转操作,智能手表在显示完第一中间列表元素之后紧接着依次显示这4个第二中间列表元素。And, after the first intermediate list element is displayed, the second intermediate list element is displayed in sequence. Referring to FIG. 7 , the four consecutive list elements "Y", contact "Yang Yi", contact "You Yi" and contact "Yu Er" between the first list element and the second list element and close to the second list element can be understood as the second intermediate list elements in the current example. Later, in response to a list jump operation, for example, the smart watch can display the four second intermediate list elements in sequence immediately after displaying the first intermediate list element.
以及,在第二中间列表元素显示完成之后,智能手表接着显示第二列表元素。And, after the display of the second intermediate list element is completed, the smart watch then displays the second list element.
上述示例介绍的是列表向下跳转的情形,下面再结合图7对列表向上跳转的情形进行示例性的介绍。如图7所示,假设图7中的联系人“张一”为上述介绍的第一列表元素,以及假设列表跳转操作是针对索引条上索引“B”的点击操作,则第二列表元素可以为图7中的“B”,同时假设N和M均为3。则参照图7,在第一列表元素和第二列表元素之间的,且靠近第一列表元素的“Z”、联系人“俞二”以及联系人“游一”这3个连续的列表元素,即可以理解为当前示例中的第一中间列表元素。之后例如可以响应于列表跳转操作,智能手表可以依次显示这3个第一中间列表元素。The above example introduces the situation where the list jumps downward. The following is an exemplary introduction to the situation where the list jumps upward in conjunction with Figure 7. As shown in Figure 7, assuming that the contact "Zhang Yi" in Figure 7 is the first list element introduced above, and assuming that the list jump operation is a click operation on the index "B" on the index bar, the second list element can be "B" in Figure 7, and assuming that N and M are both 3. Referring to Figure 7, the three consecutive list elements "Z", contact "Yu Er" and contact "You Yi" between the first list element and the second list element and close to the first list element can be understood as the first intermediate list elements in the current example. Later, in response to the list jump operation, for example, the smart watch can display these three first intermediate list elements in sequence.
以及,在第一中间列表元素显示完成之后,再接着依次显示第二中间列表元素。参照图7,在第一列表元素和第二列表元素之间的,且靠近第二列表元素的“白三”、联系人“白二”、以及联系人“白一”这3个连续的列表元素,即可以理解为当前示例中的第二中间列表元素。之后例如可以响应于列表跳转操作,智能手表在显示完第一中间列表元素之后紧接着依次显示这3个第二中间列表元素。And, after the first middle list element is displayed, the second middle list element is displayed in sequence. Referring to FIG. 7 , the three consecutive list elements "白三", contact "白二", and contact "白一" between the first list element and the second list element and close to the second list element can be understood as the second middle list element in the current example. Then, for example, in response to a list jump operation, the smartwatch can display the three second middle list elements in sequence immediately after displaying the first middle list element.
以及,在第二中间列表元素显示完成之后,智能手表接着显示第二列表元素。And, after the display of the second intermediate list element is completed, the smart watch then displays the second list element.
需要说明的是,依次显示的列表元素可以是从可穿戴设备的存储器中加载至可穿戴设备的内存中送显的预设列表中的列表元素。It should be noted that the list elements displayed in sequence may be list elements in a preset list loaded from the memory of the wearable device to the internal memory of the wearable device for display.
基于上述介绍可以确定的是,显示屏中显示第一界面,第一界面还可以包括部分或全部第一中间列表元素。当可穿戴设备检测到作用于第一界面的索引条上的列表跳转操作时,显示屏中的界面发生变化,也就是依次显示第一中间列表元素,第二中间列表元素,直至显示第二列表元素,此时显示屏中的界面可以是第二界面,也就是第二界面中包括第二列表元素,第二界面还可以包括部分或全部第二中间列表元素。Based on the above introduction, it can be determined that the first interface is displayed on the display screen, and the first interface may also include some or all of the first intermediate list elements. When the wearable device detects a list jump operation acting on the index bar of the first interface, the interface on the display screen changes, that is, the first intermediate list element, the second intermediate list element are displayed in sequence, until the second list element is displayed. At this time, the interface on the display screen may be the second interface, that is, the second interface includes the second list element, and the second interface may also include some or all of the second intermediate list elements.
下面对列表跳转中的第一界面和第二界面进行示例性说明。The following is an exemplary description of the first interface and the second interface in list jumping.
示例性的,以智能手表中的联系人列表为例,图9示出了本申请实施例提供的一种列表跳转前后的界面示意图一,如图9的a所示的界面,该界面可以是第一界面,该界面中可以包括联系人“甲一”对应的列表元素,联系人“甲二”对应的列表元素、联系人“姜一”对应的列表元素以及索引条。图9的a所示的界面中所包括的联系人,可以理解为索引“J”对应的联系人。Exemplarily, taking the contact list in a smartwatch as an example, FIG9 shows a schematic diagram of an interface before and after a list jump provided by an embodiment of the present application. The interface shown in a of FIG9 may be a first interface, which may include a list element corresponding to the contact "甲一", a list element corresponding to the contact "甲二", a list element corresponding to the contact "姜一", and an index bar. The contacts included in the interface shown in a of FIG9 may be understood as contacts corresponding to the index "J".
在如图9的a所示的界面中,假设智能手表检测到用户针对索引“S”的列表跳转操作,此时智能手表响应于列表跳转操作,控制列表跳转至索引“S”对应的位置。In the interface shown in a of FIG. 9 , it is assumed that the smart watch detects a list jump operation of the user for index “S”. At this time, the smart watch responds to the list jump operation and controls the list to jump to the position corresponding to index “S”.
则在当前示例中,当前界面上所显示的第一个列表元素,也就是联系人“甲一”对应的列表元素,例如可以是上述介绍的第一列表元素。以及跳转位置所对应的索引“S”这个字母本身所对应的列表元素,例如可以是上述介绍的第二列表元素。In the current example, the first list element displayed on the current interface, that is, the list element corresponding to the contact "甲一", can be, for example, the first list element introduced above. And the list element corresponding to the letter "S" corresponding to the index corresponding to the jump position can be, for example, the second list element introduced above.
由于第二列表元素在第一列表元素之后,因此此时列表向下跳转,在依次显示第一中间列表元素和第二中间列表元素之后,比如说智能手表可以显示如图9的b所示的界面,该界面可以理解为上述介绍的第二界面。参照图9的b所示的界面,索引“S”这个字母本身所对应的列表元素901显示在该界面中,其中列表元素901也就是当前实施例中的第二列表元素。Since the second list element is after the first list element, the list jumps downward at this time. After displaying the first middle list element and the second middle list element in sequence, for example, the smart watch can display the interface shown in FIG. 9 b, which can be understood as the second interface described above. Referring to the interface shown in FIG. 9 b, the list element 901 corresponding to the letter index "S" itself is displayed in the interface, wherein the list element 901 is the second list element in the current embodiment.
可以理解的是,列表向下跳转的过程中,第一列表元素、第一中间列表元素、第二中间列表元素以及第二列表元素依次向上滑动显示在显示屏的界面中,也就是列表向下跳转的过程实际为列表向上滑动的过程。It can be understood that, in the process of the list jumping downward, the first list element, the first middle list element, the second middle list element and the second list element slide upward in sequence and are displayed in the interface of the display screen, that is, the process of the list jumping downward is actually the process of the list sliding upward.
需要说明的是,第二列表元素显示在显示屏中之后,列表可以继续向上滑动,直至第二列表元素显示在显示屏的顶部。It should be noted that after the second list element is displayed on the display screen, the list may continue to slide upward until the second list element is displayed at the top of the display screen.
示例性的,在如图9的b所示的界面中,当索引“S”这个字母本身所对应的列表元素901(也就是第二列表元素)显示在显示屏中之后,列表继续向上滑动,直至联系人“冉一”对应的列表元素和联系人“冉二”对应的列表元素依次滑出显示屏也就是可见范围之外,而索引“S”这个字母本身所对应的列表元素901和该列表元素的后两个列表元素也依次向上滑动,直至索引“S”这个字母本身所对应的列表元素901显示在显示屏的顶部,显示屏显示如图9的c所示的界面。如9的c所示的界面,此时联系人“冉一”对应的列表元素和联系人“冉二”对应的列表元素已滑出显示屏也就是可见范围之外,索引“S”这个字母本身所对应的列表元素901显示在显示屏的顶部,联系人“石一”对应的列表元素和联系人“苏二”对应的列表元素也显示在显示屏中。此时,跳转结束,列表停止向上滑动。因此实现了从第一列表元素到第二列表元素的跳转,并且在跳转过程中会依次显示第一中间列表元素、第二中间列表元素以及第二列表元素,从而可以实现以滑动效果表现列表元素的跳转。For example, in the interface shown in FIG. 9 b, after the list element 901 (i.e., the second list element) corresponding to the index "S" itself is displayed on the display screen, the list continues to slide upward until the list element corresponding to the contact "Ran Yi" and the list element corresponding to the contact "Ran Er" slide out of the display screen, that is, outside the visible range, and the list element 901 corresponding to the index "S" itself and the last two list elements of the list element also slide upward in sequence until the list element 901 corresponding to the index "S" itself is displayed at the top of the display screen, and the display screen displays the interface shown in FIG. 9 c. In the interface shown in FIG. 9 c, at this time, the list element corresponding to the contact "Ran Yi" and the list element corresponding to the contact "Ran Er" have slid out of the display screen, that is, outside the visible range, the list element 901 corresponding to the index "S" itself is displayed at the top of the display screen, and the list element corresponding to the contact "Shi Yi" and the list element corresponding to the contact "Su Er" are also displayed on the display screen. At this time, the jump ends and the list stops sliding upward. Therefore, a jump from the first list element to the second list element is achieved, and during the jump, the first middle list element, the second middle list element and the second list element are displayed in sequence, so that the jump of the list elements can be achieved with a sliding effect.
示例性的,仍以智能手表中的联系人列表为例,图10示出了本申请实施例提供的一种列表跳转前后的界面示意图二,如图10的a所示的界面,与上述图9的a介绍的类似,在此不再赘述,该界面可以是第一界面。Exemplarily, still taking the contact list in a smart watch as an example, Figure 10 shows a second interface schematic diagram before and after a list jump provided in an embodiment of the present application. The interface shown in a of Figure 10 is similar to that introduced in a of Figure 9 above, and will not be repeated here. This interface can be the first interface.
在如图10的a所示的界面中,假设智能手表检测到用户针对索引H的列表跳转操作,此时智能手表响应于列表跳转操作,控制列表跳转至索引H对应的位置。In the interface shown in a of FIG. 10 , it is assumed that the smart watch detects a list jump operation of the user for index H. At this time, the smart watch responds to the list jump operation and controls the list to jump to the position corresponding to index H.
则在当前示例中,当前界面上所显示的第一个列表元素,也就是联系人“甲一”对应的列表元素,例如可以是上述介绍的第一列表元素。以及跳转位置所对应的索引“H”这个字母本身所对应的列表元素,例如可以是上述介绍的第二列表元素。In the current example, the first list element displayed on the current interface, that is, the list element corresponding to the contact "甲一", can be, for example, the first list element introduced above. And the list element corresponding to the letter "H" corresponding to the jump position can be, for example, the second list element introduced above.
由于第二列表元素在第一列表元素之前,因此此时列表向上跳转,跳转结束后智能手表可以显示如图10的b所示的界面,该界面可以是第二界面,索引“H”这个字母本身所对应的列表元素1001显示在该界面中,其中列表元素1001也就是当前实施例中的第二列表元素。因此实现了从第一列表元素到第二列表元素的跳转,并且在跳转过程中会依次显示第一中间列表元素、第二中间列表元素以及第二列表元素,从而可以实现以滑动效果表现列表元素的跳转。Since the second list element is before the first list element, the list jumps upward at this time. After the jump, the smartwatch can display the interface shown in FIG. 10 b, which can be the second interface. The list element 1001 corresponding to the letter index "H" itself is displayed in the interface, where the list element 1001 is the second list element in the current embodiment. Therefore, the jump from the first list element to the second list element is realized, and the first middle list element, the second middle list element and the second list element are displayed in sequence during the jump, so that the jump of the list elements can be realized with a sliding effect.
本申请实施例中,通过在显示屏中显示第一界面,第一界面中包括第一列表元素和索引条,第一列表元素为预设列表中的一个列表元素;在检测到作用于索引条上的列表跳转操作,列表跳转操作用于跳转至预设列表的第二列表元素;响应于列表跳转操作,在显示屏中依次显示第一中间列表元素和第二中间列表元素,直至显示出第二界面;其中,第一中间列表元素为第一列表元素和第二列表元素之间靠近第一列表元素的一个或多个列表元素,第二中间列表元素为预设列表中第一列表元素和第二列表元素之间靠近第二列表元素的一个或多个列表元素;第二界面中包括第二列表元素。这样在列表跳转过程中,除了跳转起始位置的第一列表元素和跳转目标位置的第二列表元素之外,智能手表可以依次显示预设列表中第一列表元素和第二列表元素之间的部分列表元素,以使得基于可穿戴设备的内存和硬件资源开销是可以实现待显示的列表元素加载的。且依次显示第一中间列表元素、第二中间列表元素以及第二列表元素,可以实现列表位置跳转过程中的列表滚动效果,从而提升用户体验。In an embodiment of the present application, a first interface is displayed on a display screen, the first interface includes a first list element and an index bar, and the first list element is a list element in a preset list; when a list jump operation acting on the index bar is detected, the list jump operation is used to jump to a second list element in the preset list; in response to the list jump operation, the first intermediate list element and the second intermediate list element are sequentially displayed on the display screen until the second interface is displayed; wherein the first intermediate list element is one or more list elements between the first list element and the second list element and close to the first list element, and the second intermediate list element is one or more list elements between the first list element and the second list element in the preset list and close to the second list element; the second interface includes the second list element. In this way, during the list jump process, in addition to the first list element at the jump start position and the second list element at the jump target position, the smart watch can sequentially display some list elements between the first list element and the second list element in the preset list, so that the list elements to be displayed can be loaded based on the memory and hardware resource overhead of the wearable device. And the first intermediate list element, the second intermediate list element and the second list element are sequentially displayed, so that the list scrolling effect during the list position jump process can be achieved, thereby improving the user experience.
在上述介绍的实施例的基础上,可以理解的是,要在可穿戴设备的屏幕中依次显示各个第一中间列表元素和各个第二中间列表元素,则需要首先确定各个中间列表元素,因此下面对确定中间列表元素的内部实现进行介绍。Based on the embodiments introduced above, it can be understood that in order to display each first intermediate list element and each second intermediate list element in sequence on the screen of the wearable device, it is necessary to first determine each intermediate list element. Therefore, the internal implementation of determining the intermediate list elements is introduced below.
在一种可能的实现中,在检测到作用于索引条上的列表跳转操作之后,本申请方法还可以包括:In a possible implementation, after detecting a list jump operation acting on an index bar, the method of the present application may further include:
根据第一列表元素在预设列表中的第一位置和第二列表元素在预设列表中的第二位置,确定列表跳转方向,列表跳转方向包括向上跳转和向下跳转;根据列表跳转方向,确定第一位置和第二位置的位置偏移值;根据列表跳转方向和位置偏移值,在预设列表中确定第一位置和第二位置之间的多个中间列表元素,中间列表元素包括第一中间列表元素和第二中间列表元素。According to the first position of the first list element in the preset list and the second position of the second list element in the preset list, a list jump direction is determined, and the list jump direction includes upward jump and downward jump; according to the list jump direction, a position offset value between the first position and the second position is determined; according to the list jump direction and the position offset value, a plurality of intermediate list elements between the first position and the second position are determined in the preset list, and the intermediate list elements include a first intermediate list element and a second intermediate list element.
在本申请实施例中,智能手表在检测到列表跳转操作的时候,获取第一界面上所显示的第一列表元素在预设列表中的第一位置,以及获取列表跳转操作所对应的第二列表元素在预设列表中的第二位置。In an embodiment of the present application, when the smart watch detects a list jump operation, it obtains the first position of the first list element displayed on the first interface in the preset list, and obtains the second position of the second list element corresponding to the list jump operation in the preset list.
此处首先对列表元素在预设列表中的位置进行说明。在一种可能的实现方式中,列表元素在预设列表中的位置,例如可以是列表元素在预设列表中的顺序编号。其中顺序编号可以指示该列表元素是预设列表中的第几个列表元素。Here, the position of the list element in the preset list is first described. In a possible implementation, the position of the list element in the preset list can be, for example, the sequence number of the list element in the preset list. The sequence number can indicate the number of the list element in the preset list.
则本申请实施例中,第一列表元素在预设列表中的第一位置可以为第一列表元素在预设列表中的顺序编号,以及第二列表元素预设列表中的第二位置可以为第二列表元素在预设列表中的排序。In an embodiment of the present application, the first position of the first list element in the preset list can be the sequential number of the first list element in the preset list, and the second position of the second list element in the preset list can be the order of the second list element in the preset list.
例如可以结合图7进行理解,如图7所示,假设预设列表中共有1000个列表元素,其中每个列表元素都对应有自己的顺序编号。假设第一列表元素是图7中所示的“阿一”对应的列表元素,则可以确定第一列表元素为预设列表中的第3个列表元素,因此可以确定当前示例中的第一位置为3。For example, it can be understood in conjunction with FIG. 7. As shown in FIG. 7, it is assumed that there are 1000 list elements in the preset list, and each list element has its own sequence number. Assuming that the first list element is the list element corresponding to "阿一" shown in FIG. 7, it can be determined that the first list element is the third list element in the preset list, and therefore it can be determined that the first position in the current example is 3.
以及假设第二列表元素是图7中的“张一”对应的列表元素,则可以确定第二列表元素为预设列表中的第999个列表元素,因此可以确定当前示例中的第二位置为999。And assuming that the second list element is the list element corresponding to “张一” in FIG. 7 , it can be determined that the second list element is the 999th list element in the preset list, and therefore it can be determined that the second position in the current example is 999.
在本申请实施例中,列表元素的位置实际上标识的是列表元素在预设列表中的排序。因此,如果第二位置大于第一位置的话,也就是第二位置的顺序在第一位置的顺序之后的话,则可以说明列表跳转方向是向下跳转。如果第二位置小于第一位置的话,也就是第二位置的顺序在第一位置的顺序之前的话,则可以说明列表跳转方向是向上跳转。In the embodiment of the present application, the position of the list element actually identifies the order of the list element in the preset list. Therefore, if the second position is greater than the first position, that is, the order of the second position is after the order of the first position, it can be explained that the list jump direction is to jump downward. If the second position is less than the first position, that is, the order of the second position is before the order of the first position, it can be explained that the list jump direction is to jump upward.
在确定列表跳转方向之后,可以根据列表跳转方向来确定第一位置和第二位置之间的位置偏移值。After the list jump direction is determined, a position offset value between the first position and the second position may be determined according to the list jump direction.
在一种可能的实现方式中,若列表跳转方向是向下跳转,则可以将第二位置减去第一位置的差值,确定为位置偏移值。或者,若列表跳转方向是向上跳转,则可以将第一位置减去第二位置的差值,确定为位置偏移值。In a possible implementation, if the list jump direction is downward, the difference between the second position and the first position can be determined as the position offset value. Alternatively, if the list jump direction is upward, the difference between the first position and the second position can be determined as the position offset value.
或者可以理解,本申请实施例中的位置偏移值可以是第一位置和第二位置之间的差值的绝对值。Alternatively, it can be understood that the position offset value in the embodiment of the present application may be the absolute value of the difference between the first position and the second position.
示例性的,假设第一位置为355,第二位置为777,因为第二位置大于第一位置,则可以说明列表跳转方向为向下跳转,此时的位置偏移值为第二位置与第一位置之间的差值422;假设第一位置为777,第二位置为355,因为第二位置小于第一位置,则可以说明列表跳转方向为向上跳转,此时的位置偏移值为第一位置与第二位置之间的差值422。For example, assuming that the first position is 355 and the second position is 777, because the second position is greater than the first position, it can be said that the list jump direction is a downward jump, and the position offset value at this time is the difference between the second position and the first position, which is 422; assuming that the first position is 777 and the second position is 355, because the second position is less than the first position, it can be said that the list jump direction is an upward jump, and the position offset value at this time is the difference between the first position and the second position, which is 422.
在确定列表跳转方向和位置偏移值之后,就可以根据列表跳转方向和位置偏移值,在预设列表中确定第一位置和第二位置之间的多个中间列表元素,中间列表元素包括第一中间列表元素和第二中间列表元素。After determining the list jump direction and the position offset value, multiple intermediate list elements between the first position and the second position can be determined in the preset list according to the list jump direction and the position offset value, and the intermediate list elements include the first intermediate list element and the second intermediate list element.
可以理解的是,列表跳转操作是要指示将显示屏中显示的列表元素从第一位置跳转到第二位置。但是因为第一位置和第二位置之间的列表元素可能是非常多的,由于智能手表的内存资源有限,可能会出现无法将这些列表元素全部加载到内存中进而不能完整显示,或者全部加载到内存后引起系统卡顿等问题。因此本申请实施例中在预设列表中确定的第一位置和第二位置之间的中间列表元素的数量小于或等于预设数量。其中预设数量的具体数值可以根据实际需求进行选择。It is understandable that the list jump operation is to instruct the list elements displayed in the display screen to jump from the first position to the second position. However, because there may be a lot of list elements between the first position and the second position, due to the limited memory resources of the smart watch, it may be impossible to load all of these list elements into the memory and thus fail to display them completely, or cause the system to freeze after all of them are loaded into the memory. Therefore, in the embodiment of the present application, the number of intermediate list elements between the first position and the second position determined in the preset list is less than or equal to the preset number. The specific value of the preset number can be selected according to actual needs.
在本申请实施例中,确定的中间列表元素是有数量限制的,也就是说在第一位置和第二位置之间只选择了一部分的列表元素作为中间列表元素,通过选择一部分的列表元素,可以保证基于智能手表的内存等硬件条件,可以实现对多个中间列表元素的显示,进而可以基于多个中间列表元素来实现滑动效果。In the embodiment of the present application, the number of determined intermediate list elements is limited, that is, only a part of the list elements between the first position and the second position are selected as intermediate list elements. By selecting a part of the list elements, it can be ensured that based on the hardware conditions such as the memory of the smart watch, multiple intermediate list elements can be displayed, and then a sliding effect can be achieved based on multiple intermediate list elements.
在本申请实施例中,比如说可以将第一位置和第二位置之间,与第一位置所邻近的多个列表元素(也就是第一中间列表元素),以及与第二位置所邻近的多个列表元素(也就是第二中间列表元素),确定为中间列表元素。In an embodiment of the present application, for example, between the first position and the second position, multiple list elements adjacent to the first position (that is, first intermediate list elements) and multiple list elements adjacent to the second position (that is, second intermediate list elements) can be determined as intermediate list elements.
示例性的,例如第一位置为3,第二位置为999,也就是第一列表元素和第二列表元素之间的列表元素较多的场景,则例如可以在第3个列表元素和第999个列表元素之间确定多个中间列表元素。Exemplarily, for example, if the first position is 3 and the second position is 999, that is, there are many list elements between the first list element and the second list element, then multiple intermediate list elements can be determined between the 3rd list element and the 999th list element.
示例性的,例如第一位置为3,第二位置为7,也就是第一列表元素和第二列表元素之间的列表元素较少的场景,假设第一列表元素和第二列表元素之间的列表元素的数量本身就小于预设数量,则例如可以将第3个列表元素至第7个列表元素之间列表元素,确定为中间列表元素。具体确定中间列表元素的方式将在后续步骤中详细说明,在此不作赘述。For example, if the first position is 3 and the second position is 7, that is, there are fewer list elements between the first list element and the second list element, assuming that the number of list elements between the first list element and the second list element is less than the preset number, then for example, the list elements between the third list element and the seventh list element can be determined as the middle list elements. The specific method of determining the middle list elements will be described in detail in subsequent steps and will not be repeated here.
本申请实施例中,在检测到作用于索引条上的列表跳转操作之后,根据第一列表元素在预设列表中的第一位置和第二列表元素在预设列表中的第二位置,确定列表跳转方向,列表跳转方向包括向上跳转和向下跳转;根据列表跳转方向,确定第一位置和第二位置的位置偏移值;根据列表跳转方向和位置偏移值,在预设列表中确定第一位置和第二位置之间的多个中间列表元素,中间列表元素包括第一中间列表元素和第二中间列表元素。这样通过列表跳转方向和位置偏移值通过选择预设列表中一部分的列表元素为中间列表元素,可以保证基于智能手表的内存等硬件条件,可以实现对多个中间列表元素的显示,进而可以基于多个中间列表元素来实现滑动效果。In an embodiment of the present application, after a list jump operation acting on an index bar is detected, the list jump direction is determined according to the first position of the first list element in the preset list and the second position of the second list element in the preset list, and the list jump direction includes upward jump and downward jump; according to the list jump direction, the position offset value of the first position and the second position is determined; according to the list jump direction and the position offset value, multiple intermediate list elements between the first position and the second position are determined in the preset list, and the intermediate list elements include the first intermediate list element and the second intermediate list element. In this way, by selecting a part of the list elements in the preset list as intermediate list elements through the list jump direction and the position offset value, it can be ensured that based on the hardware conditions such as the memory of the smart watch, the display of multiple intermediate list elements can be realized, and then the sliding effect can be realized based on the multiple intermediate list elements.
下面对确定中间列表元素的实现方式进行介绍。The following is an introduction to the implementation method of determining the middle list elements.
在一种可能的实现中,当列表跳转方向为向下跳转时,上述根据列表跳转方向和位置偏移值,在预设列表中确定第一位置和第二位置之间的多个中间列表元素可以包括:In a possible implementation, when the list jump direction is downward jump, determining the plurality of intermediate list elements between the first position and the second position in the preset list according to the list jump direction and the position offset value may include:
若位置偏移值大于预设数量,则在预设列表中,将第一位置之后的第一数量个列表元素、以及第二位置之前的第二数量个列表元素,确定为中间列表元素;If the position offset value is greater than a preset number, in the preset list, a first number of list elements after the first position and a second number of list elements before the second position are determined as middle list elements;
若位置偏移值小于或等于预设数量,则在预设列表中,将第一位置和第二位置之间的多个列表元素,确定为中间列表元素。If the position offset value is less than or equal to a preset number, then in the preset list, a plurality of list elements between the first position and the second position are determined as middle list elements.
其中,第一数量和第二数量可以相同也可以不同,本申请实施例对此不作具体限定。The first quantity and the second quantity may be the same or different, and this embodiment of the present application does not specifically limit this.
可能的实现中,当位置偏移值大于预设数量时,也就是第一列表元素和第二列表元素之间的列表元素较多时,在第一列表元素和第二列表元素之间选择部分列表元素,以使得最终确定的中间列表元素小于或等于预设数量。In a possible implementation, when the position offset value is greater than a preset number, that is, when there are more list elements between the first list element and the second list element, some list elements are selected between the first list element and the second list element so that the final determined intermediate list elements are less than or equal to the preset number.
以及,为了保证滚动效果表现为从第一列表元素连续的向下滚动到了第二列表元素,本申请实施例中具体是选择了第一位置之后的连续的第一数量个列表元素(也就是第一中间列表元素),以及第二位置之前的连续的第二数量个列表元素(也就是第二中间列表元素)。在实际实现过程中,第一数量和第二数量的具体数值可以根据实际需求进行选择。Furthermore, in order to ensure that the scrolling effect is expressed as continuously scrolling down from the first list element to the second list element, in the embodiment of the present application, a first number of continuous list elements after the first position (that is, the first middle list element) and a second number of continuous list elements before the second position (that is, the second middle list element) are specifically selected. In the actual implementation process, the specific values of the first number and the second number can be selected according to actual needs.
例如可以结合图11进行理解,示例性的,图11示出了本申请实施例提供的一种联系人预设列表的示意图二。如图11所示,该预设列表中可以包括1000个列表元素。假设当前示例中,预设数量为6,第一数量和第二数量都是3。For example, it can be understood in conjunction with FIG. 11. For example, FIG. 11 shows a schematic diagram 2 of a preset list of contacts provided in an embodiment of the present application. As shown in FIG. 11, the preset list may include 1000 list elements. Assuming that in the current example, the preset number is 6, and the first number and the second number are both 3.
那么参照图11,假设第一位置N是图11中的1,第二位置M是图11中所示的998,也就是说当前可以从第1个列表元素的位置跳转到第998个列表元素的位置。Then referring to FIG. 11 , assuming that the first position N is 1 in FIG. 11 , and the second position M is 998 as shown in FIG. 11 , that is, it is currently possible to jump from the position of the 1st list element to the position of the 998th list element.
因为图11的示例中,第二位置M是大于第一位置N的,因此可以确定当前情况下,列表跳转方向是向下跳转。并且当前示例中的位置偏移值是997,其是大于预设数量6的。Because in the example of FIG11 , the second position M is greater than the first position N, it can be determined that in the current case, the list jump direction is downward jump. And the position offset value in the current example is 997, which is greater than the preset number 6.
因此可以在预设列表中,将第一位置N之后的3个列表元素,也就是第N+1个列表元素、第N+2个列表元素、第N+3个列表元素,以及第二位置M之前的3个列表元素,也就是第M-1个列表元素、第M-2个列表元素、第M-3个列表元素,确定为中间列表元素。其中,第一位置N之后的3个列表元素,也就是第N+1个列表元素、第N+2个列表元素以及第N+3个列表元素为第一中间列表元素,第二位置M之前的3个列表元素,也就是第M-1个列表元素、第M-2个列表元素以及第M-3个列表元素为第二中间列表元素。Therefore, in the preset list, the three list elements after the first position N, that is, the N+1th list element, the N+2th list element, and the N+3th list element, and the three list elements before the second position M, that is, the M-1th list element, the M-2th list element, and the M-3th list element, can be determined as intermediate list elements. Among them, the three list elements after the first position N, that is, the N+1th list element, the N+2th list element, and the N+3th list element are the first intermediate list elements, and the three list elements before the second position M, that is, the M-1th list element, the M-2th list element, and the M-3th list element are the second intermediate list elements.
在图11的示例中,确定的6个中间列表元素也就包括:第2个列表元素、第3个列表元素、第4个列表元素、第995个列表元素、第996个列表元素、第997个列表元素。In the example of FIG. 11 , the determined six middle list elements include: the second list element, the third list element, the fourth list element, the 995th list element, the 996th list element, and the 997th list element.
可能的实现中,当位置偏移值小于或等于预设数量时,也就是第一列表元素和第二列表元素之间的列表元素较少时,此时可以在预设列表中,将第一位置和第二位置之间的多个列表元素,确定为中间列表元素。In a possible implementation, when the position offset value is less than or equal to a preset number, that is, when there are fewer list elements between the first list element and the second list element, multiple list elements between the first position and the second position can be determined as intermediate list elements in the preset list.
例如可以结合图12进行理解,示例性的,图12示出了本申请实施例提供的一种联系人预设列表的示意图三。如图12所示,该预设列表中可以包括1000个列表元素。假设当前示例中,预设数量为6。For example, it can be understood in conjunction with Figure 12. For example, Figure 12 shows a schematic diagram 3 of a contact preset list provided in an embodiment of the present application. As shown in Figure 12, the preset list may include 1000 list elements. Assume that in the current example, the preset number is 6.
那么参照图12,假设第一位置N是图12中的1,第二位置M是图12中所示的5,也就是说当前可以从第1个列表元素的位置跳转到第5个列表元素的位置。Then referring to FIG. 12 , assuming that the first position N is 1 in FIG. 12 , and the second position M is 5 as shown in FIG. 12 , that is, it is currently possible to jump from the position of the 1st list element to the position of the 5th list element.
因为图12的示例中,第二位置M是大于第一位置N的,因此可以确定当前情况下,列表跳转方向是向下跳转。并且当前示例中的位置偏移值是4,其是小于预设数量6的。Because in the example of FIG12 , the second position M is greater than the first position N, it can be determined that in the current case, the list jump direction is downward jump. And the position offset value in the current example is 4, which is less than the preset number 6.
因此可以在预设列表中,将第一位置N和第二位置M之间的列表元素,确定为中间列表元素。Therefore, in the preset list, the list elements between the first position N and the second position M can be determined as middle list elements.
在图12的示例中,确定的多个中间列表元素也就包括:第2个列表元素、第3个列表元素、第4个列表元素。In the example of FIG. 12 , the determined multiple middle list elements include: the second list element, the third list element, and the fourth list element.
需要说明的是,针对第一列表元素和第二列表元素之间的列表元素较少时的情况,可以将中间列表元素均分,得到第一中间列表元素和第二中间列表元素。例如中间列表元素有4个,则靠近第一列表元素的2个中间列表元素为第一中间列表元素,靠近第二列表元素的2个中间列表元素为第二中间列表元素。或者也可以由中间列表元素随机确定第一中间列表元素和第二中间列表元素,例如中间列表元素有4个,则靠近第一列表元素的3个中间列表元素为第一中间列表元素,靠近第二列表元素的1个中间列表元素为第二中间列表元素。在实际实现过程中,针对第一列表元素和第二列表元素之间的列表元素较少时的情况,第一中间列表元素和第二中间列表元素的具体数量可以根据实际需求进行选择。It should be noted that, for the case where there are fewer list elements between the first list element and the second list element, the middle list elements can be divided equally to obtain the first middle list element and the second middle list element. For example, if there are 4 middle list elements, then the 2 middle list elements close to the first list element are the first middle list elements, and the 2 middle list elements close to the second list element are the second middle list elements. Alternatively, the first middle list element and the second middle list element can also be randomly determined by the middle list elements. For example, if there are 4 middle list elements, then the 3 middle list elements close to the first list element are the first middle list element, and the 1 middle list element close to the second list element is the second middle list element. In the actual implementation process, for the case where there are fewer list elements between the first list element and the second list element, the specific number of the first middle list elements and the second middle list elements can be selected according to actual needs.
本申请实施例中,在列表跳转方向为向下跳转时,若位置偏移值大于预设数量,则在预设列表中,将第一位置之后的第一数量个列表元素、以及第二位置之前的第二数量个列表元素,确定为中间列表元素;若位置偏移值小于或等于预设数量,则在预设列表中,将第一位置和第二位置之间的多个列表元素,确定为中间列表元素。当第一位置和第二位置之间的列表元素较少时确定第一位置至第二位置之间列表元素为中间列表元素;当第一位置和第二位置之间的列表元素较多时,将第一位置和第二位置之间,第一位置下方的连续多个列表元素和第二位置上方的连续多个列表元素确定为中间列表元素,使得后续对目标列表元素依次显示时,可以产生列表元素从第一位置开始向下滚动,经过了连续多个列表元素的滚动之后,最终滚动到了第二列表元素显示出来的效果。同时这个滚动效果可以只加载少量的列表元素,因此基于可穿戴设备的内存和硬件条件是可以实现的。In the embodiment of the present application, when the list jump direction is downward jump, if the position offset value is greater than the preset number, then in the preset list, the first number of list elements after the first position and the second number of list elements before the second position are determined as middle list elements; if the position offset value is less than or equal to the preset number, then in the preset list, multiple list elements between the first position and the second position are determined as middle list elements. When there are fewer list elements between the first position and the second position, the list elements between the first position and the second position are determined as middle list elements; when there are more list elements between the first position and the second position, the continuous multiple list elements below the first position and the continuous multiple list elements above the second position between the first position and the second position are determined as middle list elements, so that when the target list elements are displayed in sequence later, the list elements can be scrolled down from the first position, and after scrolling through multiple continuous list elements, they are finally scrolled to the second list element for display. At the same time, this scrolling effect can only load a small number of list elements, so it can be achieved based on the memory and hardware conditions of the wearable device.
在另一种可能的实现中,当列表跳转方向为向上跳转时,上述根据列表跳转方向和位置偏移值,在预设列表中确定第一位置和第二位置之间的多个中间列表元素可以包括:In another possible implementation, when the list jump direction is an upward jump, determining a plurality of intermediate list elements between the first position and the second position in the preset list according to the list jump direction and the position offset value may include:
若位置偏移值大于预设数量,则在预设列表中,将第一位置之前的第三数量个列表元素、以及第二位置之后的第四数量个列表元素,确定为中间列表元素;If the position offset value is greater than a preset number, in the preset list, a third number of list elements before the first position and a fourth number of list elements after the second position are determined as middle list elements;
若位置偏移值小于或等于预设数量,则在预设列表中,将第一位置和第二位置之间的多个列表元素,确定为中间列表元素。If the position offset value is less than or equal to a preset number, then in the preset list, a plurality of list elements between the first position and the second position are determined as middle list elements.
其中,第三数量和第四数量可以相同也可以不同,本申请实施例对此不作具体限定。The third quantity and the fourth quantity may be the same or different, and this embodiment of the present application does not specifically limit this.
可能的实现中,当位置偏移值大于预设数量时,也就是第一列表元素和第二列表元素之间的列表元素较多时,可以在第一列表元素和第二列表元素之间选择部分列表元素,以使得最终确定的中间列表元素小于或等于预设数量。In a possible implementation, when the position offset value is greater than a preset number, that is, when there are more list elements between the first list element and the second list element, some list elements can be selected between the first list element and the second list element so that the final determined intermediate list elements are less than or equal to the preset number.
以及,为了保证滚动效果表现为从第一列表元素连续的向上滚动到了第二列表元素,本申请实施例中具体是选择了第一位置之前的连续的第三数量个列表元素(也就是第一中间列表元素),以及第二位置之后的连续的第四数量个列表元素(也就是第二中间列表元素)。在实际实现过程中,第三数量和第四数量的具体数值可以根据实际需求进行选择。Furthermore, in order to ensure that the scrolling effect is presented as continuously scrolling upward from the first list element to the second list element, in the embodiment of the present application, the third number of continuous list elements before the first position (that is, the first middle list element) and the fourth number of continuous list elements after the second position (that is, the second middle list element) are specifically selected. In the actual implementation process, the specific values of the third number and the fourth number can be selected according to actual needs.
例如可以结合图13进行理解,示例性的,图13示出了本申请实施例提供的一种联系人预设列表的示意图四。如图13所示,该预设列表中可以包括1000个列表元素的预设列表。假设当前示例中,预设数量为6,第三数量和第四数量都是3。For example, it can be understood in conjunction with FIG. 13. For example, FIG. 13 shows a schematic diagram 4 of a preset list of contacts provided in an embodiment of the present application. As shown in FIG. 13, the preset list may include a preset list of 1000 list elements. Assuming that in the current example, the preset number is 6, and the third number and the fourth number are both 3.
那么参照图13,假设第一位置N是图13中的998,第二位置M是图13中所示的1,也就是说当前可以从第998个列表元素的位置跳转到第1个列表元素的位置。Then referring to FIG. 13 , assuming that the first position N is 998 in FIG. 13 , and the second position M is 1 as shown in FIG. 13 , that is, it is currently possible to jump from the position of the 998th list element to the position of the 1st list element.
因为图13的示例中,第二位置M是小于第一位置N的,因此可以确定当前情况下,列表跳转方向是向上跳转。并且当前示例中的位置偏移值是997,其是大于预设数量6的。Because in the example of FIG13 , the second position M is smaller than the first position N, it can be determined that in the current case, the list jump direction is upward jump. And the position offset value in the current example is 997, which is greater than the preset number 6.
因此可以在预设列表中,将第一位置N之前的3个列表元素,也就是第N-1个列表元素、第N-2个列表元素、第N-3个列表元素,以及第二位置M之后的3个列表元素,也就是第M+1个列表元素、第M+2个列表元素、第M+3个列表元素,确定为中间列表元素。其中,第一位置N之前的3个列表元素,也就是第N-1个列表元素、第N-2个列表元素以及第N-3个列表元素为第一中间列表元素,第二位置M之后的3个列表元素,也就是第M+1个列表元素、第M+2个列表元素以及第M+3个列表元素为第二中间列表元素。Therefore, in the preset list, the three list elements before the first position N, that is, the N-1th list element, the N-2th list element, and the N-3th list element, and the three list elements after the second position M, that is, the M+1th list element, the M+2th list element, and the M+3th list element, can be determined as intermediate list elements. Among them, the three list elements before the first position N, that is, the N-1th list element, the N-2th list element, and the N-3th list element are the first intermediate list elements, and the three list elements after the second position M, that is, the M+1th list element, the M+2th list element, and the M+3th list element are the second intermediate list elements.
在图13的示例中,确定的6个中间列表元素也就包括:第997个列表元素、第996个列表元素、第995个列表元素、第4个列表元素、第3个列表元素、第2个列表元素。In the example of FIG. 13 , the determined six middle list elements include: the 997th list element, the 996th list element, the 995th list element, the 4th list element, the 3rd list element, and the 2nd list element.
可能的实现中,当位置偏移值小于或等于预设数量时,也就是第一列表元素和第二列表元素之间的列表元素较少时,此时可以在预设列表中,将第一位置和第二位置之间的多个列表元素,确定为中间列表元素。In a possible implementation, when the position offset value is less than or equal to a preset number, that is, when there are fewer list elements between the first list element and the second list element, multiple list elements between the first position and the second position can be determined as intermediate list elements in the preset list.
例如可以结合图14进行理解,示例性的,图14示出了本申请实施例提供的一种联系人预设列表的示意图五。如图14所示,该预设列表中可以包括1000个列表元素的预设列表。假设当前示例中,预设数量为6。For example, it can be understood in conjunction with Figure 14. For example, Figure 14 shows a schematic diagram 5 of a contact preset list provided in an embodiment of the present application. As shown in Figure 14, the preset list may include a preset list of 1000 list elements. Assume that in the current example, the preset number is 6.
那么参照图14,假设第一位置N是图14中的998,第二位置M是图14中所示的995,也就是说当前可以从第998个列表元素的位置跳转到第995个列表元素的位置。Then referring to FIG. 14 , assuming that the first position N is 998 in FIG. 14 , and the second position M is 995 as shown in FIG. 14 , that is, it is currently possible to jump from the position of the 998th list element to the position of the 995th list element.
因为图14的示例中,第二位置M是小于第一位置N的,因此可以确定当前情况下,列表跳转方向是向上跳转。并且当前示例中的位置偏移值是3,其是小于预设数量6的。Because in the example of FIG14 , the second position M is smaller than the first position N, it can be determined that in the current case, the list jump direction is upward jump. And the position offset value in the current example is 3, which is smaller than the preset number 6.
因此可以在预设列表中,将第一位置N和第二位置M之间的列表元素,确定为中间列表元素。Therefore, in the preset list, the list elements between the first position N and the second position M can be determined as middle list elements.
在图14的示例中,确定的多个中间列表元素也就包括:第997个列表元素、第996个列表元素。In the example of FIG. 14 , the determined multiple middle list elements include: the 997th list element and the 996th list element.
需要说明的是,针对第一列表元素和第二列表元素之间的列表元素较少时的情况,可以将中间列表元素均分,得到第一中间列表元素和第二中间列表元素。例如中间列表元素有4个,则靠近第一列表元素的2个中间列表元素为第一中间列表元素,靠近第二列表元素的2个中间列表元素为第二中间列表元素。或者也可以由中间列表元素随机确定第一中间列表元素和第二中间列表元素,例如中间列表元素有4个,则靠近第一列表元素的3个中间列表元素为第一中间列表元素,靠近第二列表元素的1个中间列表元素为第二中间列表元素。在实际实现过程中,针对第一列表元素和第二列表元素之间的列表元素较少时的情况,第一中间列表元素和第二中间列表元素的具体数量可以根据实际需求进行选择。It should be noted that, for the case where there are fewer list elements between the first list element and the second list element, the middle list elements can be divided equally to obtain the first middle list element and the second middle list element. For example, if there are 4 middle list elements, then the 2 middle list elements close to the first list element are the first middle list elements, and the 2 middle list elements close to the second list element are the second middle list elements. Alternatively, the first middle list element and the second middle list element can also be randomly determined by the middle list elements. For example, if there are 4 middle list elements, then the 3 middle list elements close to the first list element are the first middle list element, and the 1 middle list element close to the second list element is the second middle list element. In the actual implementation process, for the case where there are fewer list elements between the first list element and the second list element, the specific number of the first middle list elements and the second middle list elements can be selected according to actual needs.
本申请实施例中,在列表跳转方向为向下跳转时,若位置偏移值大于预设数量,则在预设列表中,将第一位置之前的第三数量个列表元素、以及第二位置之后的第四数量个列表元素,确定为中间列表元素;若位置偏移值小于或等于预设数量,则在预设列表中,将第一位置和第二位置之间的多个列表元素,确定为中间列表元素。当第一位置和第二位置之间的列表元素较少时确定第一位置至第二位置之间列表元素为中间列表元素;当第一位置和第二位置之间的列表元素较多时,将第一位置和第二位置之间,第一位置上方的连续多个列表元素和第二位置下方的连续多个列表元素确定为中间列表元素,使得后续对目标列表元素依次显示时,可以产生列表元素从第一位置开始向上滚动,经过了连续多个列表元素的滚动之后,最终滚动到了第二列表元素显示出来的效果。同时这个滚动效果可以只加载少量的列表元素,因此基于可穿戴设备的内存和硬件条件是可以实现的。In the embodiment of the present application, when the list jump direction is downward jump, if the position offset value is greater than the preset number, then in the preset list, the third number of list elements before the first position and the fourth number of list elements after the second position are determined as middle list elements; if the position offset value is less than or equal to the preset number, then in the preset list, multiple list elements between the first position and the second position are determined as middle list elements. When there are fewer list elements between the first position and the second position, the list elements between the first position and the second position are determined as middle list elements; when there are more list elements between the first position and the second position, the continuous multiple list elements above the first position and the continuous multiple list elements below the second position between the first position and the second position are determined as middle list elements, so that when the target list elements are displayed in sequence later, the list elements can be scrolled up from the first position, and after scrolling through multiple continuous list elements, they are finally scrolled to the second list element for display. At the same time, this scrolling effect can only load a small number of list elements, so it can be achieved based on the memory and hardware conditions of the wearable device.
在一种可能的实现中,上述在显示屏中依次显示第一中间列表元素和第二中间列表元素,直至显示出第二界面,可以包括:In a possible implementation, sequentially displaying the first middle list element and the second middle list element on the display screen until the second interface is displayed may include:
S1:将多个目标列表元素加载至可穿戴设备的内存中,目标列表元素包括第一中间列表元素、第二中间列表元素以及第二列表元素;并确定各目标列表元素的坐标信息。S1: Load multiple target list elements into the memory of the wearable device, the target list elements including a first intermediate list element, a second intermediate list element and a second list element; and determine the coordinate information of each target list element.
在本申请实施例中,针对待显示的列表元素,需要加载至内存中,才能进行显示。因此在确定多个目标列表元素之后,就可以将多个目标列表元素加载至可穿戴设备的内存中。同时,在将列表元素加载至内存中的时候,可以确定列表元素的坐标信息。In the embodiment of the present application, the list elements to be displayed need to be loaded into the memory before they can be displayed. Therefore, after determining multiple target list elements, the multiple target list elements can be loaded into the memory of the wearable device. At the same time, when the list elements are loaded into the memory, the coordinate information of the list elements can be determined.
在本申请实施例中,列表元素的坐标信息可以包括纵坐标和横坐标,其中纵坐标可以是列表元素的顶部边的中心点所对应的纵坐标,以及横坐标可以是列表元素的顶部边的中心点所对应的横坐标。示例性的,图15示出了本申请实施例提供的一种列表界面示意图二。比如说在图15的示例中,联系人“阿一”对应的列表元素的坐标信息,其纵坐标就是图15中所示的y2,横坐标就是图15中所示的x1。In an embodiment of the present application, the coordinate information of the list element may include a ordinate and a horizontal coordinate, wherein the ordinate may be the ordinate corresponding to the center point of the top edge of the list element, and the horizontal coordinate may be the horizontal coordinate corresponding to the center point of the top edge of the list element. Exemplarily, FIG15 shows a second schematic diagram of a list interface provided by an embodiment of the present application. For example, in the example of FIG15 , the coordinate information of the list element corresponding to the contact "阿一" has a ordinate of y 2 shown in FIG15 , and a horizontal coordinate of x 1 shown in FIG15 .
或者,还可以将列表元素的底部边的中心点所对应的纵坐标,作为列表元素的纵坐标,那么比如说在图15的示例中,联系人“阿一”对应的列表元素的坐标信息,其纵坐标就是图15中所示的y1。Alternatively, the ordinate corresponding to the center point of the bottom edge of the list element may be used as the ordinate of the list element. For example, in the example of FIG. 15 , the coordinate information of the list element corresponding to the contact “阿一” has the ordinate y 1 shown in FIG. 15 .
以列表元素的纵坐标,是列表元素的顶部边的中心点所对应的纵坐标y2为例。下面结合图15对确定列表元素的坐标信息的实现方式进行介绍。如图15所示,假设“联系人”是最顶部的列表元素,并且该列表元素是全部显示的,则“联系人”对应的列表元素的纵坐标就为0。或者,如果顶部的列表元素只显示一部分,那么顶部的列表元素的纵坐标就是负数。Take the ordinate of the list element, which is the ordinate y2 corresponding to the center point of the top edge of the list element, as an example. The implementation method of determining the coordinate information of the list element is introduced below in conjunction with FIG15. As shown in FIG15, assuming that "Contacts" is the top list element and the list element is fully displayed, the ordinate of the list element corresponding to "Contacts" is 0. Alternatively, if only a portion of the top list element is displayed, the ordinate of the top list element is a negative number.
同时,针对每个列表元素中记录有其高度,假设如图15所示的界面中“联系人”和“收藏联系人”对应的列表元素的高度均为1厘米(centimeter,cm),则“收藏联系人”对应的列表元素的纵坐标,就是“联系人”对应的列表元素的纵坐标与“联系人”对应的列表元素的高度的总和,也就是1cm。联系人“阿一”对应的列表元素的纵坐标y2,就是“收藏联系人”对应的列表元素和“收藏联系人”对应的列表元素的高度的总和,也就是2cm。At the same time, the height of each list element is recorded. Assuming that the height of the list elements corresponding to "Contacts" and "Favorites" in the interface shown in FIG15 is 1 centimeter (cm), the ordinate of the list element corresponding to "Favorites" is the sum of the ordinate of the list element corresponding to "Contacts" and the height of the list element corresponding to "Contacts", that is, 1 cm. The ordinate y 2 of the list element corresponding to the contact "Ayi" is the sum of the heights of the list element corresponding to "Favorites" and the list element corresponding to "Favorites", that is, 2 cm.
因此可以理解的是,针对新加载至内存中的列表元素,在确定其坐标信息的时候,就可以根据内存中的最后一个列表元素的坐标信息,并且结合内存中最后一个列表元素的高度,来确定新加载至内存中的列表元素的坐标信息。Therefore, it can be understood that when determining the coordinate information of the list element newly loaded into the memory, the coordinate information of the last list element in the memory can be used to determine the coordinate information of the list element newly loaded into the memory in combination with the height of the last list element in the memory.
可以理解的是,各目标列表元素的坐标信息可以随着列表的滑动发生变化。例如在如图15所示的界面中,假设列表向上滑动1cm,使得“收藏联系人”的纵坐标为0,则联系人“阿一”对应的列表元素纵坐标y2也就相应的减少1cm。且此时“联系人”这一列表元素已滑出可见列表范围,智能手表可以将“联系人”这一列表元素从智能手表的内存中删除。It is understandable that the coordinate information of each target list element can change as the list slides. For example, in the interface shown in FIG15 , assuming that the list slides up by 1 cm, so that the ordinate of “Favorite Contacts” is 0, the ordinate y2 of the list element corresponding to the contact “Ayi” is correspondingly reduced by 1 cm. At this time, the list element “Contacts” has slid out of the visible list range, and the smart watch can delete the list element “Contacts” from the memory of the smart watch.
基于上述介绍可以确定的是,多个目标列表元素中的部分第一中间列表元素可以是显示在第一界面中的列表元素,可以理解的是,显示在第一界面中的列表元素是已经加载在内存中的,因此在将各目标列表元素加载至内存中的时候,只需要将未加载至内存中的目标列表元素加载至内存中即可。Based on the above introduction, it can be determined that some of the first intermediate list elements among the multiple target list elements can be the list elements displayed in the first interface. It can be understood that the list elements displayed in the first interface have been loaded into the memory. Therefore, when loading each target list element into the memory, it is only necessary to load the target list elements that have not been loaded into the memory into the memory.
例如可以结合图16进行理解,示例性的,图16示出了本申请实施例提供的一种列表向下跳转时加载的列表元素示意图。在图16的示例中,假设列表跳转方向是向下跳转,同时假设确定的第一中间列表元素包括图16中所示的:“甲二”、“姜一”、“姜二”,第二中间列表元素包括图16中所示的:“S”、“沈一”、“盛三”。图16中的“甲一”为第一列表元素,“T”为第二列表元素。For example, it can be understood in conjunction with Figure 16. For example, Figure 16 shows a schematic diagram of list elements loaded when a list jumps downward provided in an embodiment of the present application. In the example of Figure 16, it is assumed that the list jump direction is to jump downward, and it is assumed that the determined first intermediate list elements include those shown in Figure 16: "甲二", "姜一", "姜二", and the second intermediate list elements include those shown in Figure 16: "S", "沈一", "盛三". "甲一" in Figure 16 is the first list element, and "T" is the second list element.
结合图16可以确定的是,其中“甲一”、“甲二”、“姜一”这三个列表元素是已经显示在显示屏中的,也就是说这三个列表元素已经加载至内存中了,那么可以确定未加载至内存中的目标列表元素就包括:第一中间列表元素:“姜二”,第二中间列表元素:“S”、“沈一”、“盛三”以及第二列表元素“T”这5个列表元素。In combination with Figure 16, it can be determined that the three list elements "甲一", "甲二" and "姜一" have been displayed on the display screen, that is to say, these three list elements have been loaded into the memory. Then it can be determined that the target list elements that have not been loaded into the memory include: the first middle list element: "姜二", the second middle list element: "S", "沈一", "盛三" and the second list element "T".
同时,当前的列表跳转方向是向下跳转,因此可以按照这5个列表元素在预设列表中序号从小到大的位置顺序,依次加载至内存中。同时可以理解的是,加载至内存中的列表元素都是可以进行显示的,只是因为屏幕大小有限,新加载的列表元素暂时处于不可见区域,等后续列表元素移动之后,就可以显示在显示屏中了。At the same time, the current list jump direction is downward, so the five list elements can be loaded into the memory in order from small to large in the preset list. At the same time, it can be understood that the list elements loaded into the memory can be displayed, but because the screen size is limited, the newly loaded list elements are temporarily in the invisible area, and after the subsequent list elements are moved, they can be displayed on the display.
再例如可以结合图17进行理解,示例性的,图17示出了本申请实施例提供的一种列表向上跳转时加载的列表元素示意图。在图17的示例中,假设列表跳转方向是向上跳转,同时假设确定的第一中间列表元素包括图17中所示的:“吉三”、“吉一”、“J”,第二中间列表元素包括图17中所示的:“胡三”、“胡一”、“韩二”。图17中的“甲一”为第一列表元素,“H”为第二列表元素。Another example can be understood in conjunction with FIG. 17. illustratively, FIG. 17 shows a schematic diagram of list elements loaded when a list jumps upward provided in an embodiment of the present application. In the example of FIG. 17, it is assumed that the list jump direction is to jump upward, and it is assumed that the determined first intermediate list elements include those shown in FIG. 17: "Ji San", "Ji Yi", and "J", and the second intermediate list elements include those shown in FIG. 17: "Hu San", "Hu Yi", and "Han Er". "Jia Yi" in FIG. 17 is the first list element, and "H" is the second list element.
结合图17可以确定的是,其中“甲一”这个列表元素是已经显示在显示屏中的,也就是说这个列表元素已经加载至内存中了,那么可以确定未加载至内存中的目标列表元素就包括:第一中间列表元素:“吉三”、“吉一”、“J”,第二中间列表元素:“胡三”、“胡一”、“韩二”以及第二列表元素“H”这7个列表元素。In combination with Figure 17, it can be determined that the list element "甲一" has been displayed on the display screen, that is, this list element has been loaded into the memory, then it can be determined that the target list elements that have not been loaded into the memory include: the first middle list element: "吉三", "吉一", "J", the second middle list element: "胡三", "胡一", "韩二" and the second list element "H". These 7 list elements.
同时,当前的列表跳转方向是向上跳转,因此可以按照这7个列表元素在预设列表中从大到小的位置顺序,依次加载至内存中。同时可以理解的是,加载至内存中的列表元素都是可以进行显示的,只是因为屏幕大小有限,新加载的列表元素暂时处于不可见区域,等后续列表元素移动之后,就可以显示在显示屏中了。At the same time, the current list jump direction is upward, so the 7 list elements can be loaded into the memory in order from large to small in the preset list. At the same time, it can be understood that the list elements loaded into the memory can be displayed, but because the screen size is limited, the newly loaded list elements are temporarily in the invisible area, and after the subsequent list elements are moved, they can be displayed on the display.
基于上述介绍可以确定的是,可以根据可穿戴设备的内存中已加载的目标列表元素,在目标列表元素中确定未加载至内存中的第一中间列表元素;根据预设列表中列表元素的顺序,将未加载至内存中的第一中间列表元素,依次加载至内存中。Based on the above introduction, it can be determined that the first intermediate list elements that have not been loaded into the memory can be determined in the target list elements according to the target list elements loaded in the memory of the wearable device; according to the order of the list elements in the preset list, the first intermediate list elements that have not been loaded into the memory are loaded into the memory in sequence.
本申请实施例中,根据可穿戴设备的内存中已加载的目标列表元素,确定未加载至内存中的目标列表元素;根据预设列表中列表元素的顺序,将未加载至内存中的中间列表元素以及第二列表元素,依次加载至内存中。确定目标列表元素后,有些目标列表元素已加载在可穿戴设备的内存中,可以不用再次加载,只需加载未加载至内存中的目标列表元素,以减少可穿戴设备的硬件资源开销。In the embodiment of the present application, the target list elements that have not been loaded into the memory are determined according to the target list elements that have been loaded into the memory of the wearable device; the middle list elements that have not been loaded into the memory and the second list elements are sequentially loaded into the memory according to the order of the list elements in the preset list. After determining the target list elements, some target list elements have been loaded into the memory of the wearable device and do not need to be loaded again. Only the target list elements that have not been loaded into the memory need to be loaded, so as to reduce the hardware resource overhead of the wearable device.
S2:根据第一列表元素的坐标信息和第二列表元素的坐标信息,确定跳转距离。S2: Determine the jump distance according to the coordinate information of the first list element and the coordinate information of the second list element.
其中,跳转距离为第一列表元素,多个第一中间列表元素,多个第二中间列表元素,以及第二列表元素顺序组成的待显示的列表中第一列表元素的坐标信息和第二列表元素的坐标信息的差值的绝对值。此处的坐标信息的差值,具体可以指纵坐标的差值。The jump distance is the absolute value of the difference between the coordinate information of the first list element and the coordinate information of the second list element in the list to be displayed, which is composed of the first list element, multiple first intermediate list elements, multiple second intermediate list elements, and the second list element in sequence. The difference in coordinate information here can specifically refer to the difference in ordinate.
示例性的,列表向下跳转加载的列表元素可以如图16所示,第一列表元素为联系人“甲一”对应的列表元素,第二列表元素为索引字母“T”对应的列表元素,则跳转距离为索引字母“T”对应的列表元素的纵坐标减联系人“甲一”对应的列表元素的纵坐标得到的值。Exemplarily, the list elements loaded by the list jumping downward can be as shown in Figure 16, where the first list element is the list element corresponding to the contact "甲一", and the second list element is the list element corresponding to the index letter "T". The jump distance is the value obtained by subtracting the vertical coordinate of the list element corresponding to the index letter "T" from the vertical coordinate of the list element corresponding to the contact "甲一".
示例性的,列表向上跳转加载的列表元素可以如图17所示,第一列表元素为联系人“甲一”对应的列表元素,第二列表元素为索引字母“H”对应的列表元素,则跳转距离为联系人“甲一”对应的列表元素的纵坐标减索引字母“H”对应的列表元素的纵坐标得到的值。Exemplarily, the list elements loaded by the list jumping upward can be as shown in Figure 17, where the first list element is the list element corresponding to the contact "甲一", and the second list element is the list element corresponding to the index letter "H". The jump distance is the value obtained by subtracting the vertical coordinate of the list element corresponding to the contact "甲一" from the vertical coordinate of the list element corresponding to the index letter "H".
S3:根据跳转距离,在显示屏中依次显示各目标列表元素。S3: Displaying each target list element in sequence on the display screen according to the jump distance.
在确定跳转距离之后,可能的实现中,将跳转距离划分成多段,使第一列表元素,多个第一中间列表元素,多个第二中间列表元素,以及第二列表元素顺序组成的待显示的列表一段一段进行滑动,待显示的列表的滑动也就是该列表中列表元素的移动。跳转距离划分的段数越多,则每段滑动距离越小,越小的滑动距离可以使得待显示的列表中各列表元素的移动更加平滑。在滑动的过程中,第一列表元素,多个第一中间列表元素,多个第二中间列表元素,以及第二列表元素会依次显示在显示屏中,针对显示后滑动到显示屏以外,也就是可见列表范围以外的列表元素,可穿戴设备将其从内存中删除。After determining the jump distance, in a possible implementation, the jump distance is divided into multiple segments, so that the list to be displayed, which is composed of the first list element, multiple first intermediate list elements, multiple second intermediate list elements, and the second list element in sequence, slides one segment at a time. The sliding of the list to be displayed is the movement of the list elements in the list. The more segments the jump distance is divided into, the smaller the sliding distance of each segment is. The smaller the sliding distance, the smoother the movement of each list element in the list to be displayed. During the sliding process, the first list element, multiple first intermediate list elements, multiple second intermediate list elements, and the second list element will be displayed in sequence on the display screen. For the list elements that slide outside the display screen after display, that is, outside the visible list range, the wearable device will delete them from the memory.
本申请实施例中,通过将第一列表元素,多个第一中间列表元素,多个第二中间列表元素,以及第二列表元素加载至可穿戴设备的内存中,以拼接成待显示的列表,在这个待显示的列表中仅包括预设列表中的少量列表元素,且将第一列表元素和第二列表元素拼接在了一个顺序展示的列表中。之后再根据第一列表元素的坐标信息和第二列表元素的坐标信息,确定跳转距离,并根据跳转距离,在显示屏中依次显示各目标列表元素,从而可以有效的在显示屏中表现出从第一列表元素开始滑动,经过一些中间列表元素之后,滑动至第二列表元素的效果。In an embodiment of the present application, a first list element, a plurality of first intermediate list elements, a plurality of second intermediate list elements, and a second list element are loaded into the memory of a wearable device to be spliced into a list to be displayed, in which only a small number of list elements in a preset list are included in the list to be displayed, and the first list element and the second list element are spliced into a list displayed sequentially. Then, the jump distance is determined based on the coordinate information of the first list element and the coordinate information of the second list element, and each target list element is displayed in sequence on the display screen based on the jump distance, so that the effect of sliding from the first list element, passing through some intermediate list elements, and then sliding to the second list element can be effectively displayed on the display screen.
在一种可能的实现中,上述步骤S3可以包括:In a possible implementation, the above step S3 may include:
将跳转距离划分为多段,得到多段单次移动距离;根据列表跳转方向,将各目标列表元素的坐标信息移动第一段单次移动距离,得到各目标列表元素的移动后的坐标信息;获取显示屏所对应的可见纵坐标范围;将移动后的坐标信息满足可见纵坐标范围对应的第一条件的目标列表元素,按照移动后的坐标信息显示在显示屏中,并将移动后的坐标信息不满足第一条件的目标列表元素从内存中移除;重复执行根据列表跳转方向将各目标列表元素的坐标信息移动下一段单次移动距离,并根据移动后的坐标信息显示或移除目标列表元素的操作,直至第二列表元素完全显示在显示屏中。The jump distance is divided into multiple segments to obtain multiple single movement distances; according to the list jump direction, the coordinate information of each target list element is moved by the first single movement distance to obtain the coordinate information of each target list element after the movement; the visible vertical coordinate range corresponding to the display screen is obtained; the target list elements whose coordinate information after the movement meets the first condition corresponding to the visible vertical coordinate range are displayed on the display screen according to the coordinate information after the movement, and the target list elements whose coordinate information after the movement does not meet the first condition are removed from the memory; the operation of repeatedly moving the coordinate information of each target list element by the next single movement distance according to the list jump direction, and displaying or removing the target list elements according to the coordinate information after the movement, is repeated until the second list element is completely displayed on the display screen.
其中,可见纵坐标范围可以是列表高度和列表宽度内的可见列表对应的纵坐标范围,可见纵坐标范围可以对应有第一端点值和第二端点值,第二端点值大于第一端点值。The visible vertical coordinate range may be a vertical coordinate range corresponding to a visible list within a list height and a list width, and the visible vertical coordinate range may correspond to a first endpoint value and a second endpoint value, and the second endpoint value is greater than the first endpoint value.
本申请实施例中,第一端点值、第二端点值可以是显示屏的上下边缘对应的坐标,第二端点值大于第一端点值。本申请实施例以第一端点值为显示屏的上边缘对应的坐标,第二端点值为显示屏的下边缘对应的坐标为例进行示例说明,该示例并不构成对本申请实施例的限定。In the embodiment of the present application, the first endpoint value and the second endpoint value may be the coordinates corresponding to the upper and lower edges of the display screen, and the second endpoint value is greater than the first endpoint value. The embodiment of the present application is described by taking the first endpoint value as the coordinates corresponding to the upper edge of the display screen and the second endpoint value as the coordinates corresponding to the lower edge of the display screen as an example, and the example does not constitute a limitation on the embodiment of the present application.
本申请实施例中,坐标信息还可以包括目标列表元素的下边缘对应的第一纵坐标值以及目标列表元素的上边缘对应的第二纵坐标值。其中,目标列表元素的上边缘对应的第二纵坐标值,可以是目标列表元素的顶部边的中心点所对应的纵坐标,目标列表元素的下边缘对应的第一纵坐标值,可以是目标列表元素的底部边的中心点所对应的纵坐标。In the embodiment of the present application, the coordinate information may also include a first ordinate value corresponding to the lower edge of the target list element and a second ordinate value corresponding to the upper edge of the target list element. The second ordinate value corresponding to the upper edge of the target list element may be the ordinate corresponding to the center point of the top edge of the target list element, and the first ordinate value corresponding to the lower edge of the target list element may be the ordinate corresponding to the center point of the bottom edge of the target list element.
可以理解的是,第一纵坐标值和第二纵坐标值的差值,实际上就是目标列表元素的高度。It can be understood that the difference between the first ordinate value and the second ordinate value is actually the height of the target list element.
示例性的,针对y轴垂直向下为正方向的坐标系,比如说如图15所示的坐标系中,假设用y1表示第一纵坐标值,用y2表示第二纵坐标值,那么可以确定y1=y2+d。再比如,针对y轴垂直向上为正方向的坐标系,假设用y1表示第一纵坐标值,用y2表示第二纵坐标值,那么可以确定y1=y2-d。再比如,针对y轴垂直向上为正方向的坐标系,假设用y1表示第二纵坐标值,用y2表示第一纵坐标值,那么可以确定y2=y1-d。For example, for a coordinate system in which the y-axis is vertically downward as the positive direction, for example, in the coordinate system shown in FIG15 , assuming that y 1 represents the first ordinate value and y 2 represents the second ordinate value, then y 1 =y 2 +d can be determined. For another example, for a coordinate system in which the y-axis is vertically upward as the positive direction, assuming that y 1 represents the first ordinate value and y 2 represents the second ordinate value, then y 1 =y 2 -d can be determined. For another example, for a coordinate system in which the y-axis is vertically upward as the positive direction, assuming that y 1 represents the second ordinate value and y 2 represents the first ordinate value, then y 2 =y 1 -d can be determined.
在实际实现过程中,具体是采用第一纵坐标值y1来作为目标列表元素的纵坐标,还是采用第二纵坐标值y2来指示目标列表元素的纵坐标,其可以根据实际需求进行选择。In the actual implementation process, whether to use the first ordinate value y1 as the ordinate of the target list element or to use the second ordinate value y2 to indicate the ordinate of the target list element can be selected according to actual needs.
可能的实现中,将跳转距离划分为多段,得到多段单次移动距离。在具体划分时,比如说可以将跳转距离等分的划分为多段,比如说以50个像素为单位,划分得到多段单次移动距离,每一段的移动距离都是50个像素。或者,还可以将跳转距离不等分的划分为多段,以得到多段单次移动距离。In a possible implementation, the jump distance is divided into multiple segments to obtain multiple single movement distances. In the specific division, for example, the jump distance can be equally divided into multiple segments, for example, 50 pixels as a unit, to obtain multiple single movement distances, each of which has a movement distance of 50 pixels. Alternatively, the jump distance can be unequally divided into multiple segments to obtain multiple single movement distances.
本申请实施例中对跳转距离的划分,以及每一段单次移动距离的具体长度均不做限制,其可以根据实际需求进行选择。可以理解的是,若单次移动距离比较小,那么列表所表现出的滚动效果就表现的比较流畅。若单次移动距离比较大,那么列表所表现出的滚动效果就比较跳跃。In the embodiment of the present application, there is no restriction on the division of the jump distance and the specific length of each single moving distance, which can be selected according to actual needs. It is understandable that if the single moving distance is relatively small, the scrolling effect of the list will be relatively smooth. If the single moving distance is relatively large, the scrolling effect of the list will be relatively jumpy.
可以理解的是,针对每一段的单次移动距离都是要依次完成移动的,下面首先针对第一段单次移动距离进行介绍。It is understandable that the movement of each single moving distance must be completed in sequence. The following first introduces the first single moving distance.
在一种可能的实现方式中,当第二位置大于第一位置,也就是列表向下跳转时,将各个目标列表元素向上移动,可以实现向下跳转的效果,因此可以将各目标列表元素首先向上移动第一段单次移动距离,各目标列表元素的第一纵坐标值以及第二纵坐标值均减去第一段单次移动距离,从而得到各目标列表元素的移动后的第一纵坐标值以及第二纵坐标值。In one possible implementation, when the second position is greater than the first position, that is, when the list jumps downward, moving each target list element upward can achieve the effect of jumping downward. Therefore, each target list element can be first moved upward by a first single moving distance, and the first ordinate value and the second ordinate value of each target list element are both subtracted from the first single moving distance to obtain the first ordinate value and the second ordinate value of each target list element after moving.
或者,当第二位置小于第一位置,也就是列表向上跳转时,将各个目标列表元素向下移动,可以实现向上跳转的效果,因此可以将各目标列表元素首先向下移动第一段单次移动距离,各目标列表元素的第一纵坐标值以及第二纵坐标值均加上第一段单次移动距离,从而得到各目标列表元素的移动后的纵坐标。Alternatively, when the second position is smaller than the first position, that is, when the list jumps upward, moving each target list element downward can achieve the effect of jumping upward. Therefore, each target list element can be first moved downward by the first single moving distance, and the first ordinate value and the second ordinate value of each target list element are added to the first single moving distance to obtain the moved ordinate of each target list element.
无论是什么移动方向,在确定各个目标列表元素的移动后的纵坐标也就是第二纵坐标值之后,可以确定移动后的目标列表元素的坐标信息是否满足第一条件。Regardless of the moving direction, after determining the vertical coordinate of each target list element after the move, that is, the second vertical coordinate value, it can be determined whether the coordinate information of the target list element after the move meets the first condition.
示例性的,移动后的坐标信息满足第一条件的目标列表元素,也就是移动后的第一纵坐标值大于可见纵坐标范围的第一端点值(下边缘在显示屏的顶部以下),且第二纵坐标值小于可见纵坐标范围的第二端点值(上边缘在显示屏的底部以上)的目标列表元素,也就是移动之后仍然显示在显示屏中的列表元素,或者还可以是移动之后新显示在显示屏中的列表元素。针对这部分目标列表元素,可以按照移动后的坐标信息,将目标列表元素显示在显示屏中。Exemplarily, the target list elements whose coordinate information after movement satisfies the first condition, that is, the target list elements whose first ordinate value after movement is greater than the first endpoint value of the visible ordinate range (the lower edge is below the top of the display screen), and whose second ordinate value is less than the second endpoint value of the visible ordinate range (the upper edge is above the bottom of the display screen), are the list elements that are still displayed on the display screen after movement, or can also be the list elements that are newly displayed on the display screen after movement. For these target list elements, the target list elements can be displayed on the display screen according to the coordinate information after movement.
以及,移动后的坐标信息不满足第一条件的目标列表元素,也就是移动后的第一纵坐标值小于或等于可见纵坐标范围的第一端点值(下边缘在显示屏的顶部以上)的目标列表元素,或者第二纵坐标值大于或等于可见纵坐标范围的第二端点值(上边缘在显示屏的底部以下)的目标列表元素,也就是移动之后被顶出了显示屏的列表元素。针对这部分目标列表元素,将其从内存中移除。在第一段单次移动距离移动完成之后,各个目标列表元素也获得了新的坐标信息,则可以继续执行移动下一段单次移动距离,并根据移动后的坐标信息显示或移除目标列表元素的操作,直至最后一段单次移动距离对应的移动完成,第二列表元素完全显示在显示屏中。And, the target list elements whose coordinate information after movement does not meet the first condition, that is, the target list elements whose first ordinate value after movement is less than or equal to the first endpoint value of the visible ordinate range (the lower edge is above the top of the display screen), or the target list elements whose second ordinate value is greater than or equal to the second endpoint value of the visible ordinate range (the upper edge is below the bottom of the display screen), that is, the list elements that are pushed out of the display screen after movement. For these target list elements, they are removed from the memory. After the first single moving distance is completed, each target list element also obtains new coordinate information, then the operation of moving the next single moving distance can be continued, and the operation of displaying or removing the target list elements according to the coordinate information after the move can be performed until the movement corresponding to the last single moving distance is completed and the second list element is completely displayed on the display screen.
因为本申请实施例中是将第一列表元素和第二列表元素之间的跳转距离划分为了多段单次移动距离,因此在最后一段单次移动距离移动完成之后,第二列表元素就会显示在显示屏中了。Because the jump distance between the first list element and the second list element is divided into multiple single movement distances in the embodiment of the present application, the second list element will be displayed on the display screen after the last single movement distance is completed.
示例性的,图18示出了本申请实施例提供的一种列表向下跳转过程中依次显示列表元素的示意图。Exemplarily, FIG18 shows a schematic diagram of displaying list elements in sequence during a downward jump of a list provided in an embodiment of the present application.
在图18的示例中,如图18的a所示,当可穿戴设备检测到用户针对索引“T”的点击操作后,可穿戴设备可以确定如下列表元素:“甲一”、“甲二”、“姜一”、“姜二”、“S”、“沈一”、“盛三”、“T”。其中的“甲一”为第一列表元素,“T”为第二列表元素,剩余的为中间列表元素。之后可以将上述第一列表元素,中间列表元素,以及第二列表元素加载至可穿戴设备的内存中。在尚未移动各个上述各列表元素的时候,其显示状态如图18中的a所示,“甲一”、“甲二”、“姜一”这3个列表元素已经显示在显示屏中,“姜二”、“S”、“沈一”、“盛三”、“T”这5个列表元素位于不可见区域。In the example of FIG. 18 , as shown in a of FIG. 18 , after the wearable device detects the user's click operation on the index "T", the wearable device can determine the following list elements: "甲一", "甲二", "姜一", "姜二", "S", "沈一", "盛三", and "T". Among them, "甲一" is the first list element, "T" is the second list element, and the rest are middle list elements. Afterwards, the above-mentioned first list element, middle list element, and second list element can be loaded into the memory of the wearable device. When each of the above-mentioned list elements has not been moved, its display status is shown in a of FIG. 18 , and the three list elements "甲一", "甲二", and "姜一" have been displayed on the display screen, and the five list elements "姜二", "S", "沈一", "盛三", and "T" are located in the invisible area.
以及,假设显示屏所对应的可见纵坐标范围的第一端点值为0,第二端点值为列表高度s,则本申请实施例中列表元素可见的条件为:上边缘对应的第二纵坐标值大于0,下边缘对应的第一纵坐标值小于s。Also, assuming that the first endpoint value of the visible vertical coordinate range corresponding to the display screen is 0, and the second endpoint value is the list height s, then the condition for the visibility of the list elements in the embodiment of the present application is: the second vertical coordinate value corresponding to the upper edge is greater than 0, and the first vertical coordinate value corresponding to the lower edge is less than s.
假设第二列表元素的纵坐标减第一列表元素的纵坐标得到的值为跳转距离d,将跳转距离d分为n段,得到n段单次移动距离D1、D2、D3……Dn。Assuming that the value obtained by subtracting the ordinate of the first list element from the ordinate of the second list element is the jump distance d, the jump distance d is divided into n segments to obtain n segments of single movement distances D 1 , D 2 , D 3 . . . D n .
在图18的a所示的图中,假设第一列表元素“甲一”的第二纵坐标值为0,且第一段单次移动距离D1等于第一列表元素的高度。之后将上述第一列表元素,各中间列表元素,以及第二列表元素的坐标信息均向上移动第一段单次移动距离D1,也就是上述第一列表元素,各中间列表元素,以及第二列表元素的第一纵坐标值和第二纵坐标值均减第一段单次移动距离D1,得到如图18的b所示的图。In the diagram shown in a of FIG18 , it is assumed that the second ordinate value of the first list element “甲一” is 0, and the first single movement distance D 1 is equal to the height of the first list element. Then, the coordinate information of the first list element, each middle list element, and the second list element are all moved upward by the first single movement distance D 1 , that is, the first ordinate value and the second ordinate value of the first list element, each middle list element, and the second list element are all subtracted by the first single movement distance D 1 , and the diagram shown in b of FIG18 is obtained.
此时,联系人“甲一”对应的列表元素第二纵坐标值为-D1,小于0,且联系人“甲一”对应的列表元素的第二纵坐标值-D1与联系人“甲一”对应的列表元素的高度的总和为0,也就是联系人“甲一”对应的列表元素的第一纵坐标值为0,那么可以确定联系人“甲一”对应的列表元素已移出可见纵坐标范围。因此,可穿戴设备将联系人“甲一”对应的列表元素从内存中移除。联系人“甲二”对应的列表元素的也上移D1,其第二纵坐标值变为0,也就是联系人”甲二”对应的列表元素变成了可见列表中的第一个列表元素。At this time, the second ordinate value of the list element corresponding to the contact "甲一" is -D 1 , which is less than 0, and the sum of the second ordinate value -D 1 of the list element corresponding to the contact "甲一" and the height of the list element corresponding to the contact "甲一" is 0, that is, the first ordinate value of the list element corresponding to the contact "甲一" is 0, so it can be determined that the list element corresponding to the contact "甲一" has been moved out of the visible ordinate range. Therefore, the wearable device removes the list element corresponding to the contact "甲一" from the memory. The list element corresponding to the contact "甲二" also moves up by D 1 , and its second ordinate value becomes 0, that is, the list element corresponding to the contact "甲二" becomes the first list element in the visible list.
以及,在图18的a所示的图中,假设联系人“姜二”对应的列表元素的第二纵坐标值为列表高度s,在向上移动第一段单次移动距离D1后。在如图18的b所示的图中,联系人“姜二”对应的列表元素的第二纵坐标值变为列表高度s减第一段单次移动距离D1得到的值,该值小于s,因此,联系人“姜二”对应的列表元素由不可见区域移动到了可见列表中,参照图18的b所示,联系人“姜二”对应的列表元素显示在了显示屏中。以及其他不可见区域中的目标列表元素也依次上移第一段单次移动距离D1。And, in the diagram shown in a of FIG18 , it is assumed that the second ordinate value of the list element corresponding to the contact “Jiang Er” is the list height s, after moving upward by the first single moving distance D 1. In the diagram shown in b of FIG18 , the second ordinate value of the list element corresponding to the contact “Jiang Er” becomes the value obtained by subtracting the first single moving distance D 1 from the list height s, which is less than s. Therefore, the list element corresponding to the contact “Jiang Er” is moved from the invisible area to the visible list. As shown in b of FIG18 , the list element corresponding to the contact “Jiang Er” is displayed on the display screen. And the target list elements in other invisible areas are also moved upward by the first single moving distance D 1 in turn.
可以理解的是,本申请实施例是以第一段单次移动距离D1等于第一列表元素的高度为例进行的说明,实际实现过程中,第一段单次移动距离D1也可以小于或者大于第一列表元素的高度。It can be understood that the embodiment of the present application is explained by taking the first single movement distance D1 being equal to the height of the first list element as an example. In the actual implementation process, the first single movement distance D1 may also be less than or greater than the height of the first list element.
示例性的,当第一段单次移动距离D1小于第一列表元素的高度时,则联系人“甲一”对应的列表元素的第二纵坐标值为-D1,小于0,已经超出了可见范围。但联系人“甲一”对应的列表元素第一纵坐标值仍然是大于0的,因此联系人“甲一”对应的列表元素依然在可见列表中。For example, when the first single movement distance D1 is less than the height of the first list element, the second ordinate value of the list element corresponding to the contact "甲一" is -D1 , which is less than 0 and has exceeded the visible range. However, the first ordinate value of the list element corresponding to the contact "甲一" is still greater than 0, so the list element corresponding to the contact "甲一" is still in the visible list.
示例性的,当第一段单次移动距离D1大于第一列表元素的高度时,则联系人“甲一”对应的列表元素的第二纵坐标值为-D1,小于0。同时,因为第一段单次移动距离D1大于第一列表元素的高度,因此联系人“甲一”对应的列表元素的第一纵坐标值也是小于0的,即联系人“甲一”对应的列表元素已移出可见纵坐标范围,因此,可穿戴设备可以将联系人“甲一”对应的列表元素从内存中移除。Exemplarily, when the first single moving distance D1 is greater than the height of the first list element, the second ordinate value of the list element corresponding to the contact "甲一" is -D1 , which is less than 0. At the same time, because the first single moving distance D1 is greater than the height of the first list element, the first ordinate value of the list element corresponding to the contact "甲一" is also less than 0, that is, the list element corresponding to the contact "甲一" has been moved out of the visible ordinate range, so the wearable device can remove the list element corresponding to the contact "甲一" from the memory.
可选的,将跳转距离分段时,可以尽可能使得单次移动距离更小一些,这样,第一列表元素,各中间列表元素,以及第二列表元素每次移动的距离较小,可以使得列表的滚动效果更加平滑,从而提升用户体验。Optionally, when the jump distance is segmented, the single movement distance can be made as small as possible, so that the first list element, each middle list element, and the second list element move a smaller distance each time, which can make the scrolling effect of the list smoother, thereby improving the user experience.
在上述介绍的第一段单次移动距离移动完成之后,类似的,继续将可穿戴设备的内存中的各中间列表元素,以及第二列表元素的纵坐标向上移动第二段单次移动距离D2。在图18的b所示的图中,第一个列表元素联系人“甲二”对应的列表元素的第二纵坐标值为0,假设第二段单次移动距离D2等于联系人“甲二”对应的列表元素的高度。之后将各中间列表元素,以及第二列表元素的坐标信息均向上移动第二段单次移动距离D2,也就是各中间列表元素,以及第二列表元素的第一纵坐标值和第二纵坐标值均减第二段单次移动距离D2,得到如图18的c所示的图。After the first single movement distance described above is completed, similarly, each intermediate list element in the memory of the wearable device and the ordinate of the second list element continue to be moved upward by the second single movement distance D 2 . In the diagram shown in b of FIG18 , the second ordinate value of the list element corresponding to the first list element contact “甲二” is 0, assuming that the second single movement distance D 2 is equal to the height of the list element corresponding to the contact “甲二”. Afterwards, the coordinate information of each intermediate list element and the second list element are all moved upward by the second single movement distance D 2 , that is, the first ordinate value and the second ordinate value of each intermediate list element and the second list element are subtracted by the second single movement distance D 2 , and the diagram shown in c of FIG18 is obtained.
此时,联系人“甲二”对应的列表元素的第二纵坐标值为-D2,小于0,且因为当前移动的距离就是D2就是联系人“甲二”对应的列表元素的高度。因此联系人“甲二”对应的列表元素的第一纵坐标值为0,即联系人“甲二”对应的列表元素已移出可见纵坐标范围,因此,可穿戴设备将联系人“甲二”对应的列表元素从内存中移除。联系人“姜一”对应的列表元素也上移D2,其第二纵坐标值变为0,也就是联系人“姜一”对应的列表元素变成了可见列表中的第一个列表元素。At this time, the second ordinate value of the list element corresponding to the contact "甲二" is -D 2 , which is less than 0, and because the current moving distance is D 2 , it is the height of the list element corresponding to the contact "甲二". Therefore, the first ordinate value of the list element corresponding to the contact "甲二" is 0, that is, the list element corresponding to the contact "甲二" has been moved out of the visible ordinate range, so the wearable device removes the list element corresponding to the contact "甲二" from the memory. The list element corresponding to the contact "姜一" also moves up by D 2 , and its second ordinate value becomes 0, that is, the list element corresponding to the contact "姜一" becomes the first list element in the visible list.
在图18的b所示的图中,假设索引字母“S”对应的列表元素的第二纵坐标值为列表高度s,在向上移动第二段单次移动距离D2后,在如图18的c所示的图中,索引字母“S”对应的列表元素的第二纵坐标值为列表高度s减第二段单次移动距离D2得到的值,该值小于s,因此,索引字母“S”对应的列表元素由不可见区域移动到了可见列表中,参照图18的c所示,索引字母“S”对应的列表元素显示在了显示屏中。以及。其他不可见区域中的中间列表元素和第二列表元素也依次上移第二段单次移动距离D2。 In the diagram shown in b of FIG18 , assuming that the second ordinate value of the list element corresponding to the index letter “S” is the list height s, after moving upward by the second single moving distance D 2 , in the diagram shown in c of FIG18 , the second ordinate value of the list element corresponding to the index letter “S” is the value obtained by subtracting the second single moving distance D 2 from the list height s, which is less than s. Therefore, the list element corresponding to the index letter “S” is moved from the invisible area to the visible list. As shown in c of FIG18 , the list element corresponding to the index letter “S” is displayed on the display screen. And. The middle list elements and the second list elements in other invisible areas are also moved upward by the second single moving distance D 2 in turn.
可以理解的是,第二段单次移动距离D2也可以小于或者大于联系人“甲二”对应的列表元素的高度。其实现方式与上述介绍的类似,此处不再赘述。It is understandable that the second single moving distance D2 may also be smaller or larger than the height of the list element corresponding to the contact "甲二". The implementation method is similar to that described above and will not be described in detail here.
类似的,依此类推,在如图18的c所示的图中,继续将可穿戴设备的内存中的剩余的各中间列表元素,以及第二列表元素向上移动第三段单次移动距离D3,第四段单次移动距离D4......直至第m段单次移动距离Dm时,将索引字母“T”对应的列表元素,也就是第二列表元素,移动到可见列表中成为可见列表中的最后一个列表元素,也就是说显示在了显示屏中,显示屏显示如图18的d所示的界面。其中,m小于n。Similarly, in the figure shown in c of FIG18, the remaining middle list elements in the memory of the wearable device and the second list element are continuously moved upward by the third single movement distance D3 , the fourth single movement distance D4 , ... until the mth single movement distance Dm , the list element corresponding to the index letter "T", that is, the second list element, is moved to the visible list to become the last list element in the visible list, that is, displayed on the display screen, and the display screen displays the interface shown in d of FIG18. Wherein, m is less than n.
之后,列表可以继续向上滑动,示例性的,针对如图14所示的坐标系,在如图18的d所示的界面中,当索引字母“T”对应的列表元素的下边缘对应的第一纵坐标值小于列表高度时,则将预设列表中索引字母“T”对应的列表元素的下一个列表元素加载至可穿戴设备的内存中,并随着列表的向上滑动,预设列表中索引字母“T”对应的列表元素的下一个列表元素也向上移动显示在显示屏中。如图18的e所示的界面,预设列表中索引字母“T”对应的列表元素的下一个列表元素也就是联系人“陶一”对应的列表元素显示在显示屏的底部,其第二纵坐标值为索引字母“T”对应的列表元素的第一纵坐标值,也就是索引字母“T”对应的列表元素的第二纵坐标值与该列表元素的高度的总和;其第一纵坐标值可以大于或等于列表高度。After that, the list can continue to slide upward. For example, for the coordinate system shown in FIG. 14, in the interface shown in FIG. 18d, when the first ordinate value corresponding to the lower edge of the list element corresponding to the index letter "T" is less than the list height, the next list element of the list element corresponding to the index letter "T" in the preset list is loaded into the memory of the wearable device, and as the list slides upward, the next list element of the list element corresponding to the index letter "T" in the preset list is also moved upward and displayed on the display screen. In the interface shown in FIG. 18e, the next list element of the list element corresponding to the index letter "T" in the preset list, that is, the list element corresponding to the contact "Tao Yi", is displayed at the bottom of the display screen, and its second ordinate value is the first ordinate value of the list element corresponding to the index letter "T", that is, the sum of the second ordinate value of the list element corresponding to the index letter "T" and the height of the list element; its first ordinate value can be greater than or equal to the list height.
假设如图18的d所示的界面中的联系人“沈一”对应的列表元素的高度等于第n-1段单次移动距离Dn-1,则此时,联系人“沈一”对应的列表元素的第二纵坐标值为-Dn-1,小于0,且因为当前移动的距离就是Dn-1就是联系人“沈一”对应的列表元素的高度。因此联系人“沈一”对应的列表元素的第一纵坐标值为0,即联系人“沈一”对应的列表元素已移出可见纵坐标范围,因此,可穿戴设备将联系人“沈一”对应的列表元素从内存中移除。联系人“盛三”对应的列表元素也上移Dn-1,其第二纵坐标值变为0,也就是联系人“盛三”对应的列表元素变成了可见列表中的第一个列表元素,显示屏显示如图18的e所示的界面。Assuming that the height of the list element corresponding to the contact "Shen Yi" in the interface shown in d of FIG. 18 is equal to the single moving distance D n-1 of the n-1th segment, then at this time, the second ordinate value of the list element corresponding to the contact "Shen Yi" is -D n-1 , which is less than 0, and because the current moving distance is D n-1 , it is the height of the list element corresponding to the contact "Shen Yi". Therefore, the first ordinate value of the list element corresponding to the contact "Shen Yi" is 0, that is, the list element corresponding to the contact "Shen Yi" has been moved out of the visible ordinate range, so the wearable device removes the list element corresponding to the contact "Shen Yi" from the memory. The list element corresponding to the contact "Shen San" also moves up D n-1 , and its second ordinate value becomes 0, that is, the list element corresponding to the contact "Shen San" becomes the first list element in the visible list, and the display screen displays the interface shown in e of FIG. 18.
之后,列表可以继续向上滑动,在如图18的e所示的界面中,当联系人“陶一”对应的列表元素的下边缘对应的第一纵坐标值小于列表高度时,则将预设列表中联系人“陶一”对应的列表元素的下一个列表元素加载至可穿戴设备的内存中,并随着列表的向上滑动,预设列表中联系人“陶一”对应的列表元素的下一个列表元素也向上移动显示在显示屏中。如图18的f所示的界面,预设列表中联系人“陶一”对应的列表元素的下一个列表元素也就是联系人“陶二”对应的列表元素显示在显示屏的底部,其第二纵坐标值为联系人“陶一”对应的列表元素的第一纵坐标值,也就是联系人“陶一”对应的列表元素的第二纵坐标值与该列表元素的高度的总和;其第一纵坐标值可以大于或等于列表高度。After that, the list can continue to slide upward. In the interface shown in e of Figure 18, when the first ordinate value corresponding to the lower edge of the list element corresponding to the contact "Tao Yi" is less than the list height, the next list element of the list element corresponding to the contact "Tao Yi" in the preset list is loaded into the memory of the wearable device, and as the list slides upward, the next list element of the list element corresponding to the contact "Tao Yi" in the preset list also moves upward and is displayed on the display screen. In the interface shown in f of Figure 18, the next list element of the list element corresponding to the contact "Tao Yi" in the preset list, that is, the list element corresponding to the contact "Tao Er", is displayed at the bottom of the display screen, and its second ordinate value is the first ordinate value of the list element corresponding to the contact "Tao Yi", that is, the sum of the second ordinate value of the list element corresponding to the contact "Tao Yi" and the height of the list element; its first ordinate value can be greater than or equal to the list height.
假设如图18的e所示的界面中的联系人“陶一”对应的列表元素的高度等于第n段单次移动距离Dn,则此时,联系人“陶一”对应的列表元素的第二纵坐标值为-Dn,小于0,且因为当前移动的距离就是Dn就是联系人“陶一”对应的列表元素的高度。因此联系人“陶一”对应的列表元素的第一纵坐标值为0,即联系人“陶一”对应的列表元素已移出可见纵坐标范围,因此,可穿戴设备将联系人“陶一”对应的列表元素从内存中移除。索引字母“T”对应的列表元素也上移Dn,其第二纵坐标值变为0,也就是索引字母“T”对应的列表元素变成了可见列表中的第一个列表元素,显示屏显示如图18的f所示的界面。就完成了以滚动效果从第一列表元素跳转到第二列表元素。Assuming that the height of the list element corresponding to the contact "Tao Yi" in the interface shown in e of FIG. 18 is equal to the single moving distance D n of the nth segment, then at this time, the second ordinate value of the list element corresponding to the contact "Tao Yi" is -D n , which is less than 0, and because the current moving distance is D n, which is the height of the list element corresponding to the contact "Tao Yi". Therefore, the first ordinate value of the list element corresponding to the contact "Tao Yi" is 0, that is, the list element corresponding to the contact "Tao Yi" has been moved out of the visible ordinate range, so the wearable device removes the list element corresponding to the contact "Tao Yi" from the memory. The list element corresponding to the index letter "T" also moves up by D n , and its second ordinate value becomes 0, that is, the list element corresponding to the index letter "T" becomes the first list element in the visible list, and the display screen displays the interface shown in f of FIG. The jump from the first list element to the second list element with a scrolling effect is completed.
本申请实施例中,将跳转距离划分为多段,得到多段单次移动距离;根据列表跳转方向,将各目标列表元素的坐标信息移动第一段单次移动距离,得到各目标列表元素的移动后的坐标信息;获取显示屏所对应的可见纵坐标范围;将移动后的坐标信息在可见纵坐标范围内的目标列表元素,按照移动后的坐标信息显示在显示屏中,并将移动后的坐标信息超出可见纵坐标范围的目标列表元素从内存中移除;重复执行根据列表跳转方向将各目标列表元素的坐标信息移动下一段单次移动距离,并根据移动后的坐标信息显示或移除目标列表元素的操作,直至第二列表元素完全显示在显示屏中。这样将跳转距离划分为多段单次移动距离,根据列表跳转方向将第一列表元素,各中间列表元素,以及第二列表元素依次移动单次移动距离,在单次移动距离较小时,可以使得各列表元素的移动更加平滑。In the embodiment of the present application, the jump distance is divided into multiple sections to obtain multiple single-movement distances; according to the list jump direction, the coordinate information of each target list element is moved by the first single-movement distance to obtain the coordinate information of each target list element after the move; the visible vertical coordinate range corresponding to the display screen is obtained; the target list elements whose coordinate information after the move is within the visible vertical coordinate range are displayed on the display screen according to the coordinate information after the move, and the target list elements whose coordinate information after the move exceeds the visible vertical coordinate range are removed from the memory; the operation of moving the coordinate information of each target list element by the next single-movement distance according to the list jump direction, and displaying or removing the target list element according to the coordinate information after the move is repeatedly performed until the second list element is completely displayed on the display screen. In this way, the jump distance is divided into multiple single-movement distances, and the first list element, each intermediate list element, and the second list element are moved by the single-movement distance in sequence according to the list jump direction. When the single-movement distance is small, the movement of each list element can be made smoother.
在上述实施例的基础上,为了更清楚地描述本申请实施例的技术方案,示例性的,请参见图19,图19示出了本申请实施例提供的一种列表处理的流程示意图,包括:On the basis of the above embodiments, in order to more clearly describe the technical solution of the embodiments of the present application, please refer to FIG. 19 for example, which shows a flowchart of a list processing provided by the embodiments of the present application, including:
S1901:触发列表跳转。S1901: Trigger list jump.
可能的实现中,用户可以通过触发UI中的列表的索引来触发可穿戴设备中的列表跳转操作。当然,也可以通过其他方式来触发列表跳转,本申请实施例对触发列表跳转的方式不作具体限制,只要能使得可穿戴设备中的列表发生跳转即可。In a possible implementation, the user can trigger the list jump operation in the wearable device by triggering the index of the list in the UI. Of course, the list jump can also be triggered by other methods. The embodiment of the present application does not specifically limit the method of triggering the list jump, as long as the list in the wearable device can be jumped.
S1902:获取第一位置和第二位置。S1902: Acquire the first position and the second position.
该步骤与上述步骤S601相似或相同,在此不再赘述。This step is similar or the same as the above step S601 and will not be described again here.
S1903:判断第二位置是否大于第一位置。S1903: Determine whether the second position is greater than the first position.
若第二位置在第一位置之后,也就是第二位置大于第一位置时,即列表向下跳转时,进入步骤S1904;If the second position is after the first position, that is, the second position is greater than the first position, that is, the list jumps downward, proceed to step S1904;
若第二位置在第一位置之前,也就是第二位置小于第一位置时,即列表向上跳转时,进入步骤S1908。If the second position is before the first position, that is, the second position is smaller than the first position, that is, the list jumps upward, the process goes to step S1908.
S1904:计算列表向下跳转时的位置偏移值。S1904: Calculate the position offset value when the list jumps downward.
可能的实现中,列表向下跳转时的位置偏移值可以是第一位置减第二位置得到的值。In a possible implementation, the position offset value when the list jumps downward may be a value obtained by subtracting the second position from the first position.
S1905:判断位置偏移值是否大于预设数量。S1905: Determine whether the position offset value is greater than a preset value.
若位置偏移值大于预设数量,也就是第一位置和第二位置之间的列表元素较多时,进入步骤S1906;If the position offset value is greater than the preset number, that is, there are more list elements between the first position and the second position, proceed to step S1906;
若位置偏移值小于或等于预设数量,也就是第一位置和第二位置之间的列表元素较少时,进入步骤S1907。If the position offset value is less than or equal to the preset number, that is, there are fewer list elements between the first position and the second position, the process goes to step S1907.
S1906:将第一位置之后的第一数量个列表元素、以及第二位置之前的第二数量个列表元素、以及第一列表元素和第二列表元素加载至可穿戴设备的内存中。S1906: Load a first number of list elements after the first position, a second number of list elements before the second position, and the first list element and the second list element into the memory of the wearable device.
可能的实现中,将第一位置之后的第一数量个列表元素(也就是第一中间列表元素)、以及第二位置之前的第二数量个列表元素(也就是第二中间列表元素)、以及第一列表元素和第二列表元素加载至可穿戴设备的内存中时,可以确定上述各列表元素的坐标信息,该步骤具体可参见上述图11对应的实施例,在此不再赘述。确定上述各列表元素的坐标信息后,进入步骤S1912。In a possible implementation, when the first number of list elements after the first position (that is, the first middle list element), the second number of list elements before the second position (that is, the second middle list element), and the first list element and the second list element are loaded into the memory of the wearable device, the coordinate information of the above list elements can be determined. This step can be specifically referred to the embodiment corresponding to FIG. 11 above, and will not be repeated here. After determining the coordinate information of the above list elements, enter step S1912.
S1907:将第一位置和第二位置之间的多个列表元素、以及第一列表元素和第二列表元素加载至可穿戴设备的内存中。S1907: Load multiple list elements between the first position and the second position, and the first list element and the second list element into the memory of the wearable device.
可能的实现中,将第一位置和第二位置之间的多个列表元素、以及第一列表元素和第二列表元素加载至可穿戴设备的内存中时,可以确定上述各列表元素的坐标信息,该步骤具体可参见上述图12对应的实施例,在此不再赘述。确定上述各列表元素的坐标信息后,进入步骤S1912。In a possible implementation, when multiple list elements between the first position and the second position, as well as the first list element and the second list element are loaded into the memory of the wearable device, the coordinate information of each of the above list elements can be determined. For details of this step, please refer to the embodiment corresponding to FIG. 12 above, which will not be described in detail here. After determining the coordinate information of each of the above list elements, proceed to step S1912.
S1908:计算列表向上跳转时的位置偏移值。S1908: Calculate the position offset value when the list jumps upward.
可能的实现中,列表向上跳转时的位置偏移值可以是第二位置减第一位置得到的值。In a possible implementation, the position offset value when the list jumps upward may be a value obtained by subtracting the first position from the second position.
S1909:判断位置偏移值是否大于预设数量。S1909: Determine whether the position offset value is greater than a preset value.
若位置偏移值大于预设数量,也就是第一位置和第二位置之间的列表元素较多时,进入步骤S1910;If the position offset value is greater than the preset number, that is, there are more list elements between the first position and the second position, proceed to step S1910;
若位置偏移值小于或等于预设数量,也就是第一位置和第二位置之间的列表元素较少时,进入步骤S1911。If the position offset value is less than or equal to the preset number, that is, there are fewer list elements between the first position and the second position, the process goes to step S1911.
S1910:将第一位置之前的第三数量个列表元素、以及第二位置之后的第四数量个列表元素、以及第一列表元素和第二列表元素加载至可穿戴设备的内存中。S1910: Load a third number of list elements before the first position, a fourth number of list elements after the second position, and the first list element and the second list element into the memory of the wearable device.
可能的实现中,将第一位置之前的第三数量个列表元素(也就是第一中间列表元素)、以及第二位置之后的第四数量个列表元素(也就是第二中间列表元素)、以及第一列表元素和第二列表元素加载至可穿戴设备的内存中时,可以确定上述各列表元素的坐标信息,该步骤具体可参见上述图13对应的实施例,在此不再赘述。确定上述各列表元素的坐标信息后,进入步骤S1912。In a possible implementation, when the third number of list elements before the first position (that is, the first middle list element), the fourth number of list elements after the second position (that is, the second middle list element), and the first list element and the second list element are loaded into the memory of the wearable device, the coordinate information of the above list elements can be determined. This step can be specifically referred to the embodiment corresponding to FIG. 13 above, and will not be repeated here. After determining the coordinate information of the above list elements, enter step S1912.
S1911:将第一位置和第二位置之间的多个列表元素、以及第一列表元素和第二列表元素加载至可穿戴设备的内存中。S1911: Load multiple list elements between the first position and the second position, and the first list element and the second list element into the memory of the wearable device.
可能的实现中,将第一位置和第二位置之间的多个列表元素、以及第一列表元素和第二列表元素加载至可穿戴设备的内存中时,可以确定上述各列表元素的坐标信息,该步骤具体可参见上述图14对应的实施例,在此不再赘述。确定上述各列表元素的坐标信息后,进入步骤S1912。In a possible implementation, when multiple list elements between the first position and the second position, as well as the first list element and the second list element are loaded into the memory of the wearable device, the coordinate information of each of the above list elements can be determined. This step can be specifically referred to the embodiment corresponding to FIG. 14 above, and will not be repeated here. After determining the coordinate information of each of the above list elements, proceed to step S1912.
S1912:计算列表跳转距离。S1912: Calculate the list jump distance.
该步骤可参见上述步骤S2,在此不再赘述。This step can refer to the above step S2 and will not be described again here.
S1913:将列表距离划分为多段D1~Dn。S1913: Divide the list distance into multiple segments D 1 -D n .
将列表距离划分为多段,得到多段单次移动距离D1~Dn。该步骤具体可参见上述图14对应的实施例,在此不再赘述。The list distance is divided into multiple segments to obtain multiple segments of single movement distances D 1 -D n . This step can be specifically referred to the embodiment corresponding to FIG. 14 above, and will not be described in detail here.
S1914:判断第i段单次移动距离Di是否在多段单次移动距离D1~Dn内,即i是否小于n。S1914: Determine whether the i-th single movement distance D i is within the multiple single movement distances D 1 -D n , that is, whether i is less than n.
若i小于n,则进入步骤S1916。If i is less than n, go to step S1916.
若i大于或等于n,则结束各列表元素的移动,列表跳转完成。If i is greater than or equal to n, the movement of each list element is completed and the list jump is completed.
S1915:将第一列表元素以及各目标列表元素移动Di。S1915: Move the first list element and each target list element by Di.
其中,目标列表元素可以包括第一中间列表元素,第二中间列表元素,以及第二列表元素。The target list element may include a first intermediate list element, a second intermediate list element, and a second list element.
根据列表跳转方向,将第一列表元素以及各目标列表元素的纵坐标移动第i段单次移动距离Di,According to the list jump direction, the vertical coordinates of the first list element and each target list element are moved by the i-th single movement distance D i ,
S1916:判断第二位置是否大于第一位置。S1916: Determine whether the second position is greater than the first position.
若第二位置大于第一位置,即列表向下跳转时,进入步骤S1917;If the second position is greater than the first position, that is, the list jumps downward, proceed to step S1917;
若第二位置小于第一位置,即列表向上跳转时,进入步骤S1918。If the second position is smaller than the first position, that is, the list jumps upward, the process goes to step S1918.
S1917:处理显示屏中的第一个列表元素。S1917: Process the first list element in the display.
可能的实现中,当显示屏中的第一个列表元素的坐标与该列表元素的高度的总和小于或等于0,则移除该列表元素。该步骤具体可参见上述图18对应的实施例,在此不再赘述。In a possible implementation, when the sum of the coordinates of the first list element in the display screen and the height of the list element is less than or equal to 0, the list element is removed. This step can be specifically referred to in the embodiment corresponding to FIG18 above, and will not be described in detail here.
S1918:处理显示屏中的最后一个列表元素。S1918: Process the last list element in the display.
可能的实现中,当显示屏中的最后一个列表元素的坐标大于或等于列表高度,则移除该列表元素。In a possible implementation, when the coordinates of the last list element in the display screen are greater than or equal to the list height, the list element is removed.
S1919:等待滚动间隔后继续将可穿戴设备的内存中的各目标列表元素的纵坐标移动下一段单次移动距离,直至第二列表元素显示在显示屏的顶部,结束各目标列表元素的移动,列表跳转完成。S1919: After waiting for the scrolling interval, continue to move the vertical coordinates of each target list element in the memory of the wearable device by the next single movement distance until the second list element is displayed at the top of the display screen, end the movement of each target list element, and complete the list jump.
其中,滚动间隔可以是目标列表元素移动单次移动距离之后,等待移动下一段单次移动距离的时间。The scrolling interval may be the time after the target list element moves a single moving distance and waits for the next single moving distance to move.
本申请实施例中,在可穿戴设备的内存中加载第一位置与第二位置之间,靠近第一位置和第二位置的目标列表元素,并在由目标列表元素组成的列表中做滚动效果,也就是依次显示各目标列表元素,显示完成后移除。这样仅加载预设列表中的部分列表元素,可以有效的保证基于可穿戴设备的内存和硬件资源,可以实现加载在第一列表元素和第二列表元素之间部分列表元素,并且依次显示各个目标列表元素可以实现列表位置跳转时的列表滚动效果,提升用户体验。In the embodiment of the present application, a target list element between the first position and the second position, close to the first position and the second position, is loaded in the memory of the wearable device, and a scrolling effect is performed on the list composed of the target list elements, that is, each target list element is displayed in sequence and removed after the display is completed. In this way, only some list elements in the preset list are loaded, which can effectively ensure that based on the memory and hardware resources of the wearable device, some list elements between the first list element and the second list element can be loaded, and each target list element is displayed in sequence, which can achieve the list scrolling effect when the list position jumps, thereby improving the user experience.
上面结合图6-图19,对本申请实施例提供的方法进行了说明,下面对本申请实施例提供的执行上述方法的装置进行描述。如图20所示,图20为本申请实施例提供的一种列表处理装置的结构示意图,该列表处理装置可以是本申请实施例中的可穿戴设备,也可以是可穿戴设备内的芯片或芯片系统。The method provided in the embodiment of the present application is described above in conjunction with Figures 6 to 19, and the device for executing the above method provided in the embodiment of the present application is described below. As shown in Figure 20, Figure 20 is a structural schematic diagram of a list processing device provided in the embodiment of the present application, and the list processing device can be a wearable device in the embodiment of the present application, or a chip or chip system in a wearable device.
如图20所示,列表处理装置2000可以用于通信设备、电路、硬件组件或者芯片中,该列表处理装置2000可以包括:显示单元2001以及处理单元2002。其中,显示单元2001用于支持显示屏中界面的显示,例如第一界面和第二界面的显示。处理单元2002用于支持列表处理装置2000执行列表处理的步骤,例如,处理单元2002可以用于处理图6中的S601至S604的步骤。As shown in FIG20 , a list processing device 2000 can be used in a communication device, a circuit, a hardware component or a chip, and the list processing device 2000 may include: a display unit 2001 and a processing unit 2002. The display unit 2001 is used to support the display of an interface in a display screen, such as the display of a first interface and a second interface. The processing unit 2002 is used to support the list processing device 2000 to perform the steps of list processing, for example, the processing unit 2002 can be used to process steps S601 to S604 in FIG6 .
处理单元2002可以和显示单元2001集成在一起,处理单元2002和显示单元2001可能会发生通信。The processing unit 2002 may be integrated with the display unit 2001 , and the processing unit 2002 and the display unit 2001 may communicate with each other.
在一种可能的实现方式中,该列表处理装置2000还可以包括:存储单元2004。其中,存储单元2004可以包括一个或者多个存储器,存储器可以是一个或者多个设备、电路中用于存储程序或者数据的器件。In a possible implementation, the list processing apparatus 2000 may further include: a storage unit 2004. The storage unit 2004 may include one or more memories, and the memory may be a device in one or more devices or circuits for storing programs or data.
存储单元2004可以独立存在,通过通信总线与处理单元2002相连。存储单元2004也可以和处理单元2002集成在一起。The storage unit 2004 may exist independently and be connected to the processing unit 2002 via a communication bus. The storage unit 2004 may also be integrated with the processing unit 2002.
以列表处理装置2000可以是本申请实施例中的可穿戴设备的芯片或芯片系统为例,存储单元2004可以存储可穿戴设备设备的方法的计算机执行指令,以使处理单元2002执行上述实施例中可穿戴设备的方法。存储单元2004可以是寄存器、缓存或者随机存取存储器(random access memory,RAM)等,存储单元2004可以和处理单元2002集成在一起。存储单元2004可以是只读存储器(read-only memory,ROM)或者可存储静态信息和指令的其他类型的静态存储设备,存储单元2004可以与处理单元2002相独立。Taking the example that the list processing device 2000 can be a chip or chip system of a wearable device in the embodiment of the present application, the storage unit 2004 can store computer execution instructions of the method of the wearable device so that the processing unit 2002 executes the method of the wearable device in the above embodiment. The storage unit 2004 can be a register, a cache or a random access memory (RAM), etc. The storage unit 2004 can be integrated with the processing unit 2002. The storage unit 2004 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 2004 can be independent of the processing unit 2002.
在一种可能的实现方式中,列表处理装置2000还可以包括:通信单元2003。其中,通信单元2003用于支持列表处理装置2000与其它设备交互。示例性的,当该列表处理装置2000是电子设备时,该通信单元2003可以是通信接口或接口电路。当该列表处理装置2000是电子设备内的芯片或芯片系统时,该通信单元2003可以是通信接口。例如通信接口可以为输入/输出接口、管脚或电路等。In a possible implementation, the list processing device 2000 may further include: a communication unit 2003. The communication unit 2003 is used to support the list processing device 2000 to interact with other devices. Exemplarily, when the list processing device 2000 is an electronic device, the communication unit 2003 may be a communication interface or an interface circuit. When the list processing device 2000 is a chip or a chip system in an electronic device, the communication unit 2003 may be a communication interface. For example, the communication interface may be an input/output interface, a pin or a circuit, etc.
本申请实施例的装置对应地可用于执行上述方法实施例中执行的步骤,其实现原理和技术效果类似,此处不再赘述。The device of the embodiment of the present application can be used to execute the steps executed in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.
图21为本申请实施例提供的一种电子设备的硬件结构示意图,如图21所示,该电子设备包括处理器2101,通信线路2104以及至少一个通信接口(图21中示例性的以通信接口2103为例进行说明)。Figure 21 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. As shown in Figure 21, the electronic device includes a processor 2101, a communication line 2104 and at least one communication interface (the communication interface 2103 is used as an example in Figure 21).
处理器2101可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。Processor 2101 can be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.
通信线路2104可包括在上述组件之间传送信息的电路。Communications link 2104 may include circuitry for transmitting information between the above-described components.
通信接口2103,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线局域网(wireless local area networks,WLAN)等。The communication interface 2103 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.
可能的,该电子设备还可以包括存储器2102。Possibly, the electronic device may further include a memory 2102 .
存储器2102可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compactdisc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路2104与处理器相连接。存储器也可以和处理器集成在一起。The memory 2102 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a communication line 2104. The memory may also be integrated with the processor.
其中,存储器2102用于存储执行本申请方案的计算机执行指令,并由处理器2101来控制执行。处理器2101用于执行存储器2102中存储的计算机执行指令,从而实现本申请实施例所提供的方法。The memory 2102 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 2101. The processor 2101 is used to execute the computer-executable instructions stored in the memory 2102, thereby implementing the method provided by the embodiment of the present application.
可能的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。Possibly, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, and the embodiments of the present application do not specifically limit this.
在具体实现中,作为一种实施例,处理2101可以包括一个或多个CPU,例如图21中的CPU0和CPU1。In a specific implementation, as an embodiment, the process 2101 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 21 .
在具体实现中,作为一种实施例,该电子设备可以包括多个处理器,例如图21中的处理器2101和处理器2105。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the electronic device may include multiple processors, such as processor 2101 and processor 2105 in FIG. 21. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
示例性的,图22为本申请实施例提供的一种芯片的结构示意图。芯片2200包括一个或两个以上(包括两个)处理器2202和通信接口2203。22 is a schematic diagram of the structure of a chip provided in an embodiment of the present application. The chip 2200 includes one or more (including two) processors 2202 and a communication interface 2203 .
在一些实施方式中,存储器2204存储了如下的元素:可执行模块或者数据结构,或者他们的子集,或者他们的扩展集。In some implementations, the memory 2204 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.
本申请实施例中,存储器2204可以包括只读存储器和随机存取存储器,并向处理器2202提供指令和数据。存储器2204的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。In the embodiment of the present application, the memory 2204 may include a read-only memory and a random access memory, and provide instructions and data to the processor 2202. A portion of the memory 2204 may also include a non-volatile random access memory (NVRAM).
本申请实施例中,存储器2204、通信接口2203以及处理器2202通过总线系统2201耦合在一起。其中,总线系统2201除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。为了便于描述,在图22中将各种总线都标为总线系统2201。In the embodiment of the present application, the memory 2204, the communication interface 2203 and the processor 2202 are coupled together through the bus system 2201. In addition to the data bus, the bus system 2201 may also include a power bus, a control bus and a status signal bus. For ease of description, various buses are labeled as bus system 2201 in FIG. 22.
上述本申请实施例描述的方法可以应用于处理器2202中,或者由处理器2202实现。处理器2202可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器2202中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器2202可以是通用处理器(例如,微处理器或常规处理器)、数字信号处理器(digitalsignal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门、晶体管逻辑器件或分立硬件组件,处理器2202可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。The method described in the above embodiment of the present application can be applied to the processor 2202, or implemented by the processor 2202. The processor 2202 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the processor 2202. The above processor 2202 can be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components. The processor 2202 can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.
结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。其中,软件模块可以位于随机存储器、只读存储器、可编程只读存储器或带电可擦写可编程存储器(electricallyerasable programmable read only memory,EEPROM)等本领域成熟的存储介质中。该存储介质位于存储器2204,处理器2202读取存储器2204中的信息,结合其硬件完成上述方法的步骤。其实现原理和技术效果与上述相关实施例类似,此处不再赘述。The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in a decoding processor. Among them, the software module can be located in a mature storage medium in the field such as a random access memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable read only memory (EEPROM). The storage medium is located in the memory 2204, and the processor 2202 reads the information in the memory 2204 and completes the steps of the above method in combination with its hardware. Its implementation principle and technical effects are similar to those of the above-mentioned related embodiments, and will not be repeated here.
本申请实施例还提供了一种计算机可读存储介质。计算机可读存储介质存储有计算机程序。计算机程序被处理器执行时实现上述方法。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。如果在软件中实现,则功能可以作为一个或多个指令或代码存储在计算机可读介质上或者在计算机可读介质上传输。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The above method is implemented when the computer program is executed by the processor. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.
一种可能的实现方式中,计算机可读介质可以包括RAM,ROM,只读光盘(compactdisc read-only memory,CD-ROM)或其它光盘存储器,磁盘存储器或其它磁存储设备,或目标于承载的任何其它介质或以指令或数据结构的形式存储所需的程序代码,并且可由计算机访问。而且,任何连接被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,数字用户线(digital subscriber line,DSL)或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘,激光盘,光盘,数字通用光盘(digital versatile disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。上述的组合也应包括在计算机可读介质的范围内。In one possible implementation, a computer readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile discs (DVD), floppy disks and Blu-ray discs, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer readable media.
本申请实施例提供一种计算机程序产品,计算机程序产品包括计算机程序,当计算机程序被运行时,使得计算机执行上述方法。An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above method.
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程设备的处理单元以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理单元执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application embodiment is described with reference to the flowchart and/or block diagram of the method, device (system) and computer program product according to the present application embodiment. It should be understood that each flow process and/or box in the flow chart and/or block diagram and the combination of the flow chart and/or box in the flow chart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processing unit of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable device to produce a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart or multiple flows and/or one box or multiple boxes of the block chart.
以上的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not used to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the protection scope of the present invention.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211336853.3A CN116700854B (en) | 2022-10-28 | 2022-10-28 | List processing method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211336853.3A CN116700854B (en) | 2022-10-28 | 2022-10-28 | List processing method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116700854A CN116700854A (en) | 2023-09-05 |
CN116700854B true CN116700854B (en) | 2024-06-18 |
Family
ID=87834525
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211336853.3A Active CN116700854B (en) | 2022-10-28 | 2022-10-28 | List processing method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116700854B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101371217A (en) * | 2005-12-23 | 2009-02-18 | 苹果公司 | Scrolling list with floating adjacent index symbols |
CN105912229A (en) * | 2015-12-11 | 2016-08-31 | 乐视移动智能信息技术(北京)有限公司 | Control method for list sliding and device thereof |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070132789A1 (en) * | 2005-12-08 | 2007-06-14 | Bas Ording | List scrolling in response to moving contact over list of index symbols |
KR102107491B1 (en) * | 2012-08-27 | 2020-05-07 | 삼성전자주식회사 | List scroll bar control method and mobile apparatus |
CN110598026B (en) * | 2019-08-19 | 2022-04-15 | 北京创鑫旅程网络技术有限公司 | Display method and device of picture list and terminal equipment |
CN111338732A (en) * | 2020-02-24 | 2020-06-26 | 北京辰森世纪科技股份有限公司 | Display method and device for long list page |
-
2022
- 2022-10-28 CN CN202211336853.3A patent/CN116700854B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101371217A (en) * | 2005-12-23 | 2009-02-18 | 苹果公司 | Scrolling list with floating adjacent index symbols |
CN105912229A (en) * | 2015-12-11 | 2016-08-31 | 乐视移动智能信息技术(北京)有限公司 | Control method for list sliding and device thereof |
Also Published As
Publication number | Publication date |
---|---|
CN116700854A (en) | 2023-09-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108512695B (en) | Method and device for monitoring application blockage | |
US11442747B2 (en) | Method for establishing applications-to-be preloaded prediction model based on preorder usage sequence of foreground application, storage medium, and terminal | |
US10419823B2 (en) | Method for controlling multimedia playing, apparatus thereof and storage medium | |
KR102137647B1 (en) | Display method and terminal device | |
CN109189300B (en) | View circulation display method and device | |
CN108984142B (en) | Split-screen display method, device, storage medium and electronic device | |
CN106448714A (en) | A method, device and system for synchronous playback of playback equipment | |
CN113595662B (en) | Signal prompting method, device, terminal equipment and storage medium | |
CN108932094A (en) | Split screen application switching method and device, storage medium and electronic equipment | |
WO2023246386A9 (en) | Interface display method and apparatus | |
CN111813296B (en) | View component display method and device and terminal | |
CN114186527A (en) | A method and device for realizing automatic wiring of integrated circuits without relying on grid points | |
CN105095259B (en) | Waterfall flow object display method and device | |
CN104238931B (en) | Information input method and device and electronic equipment | |
CN104426926B (en) | The processing method and processing device of data is issued in timing | |
US20240411438A1 (en) | Display method and apparatus, electronic device, and storage medium | |
CN116700854B (en) | List processing method, device and storage medium | |
CN111338827B (en) | Method and device for pasting form data and electronic equipment | |
CN111767136A (en) | Process management method, terminal and device with storage function | |
CN108920086B (en) | Split screen quitting method and device, storage medium and electronic equipment | |
CN108269223B (en) | Webpage graph drawing method and terminal | |
CN114510417A (en) | Image rendering effect testing method and device, electronic equipment and storage medium | |
CN110471622B (en) | SD card data writing method and device, storage medium and terminal | |
CN113656128A (en) | Page generation method and device and electronic equipment | |
CN111859879A (en) | Data display method and device based on virtual table and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |