CN116700854A - List processing method, device and storage medium - Google Patents

List processing method, device and storage medium Download PDF

Info

Publication number
CN116700854A
CN116700854A CN202211336853.3A CN202211336853A CN116700854A CN 116700854 A CN116700854 A CN 116700854A CN 202211336853 A CN202211336853 A CN 202211336853A CN 116700854 A CN116700854 A CN 116700854A
Authority
CN
China
Prior art keywords
list
list element
elements
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.)
Granted
Application number
CN202211336853.3A
Other languages
Chinese (zh)
Other versions
CN116700854B (en
Inventor
雷崇杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211336853.3A priority Critical patent/CN116700854B/en
Publication of CN116700854A publication Critical patent/CN116700854A/en
Application granted granted Critical
Publication of CN116700854B publication Critical patent/CN116700854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements 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

The embodiment of the application provides a list processing method, a list processing device and a storage medium. The method comprises the following steps: displaying a first interface in a display screen, wherein the first interface comprises a first list element and an index bar; detecting a list jumping operation acting on the index bar, wherein the list jumping operation is used for jumping to a second list element of a preset list; responding to the list jump operation, and sequentially displaying a first intermediate list element and a second intermediate list element in a display screen until a second interface is displayed; the first intermediate list element is one or more list elements between the first list element and the second list element, which 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, which are close to the second list element; the second interface includes a second list element therein. Therefore, the memory and hardware resource expenditure of the wearable device can be saved, and the list scrolling effect during the list position jump can be realized.

Description

List processing method, device and storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method and apparatus for processing a list, and a storage medium.
Background
With the development of terminal technology, wearable devices are increasingly favored by users. Some wearable devices (e.g., smartwatches) may be provided with a User Interface (UI) that may include rich UI components, such as button components, list components, digital corner mark components, and the like. Wherein the list component is a commonly used component, such as a file list of a file management Application (APP), a contact list of a contact APP, an information list of an information APP, etc., are all used to the list component, and list contents are displayed based on the list component.
In some implementations, when a jump occurs to the list, the wearable device may load the list content of the target location of the jump and then jump from the current list content to the list content of the target location for display.
However, such a list jump effect is similar to refreshing a page to display content, and the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a list processing method, a list processing device and a storage medium, which are applied to the technical field of terminals. The method is beneficial to realizing the scrolling effect of list skip and improving the user experience on the basis of saving the memory and hardware resource overhead of the wearable equipment.
In a first aspect, an embodiment of the present application provides a list processing method, which is applied to a wearable device, where the wearable device includes a display screen. The method comprises the following steps: displaying a first interface in a display screen, wherein the first interface comprises a first list element and an index bar, and the first list element is one list element in a preset list; detecting a list jumping operation acting on the index bar, wherein the list jumping operation is used for jumping to a second list element of a preset list; responding to the list jump operation, and sequentially displaying a first intermediate list element and a second intermediate list element in a display screen until a second interface is displayed; the first intermediate list element is one or more list elements between the first list element and the second list element, which 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, which are close to the second list element; the second interface includes a second list element therein. In this way, in the process of list jump, besides the first list element at the jump starting position and the second list element at the jump target position, the smart watch can sequentially display part of list elements between the first list element and the second list element in the preset list, so that the loading of the list elements to be displayed can be realized based on the memory and hardware resource overhead of the wearable device. And the first middle list element, the second middle list element and the second list element are sequentially displayed, so that a list scrolling effect in the list position jump process can be realized, and the user experience is improved.
In one possible implementation, the first intermediate list element includes N consecutive list elements adjacent to the first list element in the preset list; and/or the second intermediate list element comprises continuous M list elements adjacent to the second list element in the preset list; n and M are integers greater than 0.
In one possible implementation, the first interface further includes a portion or all of the first intermediate list element; and/or the second interface further comprises a part or all of the second intermediate list element.
In one possible implementation, the index bar includes a plurality of index elements arranged in sequence, and the list jump operation includes an operation of clicking on a first index element in the index bar.
In one possible implementation, after detecting the list jump operation acting on the index bar, the method further includes:
determining a list jump direction according to a first position of the first list element in a preset list and a second position of the second list element in the preset list, wherein the list jump direction comprises upward jump and downward jump; determining a position offset value of the first position and the second position according to the list jump direction; and determining a plurality of intermediate list elements between the first position and the second position in a preset list according to the list jump direction and the position offset value, wherein the intermediate list elements comprise a first intermediate list element and a second intermediate list element. Therefore, through the list jump direction and the position offset value, by selecting a part of list elements in the preset list as middle list elements, hardware conditions such as memory and the like based on the intelligent watch can be ensured, display of a plurality of middle list elements can be realized, and further a sliding effect can be realized based on the plurality of middle list elements.
In one possible implementation, the list jump direction is a downward jump; determining a plurality of intermediate list elements between the first position and the second position in a preset list according to the list jump direction and the position offset value, wherein the method comprises the following steps: if the position offset value is greater than the preset number, determining 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 in the preset list; if the position offset value is less than or equal to the preset number, determining a plurality of list elements between the first position and the second position as middle list elements in the preset list. Determining that the list element between the first position and the second position is an intermediate list element when the list element between the first position and the second position is less; when more list elements are arranged 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 are determined to be intermediate list elements, so that when the target list elements are sequentially displayed, the list elements can be scrolled downwards from the first position, and after the continuous multiple list elements are scrolled, the effect of displaying the second list elements is finally achieved. At the same time, this scrolling effect may only load a small number of list elements, and thus may be implemented based on the memory and hardware conditions of the wearable device.
In one possible implementation, the list jump direction is an upward jump; determining a plurality of intermediate list elements between the first position and the second position in a preset list according to the list jump direction and the position offset value, wherein the method comprises the following steps: if the position offset value is greater than the preset number, determining a third number of list elements before the first position and a fourth number of list elements after the second position as intermediate list elements in the preset list; if the position offset value is less than or equal to the preset number, determining a plurality of list elements between the first position and the second position as middle list elements in the preset list. Determining that the list element between the first position and the second position is an intermediate list element when the list element between the first position and the second position is less; when more list elements are arranged 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 are determined to be intermediate list elements, so that when the target list elements are sequentially displayed, the list elements can be scrolled upwards from the first position, and after the continuous multiple list elements are scrolled, the effect of displaying the second list elements is finally obtained. At the same time, this scrolling effect may only load a small number of list elements, and thus may be implemented based on the memory and hardware conditions of the wearable device.
In one possible implementation, sequentially displaying the first intermediate list element and the second intermediate list element in the display screen until the second interface is displayed includes: sequentially loading a plurality of target list elements into a memory of the wearable device, wherein the target list elements comprise 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 according to the coordinate information of the first list element and the coordinate information of the second list element; and displaying the target list elements in turn according to the jump distance.
In the embodiment of the application, the first list element, the plurality of first intermediate list elements, the plurality of second intermediate list elements and the second list element are loaded into the memory of the wearable device to be spliced into the list to be displayed, the list to be displayed only comprises a small number of list elements in a preset list, and the first list element and the second list element are spliced into a list displayed in sequence. And then determining the jump distance according to the coordinate information of the first list element and the coordinate information of the second list element, and sequentially displaying each target list element in the display screen according to the jump distance, so that the effect of sliding from the first list element to the second list element after passing through some intermediate list elements can be effectively shown in the display screen.
In one possible implementation, displaying each target list element sequentially according to the jump distance includes: dividing the jump distance into a plurality of sections to obtain a plurality of sections of single movement distances; according to the list jump direction, moving the coordinate information of each target list element by a first section of single movement distance to obtain the moved coordinate information of each target list element; obtaining a visible ordinate range corresponding to the display screen; displaying the moved coordinate information of the target list element meeting the first condition corresponding to the visible ordinate range in the display screen according to the moved coordinate information, and removing the target list element, of which the moved coordinate information does not meet the first condition, from the memory; and repeatedly executing 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 moved coordinate information until the second list element is completely displayed in the display screen. The jump distance is divided into a plurality of sections of single movement distances, the first list element, each middle list element and the second list element are sequentially moved by the single movement distance according to the list jump direction, and when the single movement distance is smaller, the movement of each list element can be smoother.
In one possible implementation, the visible ordinate range corresponds to a first endpoint value and a second endpoint value, the second endpoint value being greater than the first endpoint value; the coordinate information includes: a first ordinate value corresponding to the lower edge of the target list element, a second ordinate value corresponding to the upper edge of the target list element; the first condition is: the first ordinate value is greater than a first endpoint value of the visible ordinate range and the second ordinate value is less than a second endpoint value of the visible ordinate range.
In one possible implementation, loading a plurality of target list elements into a memory of a wearable device includes: according to the loaded target list elements in the memory of the wearable device, determining target list elements which are not loaded in the memory from the target list elements; and according to the sequence of the list elements in the preset list, loading the target list elements which are not loaded into the memory in sequence. After the target list elements are determined, some target list elements are loaded in the memory of the wearable device, and the target list elements which are not loaded in the memory only need to be loaded without being loaded again, so that the hardware resource overhead of the wearable device is reduced.
In a second aspect, an embodiment of the present application provides a list processing apparatus, where the display unit is configured to display a first interface in a display screen, where the first interface includes a first list element and an index bar, and the first list element is one list element in a preset list; the processing unit is used for detecting a list jump operation acting on the index bar, wherein the list jump operation is used for jumping to a second list element of a preset list; the processing unit is further used for responding to the list jump operation and sequentially displaying the first intermediate list element and the second intermediate list element in the display screen until a second interface is displayed; the first intermediate list element is one or more list elements between the first list element and the second list element, which 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, which are close to the second list element; the second interface includes a second list element therein.
In one possible implementation, the first intermediate list element includes N consecutive list elements adjacent to the first list element in the preset list; and/or the second intermediate list element comprises continuous M list elements adjacent to the second list element in the preset list; n and M are integers greater than 0.
In one possible implementation, the first interface further includes a portion or all of the first intermediate list element; and/or the second interface further comprises a part or all of the second intermediate list element.
In one possible implementation, the index bar includes a plurality of index elements arranged in sequence, and the list jump operation includes an operation of clicking on a first index element in the index bar.
In a possible implementation manner, after detecting the list jump operation acting on the index bar, the processing unit is further configured to determine a list jump direction according to a first position of the first list element in the preset list and a second position of the second list element in the preset list, where the list jump direction includes an upward jump and a downward jump; the processing unit is also used for determining the position offset value of the first position and the second position according to the list jump direction; the processing unit is further used for determining a plurality of middle list elements between the first position and the second position in a preset list according to the list jump direction and the position offset value, wherein the middle list elements comprise a first middle list element and a second middle list element.
In one possible implementation, the list jump direction is a downward jump; the processing unit is further configured 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 the preset number; and the processing unit is further used for determining a plurality of list elements between the first position and the second position as middle list elements in a preset list if the position offset value is smaller than or equal to the preset number.
In one possible implementation, the list jump direction is an upward jump; the processing unit is further configured to determine, 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 as intermediate list elements if the position offset value is greater than the preset number; and the processing unit is further used for determining a plurality of list elements between the first position and the second position as middle list elements in a preset list if the position offset value is smaller than or equal to the preset number.
In a possible implementation manner, the processing unit is further configured to sequentially load a plurality of target list elements into a memory of the wearable device, where 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 for determining the coordinate information of each target list element; the processing unit is also used for determining the jump distance according to the coordinate information of the first list element and the coordinate information of the second list element; and the processing unit is also used for sequentially displaying the target list elements according to the jump distance.
In a possible implementation manner, the processing unit is further configured to divide the jump distance into multiple segments to obtain multiple segments of single movement distances; the processing unit is further used for moving the coordinate information of each target list element by a first section of single movement distance according to the list jump direction to obtain the moved coordinate information of each target list element; the processing unit is also used for acquiring a visible ordinate range corresponding to the display screen; the processing unit is also used for displaying the moved coordinate information on the display screen according to the target list elements of which the coordinate information meets the first condition corresponding to the visible ordinate range and removing the target list elements of which the coordinate information does not meet the first condition from the memory; and the processing unit is also used for repeatedly executing 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 moved coordinate information until the second list element is completely displayed in the display screen.
In one possible implementation, the visible ordinate range corresponds to a first endpoint value and a second endpoint value, the second endpoint value being greater than the first endpoint value; the coordinate information includes: a first ordinate value corresponding to the lower edge of the target list element, a second ordinate value corresponding to the upper edge of the target list element; the first condition is: the first ordinate value is greater than a first endpoint value of the visible ordinate range and the second ordinate value is less than a second endpoint value of the visible ordinate range.
In a possible implementation manner, the processing unit is further configured to determine, from target list elements loaded in a memory of the wearable device, target list elements that are not loaded in the memory; the processing unit is further configured to sequentially load target list elements that are not loaded into the memory according to the sequence of 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 configured to store code instructions; the processor is configured to execute code instructions to cause the electronic device to perform a list processing method as described in the first aspect or any one of the possible implementations of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing instructions that, when executed, cause a computer to perform a list processing method as described in the first aspect or any one of the possible implementations of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when run, causes a computer to perform a list processing method as described in the first aspect or any one of the possible implementations of the first aspect.
In a sixth aspect, embodiments of the present application provide a chip or chip system comprising at least one processor and a communication interface, the communication interface and the at least one processor being interconnected by wires, the at least one processor being adapted to run a computer program or instructions to perform the list processing method described in the first aspect or any one of the possible implementations of the first aspect. The communication interface in the chip can be an input/output interface, a pin, a circuit or the like.
It should be understood that, the second aspect to the sixth aspect of the present application correspond to the technical solutions of the first aspect of the present application, and the advantages obtained by each aspect and the corresponding possible embodiments are similar, and are not repeated.
Drawings
FIG. 1 is a schematic illustration one of a contact list interface;
FIG. 2 is a schematic diagram II of a contact list interface;
FIG. 3 is an interface diagram of a contact list jump;
FIG. 4 is a schematic view of a scenario in which an embodiment of the present application is applicable;
fig. 5 is a schematic hardware structure of a wearable device according to an embodiment of the present application;
fig. 6 is a schematic flow chart of a list processing method according to an embodiment of the present application;
fig. 7 is a schematic diagram of a preset list of contacts according to an embodiment of the present application;
FIG. 8 is a first schematic diagram of a list interface according to an embodiment of the present application;
FIG. 9 is a schematic diagram of an interface before and after a list jump according to an embodiment of the present application;
FIG. 10 is a second interface schematic diagram before and after a list jump according to an embodiment of the present application;
FIG. 11 is a second schematic diagram of a preset contact list according to an embodiment of the present application;
fig. 12 is a schematic diagram III of a preset list of contacts according to an embodiment of the present application;
fig. 13 is a schematic diagram fourth of a preset list of contacts according to an embodiment of the present application;
fig. 14 is a schematic diagram five of a preset list of contacts according to an embodiment of the present application;
FIG. 15 is a second schematic diagram of a list interface according to an embodiment of the present application;
FIG. 16 is a schematic diagram of a list element loaded when a list jumps down according to an embodiment of the present application;
FIG. 17 is a schematic diagram of a list element loaded when a list jumps upward according to an embodiment of the present application;
FIG. 18 is a schematic diagram showing list elements sequentially in a downward list jump process according to an embodiment of the present application;
FIG. 19 is a schematic flow chart of a list process according to an embodiment of the present application;
fig. 20 is a schematic structural diagram of a list processing apparatus according to an embodiment of the present application;
fig. 21 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 22 is a schematic structural diagram of a chip according to an embodiment of the present application.
Detailed Description
In order to facilitate the clear description of the technical solutions of the embodiments of the present application, the following simply describes some terms and techniques involved in the embodiments of the present application:
1) List width and list height: may also be referred to as a list visible width and a list visible height. In the embodiment of the application, the list visible width can refer to the width of the display screen of the wearable device, and the list visible height can refer to the height of the display screen of the wearable device, and the list in the range of the list width and the list height is a visible list. In the embodiment of the present application, the smart watch is taken as an example for exemplary explanation, and of course, the embodiment of the present application is also applicable to other wearable devices, such as a bracelet, so long as a list can be displayed, and the type of the wearable device is not particularly limited.
By way of example, FIG. 1 illustrates a schematic diagram of a contact list interface. Taking the smart watch as an example, after the smart watch detects the start operation of the user on the contact APP, the smart watch may display an interface as shown in fig. 1, and as shown in fig. 1, a contact list interface is displayed in the display screen 100 of the smart watch. In the present example, the list content visible in the contact list interface may include: a control corresponding to a contact, a control corresponding to a collection contact, a control corresponding to a contact A, a control corresponding to an Aione, 102 and an index bar 103. The control 101 corresponding to the contact "a" may include the contact name "a" and its corresponding avatar, the control 102 corresponding to the contact "a" may include the contact name "Ai Yi" and its corresponding avatar, and the index bar 103 may include the index # and the index a and the index B, etc. letter indexes and the extendable button 1031.
In one possible implementation, when rendering a visible list, list elements within both the list visible width and the list visible height are rendered. Each list element in turn corresponds to a respective height and width, so that the visible list may be rectangular, for example.
However, different shapes of the display screen may exist in different products, for example, in the example of fig. 1, the shape of the display screen is a rectangular inscribed circle composed of a list height and a list width. Or the shape of the display screen may be any shape such as oval, rectangular, irregular, etc.
It will be appreciated that, depending on the shape of the display screen, a rectangular visual list may not be fully displayed in the display screen, for example, there may be some edge portions not displayed in the display screen, but these non-displayed portions are still rendered. For example, in the example of fig. 1, the avatar in the control 102 corresponding to the contact "ai" at the edge position in the display 100 only shows a part, because of the shape of the display 100, resulting in the avatar not being fully displayed. As shown in fig. 1, in the embodiment of the present application, an x-axis and a y-axis are provided for measuring the position of the content of the list, the upper left corner of the display screen 100 is taken as the origin, the horizontal direction is taken as the x-axis, and the horizontal direction is taken as the positive direction of the x-axis to the right; the vertical direction is set as the y-axis, and the vertical downward direction 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 practical implementation, there may be other different arrangements for measuring the x-axis and the y-axis of the position of the list content, or other manners for measuring the position of the list content, which is not particularly limited in this embodiment of the present application.
2) List element: list elements may also be referred to as list items, which may be display content in a list. Each list element is independent, each list element has its width and height, and when loaded into the memory of the wearable device, its position coordinates in the coordinate system corresponding to the display screen may be determined for the list element, which may include an abscissa (x-axis direction) and an ordinate (y-axis direction). After the list elements are loaded into the memory, the wearable device can send the list elements in the memory to the display screen of the wearable device for display. For example, fig. 2 shows a second schematic diagram of a contact list interface, taking a smart watch as an example, and contents displayed in the interface may refer to fig. 1, which is not described herein again. As shown in fig. 2, each line (or each piece) of content in the list may 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 "a" contact is a list element.
If a part of a list element is displayed in the visible list, the list element may be considered to be in the visible list. For example, taking the coordinate system in fig. 1 as an example, when the coordinate corresponding to the lower edge of the list element is greater than 0 and the coordinate corresponding to the upper edge of the list element is less than the height of the list, the list element may be considered to be within the range of the visible list.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
The "at … …" in the embodiment of the present application may be an instant when a certain situation occurs, or may be a period of time after a certain situation occurs, which is not particularly limited. In addition, the display interface provided by the embodiment of the application is only used as an example, and the display interface can also comprise more or less contents.
With the development of terminal technology, wearable devices are increasingly favored by users. Some wearable devices (e.g., smartwatches) may be provided with a User Interface (UI) that may include rich UI components, such as button components, list components, digital corner mark components, and the like. Wherein the list component is a commonly used component, such as a file list of a file management Application (APP), a contact list of a contact APP, an information list of an information APP, etc., are all used to the list component, and list contents are displayed based on the list component.
On some interfaces containing long lists, index bars are provided, which include multiple indices. In some implementations, the user can jump the interface from the current list location to the list location to which the index corresponds by clicking on the index.
By way of example, FIG. 3 shows an interface diagram for a contact list jump. Taking a smart watch as an example, an interface shown in a of fig. 3 may include a list element corresponding to "contact", a list element corresponding to "favorite contact", a list element corresponding to "a one" contact, and an index bar 301, where the index bar 301 includes letters or symbols such as an index "#", an index "a" to an index "Z", and a retractable button 3011.
In the interface shown in fig. 3 a, when the smart watch detects a trigger operation of the user for index "D" in the index bar 301, the list jumps to a list position corresponding to the index "D", and the smart watch may display the interface shown in fig. 3 b. The interface shown in b of fig. 3 may include a list element 302 corresponding to the index letter "D", an index indication "D"303, a list element corresponding to the contact "t one", and an index bar. The index indication "D"303 may disappear after the end of the jump, and reappear when the next jump occurs, where the index indication "D"303 is used to indicate that the contact page corresponding to the index "D" has been jumped currently.
It can be appreciated that the implementation of jumping from one position to another position in the list described above can display each list element in the jumping process with the effect of scrolling the list element in the jumping process, which can bring good experience to the user. If the aim of displaying each list element with the scrolling effect in the jump process is fulfilled, loading each list element and then displaying.
However, due to the size requirement of the wearable device, the hardware performance of the wearable device is insufficient and the memory resource is limited, so that the wearable device cannot load all list elements in the jump process, therefore, when the jump of the list is realized in the prior art, the list elements of the target position of the jump are generally loaded, and then the current list elements are jumped to the list elements of the target position for display. The jump mode is equivalent to refreshing the content displayed on the page, and does not show the rolling effect in the jump process, so that the user experience is poor in the list jump process.
In view of this, an embodiment of the present application provides a method for processing a list, where the method includes loading a current list element, setting a number of list elements near the current list element between the current list element and a list element indicated by a list jump operation, setting a number of list elements near the list element indicated by the list jump operation, and splicing the list elements into a list to be displayed. Because the number of list elements included in the spliced list is relatively small, scrolling display can be performed for each list element in the spliced list, and meanwhile, because the spliced list includes the current list element and the list elements nearby the current list element, and the list elements indicated by the list skip operation and the list elements nearby the current list element, the effect of skipping from the current list element to the list elements indicated by the list skip operation with scrolling effect can be shown. Therefore, the embodiment of the application can lead the wearable device to realize the list scrolling effect when the list position jumps with smaller memory and hardware resource expenditure.
Fig. 4 is a schematic view of a scenario in which an embodiment of the present application is applicable. As shown in fig. 4, wearable device 400 may be a smart wearable device, such as a smart watch, smart bracelet, smart glasses, etc., that is capable of being worn by a user and that may handle corresponding user traffic and interact intelligently with the user.
The wearable device 400 may include a display 401, in which a list may be displayed in the display 401, and the list may be, for example, a contact list, or may also be a music play list, a music collection list, or may also be a reading list, or the like, and embodiments of the present application do not limit the specific implementation of the list displayed in the display.
In the display 401, when the wearable device detects a jump operation of the user for the list, the wearable device 400 may display list elements in the jump process in the display 401 based on the list processing method provided by the embodiment of the present application. The embodiment of the application is exemplified by taking the wearable device 400 as a smart watch.
By way of example, the list processing method may include: displaying a first interface in a display screen, wherein the first interface comprises a first list element and an index bar, and the first list element is one list element in a preset list; detecting a list jumping operation acting on the index bar, wherein the list jumping operation is used for jumping to a second list element of a preset list; responding to the list jump operation, and sequentially displaying a first intermediate list element and a second intermediate list element in a display screen until a second interface is displayed; the first intermediate list element is one or more list elements between the first list element and the second list element, which 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, which are close to the second list element; the second interface includes a second list element therein. Therefore, part of list elements in the preset list are sequentially displayed, so that the memory and hardware resource expenditure of the wearable device can be saved, the list scrolling effect during the position jump of the list can be realized, and the user experience is improved.
Fig. 5 is a schematic diagram of a hardware structure of a wearable device according to 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 540, a charge management module 550, a power management module 551, a battery 552, an internal memory 560, and an audio module 570, among others.
It will be appreciated 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 application, the wearable device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 510 may include one or more processing units. Wherein the different processing units may be separate devices or may be integrated in one or more processors. A memory may also be provided in the processor 510 for storing instructions and data.
The wireless communication function of the wearable device may be implemented by an antenna, a mobile communication module 520, a wireless communication module 530, a modem, a baseband processor, and the like.
The mobile communication module 520 may provide a solution for wireless communication including 2G/3G/4G/5G or the like applied on a terminal device. The mobile communication module 520 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 520 may receive electromagnetic waves from an antenna, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to a modem processor for demodulation.
The wireless communication module 530 may provide solutions for wireless communication including wireless local area network (wirelesslocal area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), etc., for use on a wearable device.
The charge management module 550 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger.
The power management module 551 is used for connecting the battery 552, and the charging management module 550 and the processor 510. The power management module 551 receives input from the battery 552 and/or the charge management module 550, and provides power to the processor 510, the internal memory 560, the display screen 545, the wireless communication module 530, and the like.
The wearable device implements display functions through the GPU, the display screen 540, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display 540 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.
The display 540 is for displaying images, videos, and the like. The display 540 includes a display panel. In some embodiments, the wearable device may include 5 or N displays 540, N being a positive integer greater than 5.
The internal memory 560 may be used to store computer-executable program code that includes instructions. The internal memory 560 may include a stored program area and a stored data area.
The wearable device may implement audio functions through an audio module 570, speakers, a receiver, an application processor, and so forth. Such as music playing, recording, etc.
The audio module 570 is configured to convert digital audio information to an analog audio signal output and also to convert an analog audio input to a digital audio signal. Speakers, also known as "horns," are used to convert audio electrical signals into sound signals. The wearable device may listen to music through a speaker or to a hands-free conversation. A microphone, also known as a "earpiece", is used to convert an audio electrical signal into a sound signal. When the wearable device picks up a phone call or voice message, the voice can be picked up by placing the microphone close to the human ear.
The system of the wearable device in the embodiment of the present application may be a lightweight internet of things operation (liteOS) system, or the software system of the wearable device in the embodiment of the present application may also be an android (android) system, for example, the software architecture of the wearable device may be illustrated by taking a layered-architecture liteOS system as an example. The embodiment of the application does not specifically limit the software system of the wearable device.
The following describes in detail a technical solution of an embodiment of the present application and how the technical solution of the embodiment of the present application solves the above technical problems with specific embodiments in combination with the accompanying drawings. The following embodiments may be implemented independently or combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 6 is a flowchart of a list processing method according to an embodiment of the present application. The method may be applied to a wearable device, which may include a display screen, as shown in fig. 6, and may include:
s601: and displaying a first interface in the display screen, wherein the first interface comprises a first list element and an index bar, and the first list element is one list element in a preset list.
In the embodiment of the application, the first interface may be displayed in the display screen, and the list of the plurality of list elements may be displayed on the first interface, where the list may be, for example, a contact list, or may also be a music play list, a music collection list, or may also be a list of an application program of the smart watch, etc. the embodiment of the application does not limit the specific implementation of the list displayed on the first interface, and may be implemented according to actual needs.
It can be determined based on the above description that only a partial list is displayed in the first interface because the screen size is limited. Regardless of the type of list it is for there to be a complete preset list in which all list elements are included.
For example, for a list of contact types, its complete preset list can be understood in connection with fig. 7. For example, fig. 7 shows a schematic diagram one of a contact preset list provided by the embodiment of the present application, as shown in fig. 7, a complete preset list of contacts may include all contacts, and some list elements preset by the system, for example, 1000 list elements such as "contacts", "favorite contacts", and list elements corresponding to respective index letters described above. In the actual implementation process, list elements specifically included in the preset list may be selected and set according to actual requirements, which is not limited in the embodiment of the present application.
The preset list may be stored in a memory of the smart watch, and when the list elements in the preset list need to be displayed, the list elements to be displayed are loaded into the memory of the smart watch from the 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. Or in other possible implementations, the first list element may also be the last list element displayed in the first interface, which is not limited by the embodiment of the present application.
In the embodiment of the application, the index bar can be used for indicating the jump position of the list, the index bar can be one or more columns of index elements with an index function, and the index elements can be in any form such as numbers, letters, strokes or sequences, and the form of the index elements is not particularly limited. The smart watch may jump to the location of the list element indicated by the click operation based on the click operation of the user on the index element in the index bar. In the embodiment of the present application, the index elements in the index bar are taken as letters for exemplary description, and the example does not limit the embodiment of the present application.
S602: a list skip operation acting on the index bar is detected, the list skip operation being used to skip to a second list element of the preset list.
The second list element may be a list element corresponding to the jump location indicated by the list jump operation. For example, it can be understood with reference to fig. 7 and fig. 8, where fig. 8 shows a schematic diagram of a list interface provided by an embodiment of the present application. The content of the interface shown in fig. 8 is shown in fig. 3 a, and will not be described herein. Assuming that the interface shown in fig. 8 is a first interface, and assuming that the arrangement of the list elements in the preset list shown in the interface shown in fig. 8 is as shown in fig. 7, the first list element is a list element corresponding to "contact", and when the smart watch detects a list skip operation acting on the index "Z"801 on the index bar, the second list element may be, for example, a list element corresponding to the letter "Z" in fig. 7, that is, the 998 th list element illustrated in fig. 7. Or the second list element may be, for example, the 999 st list element illustrated in fig. 7, that is, the list element corresponding to the first contact among the contacts under the letter "Z" in fig. 7. Or it may be any contact under the letter "Z" in fig. 7, for example, which is not particularly limited in this embodiment of the present application.
In the embodiment of the application, when the list is required to jump to a certain position, the user can input the list jumping operation aiming at the list displayed on the first interface. Wherein the list jump operation may be a click operation for a specific letter on the index bar.
S603: responding to the list jump operation, and sequentially displaying a first intermediate list element and a second intermediate list element in a display screen until a second interface is displayed; the first intermediate list element is one or more list elements between the first list element and the second list element, which 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, which are close to the second list element; the second interface includes a second list element therein.
In a possible implementation, in response to the list jump operation, a first intermediate list element, a second intermediate list element, and a second list element may be sequentially displayed in a first interface of the smart watch.
In the embodiment of the present application, the first intermediate list element may include N consecutive list elements adjacent to the first list element in the 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 integers greater than 0.
By way of example, it can be appreciated with reference to fig. 7 that assuming "B" in fig. 7 is the first list element introduced above, and that the list jump operation is a click operation for index "Z" on the index bar, the second list element can be, for example, "Z" in fig. 7, while assuming both N and M are 4. Then, referring to fig. 7, 4 consecutive list elements, namely, the contact "white one", the contact "white two", the contact "white three" and the contact "binone", between the first list element and the second list element, and close to the first list element, may be understood as the first middle list element in the current example. The smart watch may then display the 4 first intermediate list elements in turn, for example, in response to a list jump operation.
And after the first intermediate list element is displayed, sequentially displaying the second intermediate list element. Referring to fig. 7, 4 consecutive list elements, namely "Y", contact "Yang Yi", contact "one-trip" and contact "two-pass", 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. The smart watch may then display the 4 second intermediate list elements in sequence immediately after the first intermediate list element is displayed, for example in response to a list jump operation.
And, after the second intermediate list element is displayed, the smart watch then displays the second list element.
The above example describes a list jump down scenario, and the list jump up scenario is described in detail below with reference to fig. 7. As shown in fig. 7, assuming that the contact "Zhang" in fig. 7 is the first list element introduced above, and assuming that the list jump operation is a click operation for the index "B" on the index bar, the second list element may be "B" in fig. 7, while assuming that both N and M are 3. Then, referring to fig. 7, 3 consecutive list elements, namely "Z", contact "shu two", and contact "wander one" 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 element in the present example. The smart watch may then display the 3 first intermediate list elements in turn, for example, in response to a list jump operation.
And after the first intermediate list element is displayed, sequentially displaying the second intermediate list element. Referring to fig. 7, 3 consecutive list elements, namely "white three", contact "white two", and contact "white one", 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 present example. The smart watch may then display the 3 second intermediate list elements in sequence immediately after the first intermediate list element is displayed, for example in response to a list jump operation.
And, after the second intermediate list element is displayed, 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 a memory of the wearable device to a memory of the wearable device for display.
Based on the above description, it may be determined that the first interface is displayed in the display screen, where the first interface may further include some or all of the first intermediate list element. When the wearable device detects the list jump operation on the index bar of the first interface, the interface in the display screen changes, that is, the first middle list element and the second middle list element are sequentially displayed until the second list element is displayed, at this time, the interface in 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 part or all of the second middle list element.
The first interface and the second interface in the list jump are exemplarily described below.
For example, taking a contact list in a smart watch as an example, fig. 9 shows a schematic diagram one of interfaces before and after a list jump, which is shown in a of fig. 9, where the interface may be a first interface, and the interface may include a list element corresponding to contact "a first" and a list element corresponding to contact "a second", a list element corresponding to contact "ginger first" and an index bar. The contacts included in the interface shown in fig. 9 a may be understood as the contacts corresponding to index "J".
In the interface shown in a of fig. 9, it is assumed that the smart watch detects a list jump operation by the user for index "S", and at this time, the smart watch controls the list jump to a position corresponding to index "S" in response to the list jump operation.
The first list element displayed on the current interface, i.e., the list element corresponding to contact "a-a", may be, for example, the first list element introduced above in the current example. And the list element corresponding to the index "S" corresponding to the jump position may be, for example, the second list element introduced above.
Since the second list element follows the first list element, the list jumps downwards at this time, and after displaying the first intermediate list element and the second intermediate list element in sequence, for example, the smart watch may display an interface as shown in b of fig. 9, which may be understood as the second interface described above. Referring to the interface shown in b of fig. 9, a list element 901 corresponding to the letter "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 downward list jump, the first list element, the first middle list element, the second middle list element and the second list element are sequentially displayed in an upward sliding manner in the interface of the display screen, that is, the process of downward list jump is actually the process of upward list slide.
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 on the top of the display screen.
For example, in the interface shown in fig. 9 b, after the list element 901 corresponding to the letter "S" (i.e., the second list element) is displayed on the display screen, the list continues to slide upwards until the list element corresponding to the contact "ran" and the list element corresponding to the contact "ran" slide out of the display screen in order, i.e., out of the visible range, and the list element 901 corresponding to the letter "S" and the last two list elements of the list element also slide upwards in order until the list element 901 corresponding to the letter "S" is displayed on the top of the display screen, and the display screen displays the interface shown in fig. 9 c. The interface shown in c of 9, at this time, the list element corresponding to the contact "ran one" and the list element corresponding to the contact "ran two" have been slid out of the display screen, that is, out of the visible range, the list element 901 corresponding to the letter "S" is displayed at the top of the display screen, and the list element corresponding to the contact "stone one" and the list element corresponding to the contact "su two" are also displayed in the display screen. At this point, the jump ends and the list stops sliding upward. 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 sequentially displayed in the jump process, so that the jump of the list elements can be realized by the sliding effect.
For example, still taking a contact list in a smart watch as an example, fig. 10 shows a second interface schematic diagram before and after a list jump, such as the interface shown in a of fig. 10, which is similar to the interface described in a of fig. 9, and is not described herein again, and the interface may be the first interface.
In the interface shown in a of fig. 10, it is assumed that the smart watch detects a list jump operation of the user with respect to the index H, and at this time, the smart watch controls the list to jump to a position corresponding to the index H in response to the list jump operation.
The first list element displayed on the current interface, i.e., the list element corresponding to contact "a-a", may be, for example, the first list element introduced above in the current example. And the list element corresponding to the index "H" corresponding to the jump position may be, for example, the second list element introduced above.
Since the second list element precedes the first list element, the list jumps upward at this time, and after the jump is completed, the smart watch may display an interface as shown in b of fig. 10, which may be a second interface, in which the list element 1001 corresponding to the letter "H" is displayed, 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 sequentially displayed in the jump process, so that the jump of the list elements can be realized by the sliding effect.
In the embodiment of the application, a first interface is displayed in a display screen, wherein the first interface comprises a first list element and an index bar, and the first list element is one list element in a preset list; when detecting a list jump operation acting on the index bar, the list jump operation is used for jumping to a second list element of a preset list; responding to the list jump operation, and sequentially displaying a first intermediate list element and a second intermediate list element in a display screen until a second interface is displayed; the first intermediate list element is one or more list elements between the first list element and the second list element, which 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, which are close to the second list element, in the preset list; the second interface includes a second list element therein. In this way, in the process of list jump, besides the first list element at the jump starting position and the second list element at the jump target position, the smart watch can sequentially display part of list elements between the first list element and the second list element in the preset list, so that the loading of the list elements to be displayed can be realized based on the memory and hardware resource overhead of the wearable device. And the first middle list element, the second middle list element and the second list element are sequentially displayed, so that a list scrolling effect in the list position jump process can be realized, and the user experience is improved.
On the basis of the above-described embodiments, it can be appreciated that, to display each first intermediate list element and each second intermediate list element in turn in the screen of the wearable device, it is necessary to first determine each intermediate list element, and thus an internal implementation of determining intermediate list elements is described below.
In one possible implementation, after detecting a list jump operation acting on the index bar, the method of the present application may further comprise:
determining a list jump direction according to a first position of the first list element in a preset list and a second position of the second list element in the preset list, wherein the list jump direction comprises upward jump and downward jump; determining a position offset value of the first position and the second position according to the list jump direction; and determining a plurality of intermediate list elements between the first position and the second position in a preset list according to the list jump direction and the position offset value, wherein the intermediate list elements comprise a first intermediate list element and a second intermediate list element.
In the embodiment of the application, when the intelligent watch detects the list jump operation, a first position of a first list element displayed on a first interface in a preset list is obtained, and a second position of a second list element corresponding to the list jump operation in the preset list is obtained.
The location of the list element in the preset list is first described herein. In one possible implementation, the position of the list element in the preset list may be, for example, a sequential number of the list element in the preset list. Wherein the sequence number may indicate which list element is in the preset list.
In the embodiment of the present application, the first position of the first list element in the preset list may be the sequence number of the first list element in the preset list, and the second position of the second list element in the preset list may be the ordering of the second list element in the preset list.
For example, as 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, where each list element corresponds to its own sequence number. Assuming that the first list element is the list element corresponding to "a" shown in fig. 7, the first list element may be determined to be the 3 rd list element in the preset list, and thus the first position in the current example may be determined to be 3.
And assuming that the second list element is the list element corresponding to "one" in fig. 7, it may be determined that the second list element is the 999 th list element in the preset list, and thus the second position in the current example may be determined to be 999.
In the embodiment of the present application, the position of the list element actually identifies the ordering of the list element in the preset list. Thus, if the second position is larger than the first position, i.e. the order of the second position is after the order of the first position, it can be stated that the list jump direction is a downward jump. If the second position is smaller than the first position, i.e. the order of the second position is before the order of the first position, it may be stated that the list jump direction is an upward jump.
After determining the list jump direction, a position offset value between the first position and the second position may be determined according to the list jump direction.
In one possible implementation, if the list jump direction is a downward jump, the difference of the second position minus the first position may be determined as the position offset value. Alternatively, if the list jump direction is an upward jump, the difference of the first position minus the second position may be determined as the position offset value.
Alternatively, it is understood that the position offset value in embodiments of the present application may be the absolute value of the difference between the first position and the second position.
For example, assuming that the first position is 355 and the second position is 777, since the second position is larger than the first position, it may be explained that the list jump direction is a downward jump, and the position offset value at this time is the difference 422 between the second position and the first position; assuming that the first position is 777 and the second position is 355, since the second position is smaller than the first position, it can be explained that the list jump direction is to jump upwards, and the position offset value at this time is the difference 422 between the first position and the second position.
After determining the list jump direction and the position offset value, a plurality of intermediate list elements between the first position and the second position may be determined in the preset list according to 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.
It will be appreciated that the list jump operation is intended to indicate that a list element displayed in the display is to be jumped from a first position to a second position. However, since there may be a lot of list elements between the first location and the second location, due to limited memory resources of the smart watch, there may be a problem that these list elements cannot be fully loaded into the memory and thus cannot be fully displayed, or after being fully loaded into the memory, cause system blocking and the like. 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 numerical value of the preset number can be selected according to actual requirements.
In the embodiment of the application, the number of the determined intermediate list elements is limited, that is, only a part of list elements are selected between the first position and the second position to serve as the intermediate list elements, and by selecting a part of list elements, hardware conditions such as a memory and the like based on the intelligent watch can be ensured, the display of a plurality of intermediate list elements can be realized, and further, the sliding effect can be realized based on the plurality of intermediate list elements.
In an embodiment of the present application, for example, a plurality of list elements between the first location and the second location, which are adjacent to the first location (i.e., a first intermediate list element), and a plurality of list elements between the second location, which are adjacent to the second location (i.e., a second intermediate list element) may be determined as intermediate list elements.
By way of example, if the first location is 3 and the second location is 999, i.e., a scene with more list elements between the first list element and the second list element, then a plurality of intermediate list elements may be determined between the 3 rd list element and the 999 th list element, for example.
For example, if the first position is 3 and the second position is 7, that is, the list elements between the first list element and the second list element are fewer, and the number of list elements between the first list element and the second list element is smaller than the preset number, for example, the list elements between the 3 rd list element and the 7 th list element may be determined as intermediate list elements. The manner in which the intermediate list elements are specifically determined will be described in detail in subsequent steps and will not be described in detail herein.
In the embodiment of the application, after detecting a list jump operation acting on an index bar, determining a list jump direction according to 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, wherein the list jump direction comprises upward jump and downward jump; determining a position offset value of the first position and the second position according to the list jump direction; and determining a plurality of intermediate list elements between the first position and the second position in a preset list according to the list jump direction and the position offset value, wherein the intermediate list elements comprise a first intermediate list element and a second intermediate list element. Therefore, through the list jump direction and the position offset value, by selecting a part of list elements in the preset list as middle list elements, hardware conditions such as memory and the like based on the intelligent watch can be ensured, display of a plurality of middle list elements can be realized, and further a sliding effect can be realized based on the plurality of middle list elements.
An implementation of determining the intermediate list element is described below.
In one possible implementation, when the list jump direction is a downward jump, determining, in the preset list, the plurality of intermediate list elements between the first position and the second position according to the list jump direction and the position offset value may include:
if the position offset value is greater than the preset number, determining 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 in the preset list;
if the position offset value is less than or equal to the preset number, determining a plurality of list elements between the first position and the second position as middle list elements in the preset list.
The first number and the second number may be the same or different, and the embodiment of the present application is not particularly limited.
In a possible implementation, when the position offset value is greater than the preset number, i.e. there are more list elements between the first list element and the second list element, a partial list element is selected between the first list element and the second list element such that the intermediate list element finally determined is less than or equal to the preset number.
And, to ensure that the scrolling effect appears to continue scrolling down from a first list element to a second list element, in particular, a first number of consecutive list elements after a first position (i.e., a first intermediate list element) and a second number of consecutive list elements before a second position (i.e., a second intermediate list element) are selected in embodiments of the present application. In the actual implementation process, the specific values of the first quantity and the second quantity can be selected according to actual requirements.
For example, as can be understood in conjunction with fig. 11, fig. 11 shows a schematic diagram two of a preset contact list provided in an embodiment of the present application. As shown in fig. 11, 1000 list elements may be included in the preset list. Assuming that the preset number is 6 in the present example, both the first number and the second number are 3.
Then referring to fig. 11, it is assumed that the first position N is 1 in fig. 11 and the second position M is 998 shown in fig. 11, that is, the position of the 1 st list element can currently be jumped to the position of the 998 th list element.
Because the second position M is larger than the first position N in the example of fig. 11, it can be determined that the list jump direction is a downward jump in the present case. And the position offset value in the present example is 997, which is greater than the preset number 6.
Therefore, 3 list elements after the first position N, that is, the n+1st list element, the n+2nd list element, the n+3rd list element, and 3 list elements before the second position M, that is, the M-1st list element, the M-2nd list element, and the M-3 rd list element can be determined as intermediate list elements in the preset list. Wherein 3 list elements after the first position N, that is, the n+1st list element, the n+2nd list element, and the n+3rd list element are the first intermediate list element, and 3 list elements before the second position M, that is, the M-1st list element, the M-2nd list element, and the M-3rd list element are the second intermediate list element.
In the example of fig. 11, the determined 6 middle list elements also include: list element 2, list element 3, list element 4, list element 995, list element 996, list element 997.
In a possible implementation, when the position offset value is smaller than or equal to the preset number, that is, when there are fewer list elements between the first list element and the second list element, a plurality of list elements between the first position and the second position may be determined as intermediate list elements in the preset list.
For example, as can be understood in conjunction with fig. 12, fig. 12 shows a schematic diagram three of a preset list of contacts provided in an embodiment of the present application. As shown in fig. 12, 1000 list elements may be included in the preset list. Assume that in the present example, the preset number is 6.
Then referring to fig. 12, it is assumed that the first position N is 1 in fig. 12 and the second position M is 5 shown in fig. 12, that is, the position of the 1 st list element can currently be jumped to the position of the 5 th list element.
Because the second position M is larger than the first position N in the example of fig. 12, it can be determined that the list jump direction is a downward jump in the present case. And the position offset value in the present example is 4, which is less than the preset number 6.
The list element between the first position N and the second position M can thus be determined as an intermediate list element in the preset list.
In the example of fig. 12, the determined plurality of intermediate list elements also includes: list element 2, list element 3, list element 4.
It should be noted that, for the case when there are fewer list elements between the first list element and the second list element, the middle list element may be equally divided to obtain the first middle list element and the second middle list element. For example, there are 4 intermediate list elements, then 2 intermediate list elements near the first list element are the first intermediate list element and 2 intermediate list elements near the second list element are the second intermediate list element. Alternatively, the first intermediate list element and the second intermediate list element may be determined randomly by the intermediate list elements, for example, 4 intermediate list elements, and then 3 intermediate list elements near the first list element are first intermediate list elements, and 1 intermediate list element near the second list element is second intermediate list element. In the actual implementation process, for the case when there are fewer list elements between the first list element and the second list element, the specific number of the first intermediate list element and the second intermediate list element may be selected according to actual requirements.
In the embodiment of the application, when the list jump direction is downward jump, if the position offset value is greater than the preset number, determining the first number of list elements after the first position and the second number of list elements before the second position as middle list elements in the preset list; if the position offset value is less than or equal to the preset number, determining a plurality of list elements between the first position and the second position as middle list elements in the preset list. Determining that the list element between the first position and the second position is an intermediate list element when the list element between the first position and the second position is less; when more list elements are arranged 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 are determined to be intermediate list elements, so that when the target list elements are sequentially displayed, the list elements can be scrolled downwards from the first position, and after the continuous multiple list elements are scrolled, the effect of displaying the second list elements is finally achieved. At the same time, this scrolling effect may only load a small number of list elements, and thus may be implemented 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, in the preset list, the plurality of intermediate list elements between the first position and the second position according to the list jump direction and the position offset value may include:
if the position offset value is greater than the preset number, determining a third number of list elements before the first position and a fourth number of list elements after the second position as intermediate list elements in the preset list;
if the position offset value is less than or equal to the preset number, determining a plurality of list elements between the first position and the second position as middle list elements in the preset list.
The third number and the fourth number may be the same or different, and the embodiment of the present application is not particularly limited.
In a possible implementation, when the position offset value is greater than the preset number, that is, there are more list elements between the first list element and the second list element, a part of the list elements may be selected between the first list element and the second list element, so that the finally determined intermediate list element is smaller than or equal to the preset number.
And, to ensure that the scrolling effect appears to continue scrolling up from the first list element to the second list element, in particular, a third consecutive number of list elements before the first position (i.e., the first intermediate list element) and a fourth consecutive number of list elements after the second position (i.e., the second intermediate list element) are selected in embodiments of the present application. In the actual implementation process, the specific numerical values of the third quantity and the fourth quantity can be selected according to actual requirements.
For example, as can be understood with reference to fig. 13, fig. 13 shows a schematic diagram four 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 the preset number is 6 in the present example, the third number and the fourth number are both 3.
Then referring to fig. 13, it is assumed that the first position N is 998 in fig. 13 and the second position M is 1 shown in fig. 13, that is, the position of the 998 th list element can currently be jumped to the position of the 1 st list element.
Because the second position M is smaller than the first position N in the example of fig. 13, it can be determined that the list jump direction is the upward jump in the present case. And the position offset value in the present example is 997, which is greater than the preset number 6.
Therefore, 3 list elements before the first position N, that is, the N-1 st list element, the N-2 nd list element, the N-3 rd list element, and 3 list elements after the second position M, that is, the m+1st list element, the m+2nd list element, the m+3rd list element, can be determined as intermediate list elements in the preset list. Wherein 3 list elements before the first position N, that is, the N-1 st list element, the N-2 nd list element, and the N-3 rd list element are the first middle list element, and 3 list elements after the second position M, that is, the m+1 st list element, the m+2 nd list element, and the m+3 th list element are the second middle list element.
In the example of fig. 13, the determined 6 middle list elements also include: 997 th list element, 996 th list element, 995 th list element, 4 th list element, 3 rd list element, 2 nd list element.
In a possible implementation, when the position offset value is smaller than or equal to the preset number, that is, when there are fewer list elements between the first list element and the second list element, a plurality of list elements between the first position and the second position may be determined as intermediate list elements in the preset list.
For example, as can be understood in conjunction with fig. 14, fig. 14 shows a schematic diagram five of a preset list of contacts provided in an embodiment of the present application. As shown in fig. 14, the preset list may include a preset list of 1000 list elements. Assume that in the present example, the preset number is 6.
Then referring to fig. 14, it is assumed that the first position N is 998 in fig. 14 and the second position M is 995 shown in fig. 14, that is, the position of the 998 th list element can currently be jumped to the 995 th list element.
Because the second position M is smaller than the first position N in the example of fig. 14, it can be determined that the list jump direction is the upward jump in the present case. And the position offset value in the present example is 3, which is less than the preset number 6.
The list element between the first position N and the second position M can thus be determined as an intermediate list element in the preset list.
In the example of fig. 14, the determined plurality of intermediate list elements also includes: 997 th list element, 996 th list element.
It should be noted that, for the case when there are fewer list elements between the first list element and the second list element, the middle list element may be equally divided to obtain the first middle list element and the second middle list element. For example, there are 4 intermediate list elements, then 2 intermediate list elements near the first list element are the first intermediate list element and 2 intermediate list elements near the second list element are the second intermediate list element. Alternatively, the first intermediate list element and the second intermediate list element may be determined randomly by the intermediate list elements, for example, 4 intermediate list elements, and then 3 intermediate list elements near the first list element are first intermediate list elements, and 1 intermediate list element near the second list element is second intermediate list element. In the actual implementation process, for the case when there are fewer list elements between the first list element and the second list element, the specific number of the first intermediate list element and the second intermediate list element may be selected according to actual requirements.
In the embodiment of the application, when the list jump direction is downward jump, if the position offset value is greater than the preset number, determining a third number of list elements before the first position and a fourth number of list elements after the second position as middle list elements in the preset list; if the position offset value is less than or equal to the preset number, determining a plurality of list elements between the first position and the second position as middle list elements in the preset list. Determining that the list element between the first position and the second position is an intermediate list element when the list element between the first position and the second position is less; when more list elements are arranged 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 are determined to be intermediate list elements, so that when the target list elements are sequentially displayed, the list elements can be scrolled upwards from the first position, and after the continuous multiple list elements are scrolled, the effect of displaying the second list elements is finally obtained. At the same time, this scrolling effect may only load a small number of list elements, and thus may be implemented based on the memory and hardware conditions of the wearable device.
In one possible implementation, the displaying the first intermediate list element and the second intermediate list element in the display screen sequentially until the second interface is displayed may include:
s1: loading a plurality of target list elements into a memory of the wearable device, wherein the target list elements comprise a first intermediate list element, a second intermediate list element and a second list element; and determining coordinate information of each object list element.
In the embodiment of the application, aiming at the list elements to be displayed, the list elements need to be loaded into a memory to be displayed. Thus, after determining the plurality of target list elements, the plurality of target list elements may be loaded into the memory of the wearable device. Meanwhile, when the list element is loaded into the memory, the coordinate information of the list element can be determined.
In an embodiment of the present application, the coordinate information of the list element may include an ordinate and an abscissa, where the ordinate may be an ordinate corresponding to a center point of a top edge of the list element, and the abscissa may be an abscissa corresponding to a center point of a top edge of the list element. Exemplary, fig. 15 shows a second list interface schematic provided by the embodiment of the present application. For example in the drawings 15, the ordinate of which is y shown in fig. 15 2 The abscissa is the x shown in FIG. 15 1
Alternatively, the ordinate corresponding to the center point of the bottom edge of the list element may be taken as the ordinate of the list element, so that, for example, in the example of fig. 15, the ordinate of the list element corresponding to the contact "a" is y shown in fig. 15 1
The ordinate of the list element is the ordinate y corresponding to the center point of the top edge of the list element 2 As an example. An implementation of determining the coordinate information of the list element is described below in connection with fig. 15. As shown in fig. 15, assuming that "contact" is the topmost list element and the list element is displayed in its entirety, the ordinate of the list element corresponding to "contact" is 0. Alternatively, if the top list element only shows a portion, then the ordinate of the top list element is negative.
Meanwhile, for each list element in which the height is recorded, assuming that the heights of the list elements corresponding to the "contact" and the "collection contact" in the interface shown in fig. 15 are 1 centimeter (cm), the ordinate of the list element corresponding to the "collection contact" is the sum of the ordinate of the list element corresponding to the "contact" and the height of the list element corresponding to the "contact", that is, 1cm. Ordinate y of list element corresponding to contact' a-a 2 I.e. the sum of the heights of the list element corresponding to the "favorite contact" and the list element corresponding to the "favorite contact", i.e. 2cm.
It will be appreciated that, for a newly loaded list element in the memory, when determining its coordinate information, the coordinate information of the newly loaded list element in the memory may be determined according to the coordinate information of the last list element in the memory, and in combination with the height of the last list element in the memory.
It will be appreciated that the coordinate information of each target list element may follow the listThe sliding changes. For example, in the interface shown in FIG. 15, assuming that the list is slid up 1cm so that the ordinate of "favorite contacts" is 0, the ordinate y of the list element corresponding to contact "A" is 2 The corresponding decrease is 1cm. And at this point the list element "contacts" has slipped out of the visible list, the smart watch may delete the list element "contacts" from the memory of the smart watch.
Based on the above description, it may be determined that a portion of the first intermediate list elements in the plurality of target list elements may be list elements displayed in the first interface, and it may be understood that the list elements displayed in the first interface are already loaded in the memory, so when each target list element is loaded in the memory, only the target list elements that are not loaded in the memory need to be loaded in the memory.
For example, as can be understood in conjunction with fig. 16, fig. 16 shows a schematic diagram of list elements loaded when a list jumps down, which is provided in an embodiment of the present application. In the example of fig. 16, it is assumed that the list jump direction is a downward jump, while it is assumed that the determined first intermediate list element includes the one shown in fig. 16: "first two", "Jiang Yi", "second ginger", the second intermediate list element includes the one shown in fig. 16: "S", "Shen Yi", "Cheng San". "first" in fig. 16 is a first list element, and "T" is a second list element.
It can be determined in conjunction with fig. 16 that, where the three list elements of "first", "second" and "ginger" are already displayed on the display screen, that is, the three list elements are already loaded into the memory, then it can be determined that the target list element that is not loaded into the memory includes: first intermediate list element: "ginger two", second intermediate list element: the 5 list elements "S", "Shen Yi", "flourishing three", and the second list element "T".
Meanwhile, the current list jump direction is downward jump, so that the 5 list elements can be sequentially loaded into the memory according to the sequence from small sequence numbers to large sequence numbers in a preset list. It will be appreciated that the list elements loaded into the memory may be displayed, but because of the limited screen size, the newly loaded list elements may be temporarily in an invisible area, and may be displayed on the display screen after the subsequent list elements are moved.
As can be further understood with reference to fig. 17, fig. 17 is an exemplary schematic diagram of a list element loaded when a list jumps upward according to an embodiment of the present application. In the example of fig. 17, it is assumed that the list jump direction is an upward jump, while it is assumed that the determined first intermediate list element includes the one shown in fig. 17: "Jisan", "Jiyi", "J", the second intermediate list element includes that shown in FIG. 17: "Hu San", "Hu Yi", "Han Er". "a" in fig. 17 is a first list element, and "H" is a second list element.
As can be determined in connection with fig. 17, where the list element "a-a" is already displayed on the display screen, that is, the list element is already loaded into the memory, then determining that the target list element is not loaded into the memory includes: first intermediate list element: "Jisan", "Jiyi", "J", second intermediate list element: "Hu San", "Hu Yi", "Han Er" and a second list element "H".
Meanwhile, the current list jump direction is upward jump, so that the 7 list elements can be sequentially loaded into the memory according to the position sequence from big to small in the preset list. It will be appreciated that the list elements loaded into the memory may be displayed, but because of the limited screen size, the newly loaded list elements may be temporarily in an invisible area, and may be displayed on the display screen after the subsequent list elements are moved.
Based on the above description, it may be determined that, according to the target list element loaded in the memory of the wearable device, a first intermediate list element that is not loaded in the memory may be determined in the target list element; and according to the sequence of the list elements in the preset list, sequentially loading the first intermediate list elements which are not loaded into the memory.
In the embodiment of the application, according to the loaded target list elements in the memory of the wearable device, determining the target list elements which are not loaded in the memory; and according to the sequence of the list elements in the preset list, sequentially loading the intermediate list elements and the second list elements which are not loaded into the memory. After the target list elements are determined, some target list elements are loaded in the memory of the wearable device, and the target list elements which are not loaded in the memory only need to be loaded without being loaded again, so that the hardware resource overhead of the wearable device is reduced.
S2: and determining 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 value 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 sequentially formed by the first list element, the plurality of first middle list elements, the plurality of second middle list elements and the second list elements. The difference in coordinate information here may refer to a difference in ordinate in particular.
For example, as shown in fig. 16, the list elements loaded by the downward jump of the list may be that the first list element is a list element corresponding to the contact "a-one", the second list element is a list element corresponding to the index letter "T", and the jump distance is a value obtained by subtracting the ordinate of the list element corresponding to the index letter "T" from the ordinate of the list element corresponding to the contact "a-one".
For example, as shown in fig. 17, the list elements loaded by the upward jump may be that the first list element is a list element corresponding to the contact "a-one", the second list element is a list element corresponding to the index letter "H", and the jump distance is a value obtained by subtracting the ordinate of the list element corresponding to the index letter "H" from the ordinate of the list element corresponding to the contact "a-one".
S3: and according to the jump distance, displaying each target list element in the display screen in turn.
After determining the jump distance, in a possible implementation, the jump distance is divided into a plurality of sections, so that the list to be displayed, which is sequentially formed by the first list element, the plurality of first intermediate list elements, the plurality of second intermediate list elements, and the second list element, slides section by section, i.e. the list elements in the list move. The more the number of segments the jump distance divides, the smaller the sliding distance per segment, and the smaller the sliding distance may make the movement of each list element in the list to be displayed smoother. In the sliding process, the first list element, the first intermediate list elements, the second intermediate list elements and the second list elements are sequentially displayed in the display screen, and the wearable device deletes the list elements which are slid out of the display screen, namely out of the visible list range after being displayed from the memory.
In the embodiment of the application, the first list element, the plurality of first intermediate list elements, the plurality of second intermediate list elements and the second list element are loaded into the memory of the wearable device to be spliced into the list to be displayed, the list to be displayed only comprises a small number of list elements in a preset list, and the first list element and the second list element are spliced into a list displayed in sequence. And then determining the jump distance according to the coordinate information of the first list element and the coordinate information of the second list element, and sequentially displaying each target list element in the display screen according to the jump distance, so that the effect of sliding from the first list element to the second list element after passing through some intermediate list elements can be effectively shown in the display screen.
In one possible implementation, the step S3 may include:
dividing the jump distance into a plurality of sections to obtain a plurality of sections of single movement distances; according to the list jump direction, moving the coordinate information of each target list element by a first section of single movement distance to obtain the moved coordinate information of each target list element; obtaining a visible ordinate range corresponding to the display screen; displaying the moved coordinate information of the target list element meeting the first condition corresponding to the visible ordinate range in the display screen according to the moved coordinate information, and removing the target list element, of which the moved coordinate information does not meet the first condition, from the memory; and repeatedly executing 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 moved coordinate information until the second list element is completely displayed in the display screen.
The visible ordinate range may be an ordinate range corresponding to a visible list in the list height and the list width, and the visible ordinate range may correspond to a first endpoint value and a second endpoint value, where the second endpoint value is greater than the first endpoint value.
In the embodiment of the application, the first endpoint value and the second endpoint value can be coordinates corresponding to the upper edge and the lower edge of the display screen, and the second endpoint value is larger than the first endpoint value. In the embodiment of the present application, the first endpoint value is taken as the coordinate corresponding to the upper edge of the display screen, and the second endpoint value is taken as the coordinate corresponding to the lower edge of the display screen as an example for illustration, and the example does not limit the embodiment of the present application.
In the embodiment of the present application, the coordinate information may further 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 an ordinate value corresponding to a 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 an ordinate value corresponding to a center point of the bottom edge of the target list element.
It will be appreciated that the difference between the first and second ordinate values is in fact the height of the target list element.
For example, in a coordinate system with the y-axis vertically downward in the positive direction, for example, the coordinate system shown in FIG. 15, it is assumed that y is used 1 Representing a first ordinate value, y 2 Representing a second ordinate value, then y can be determined 1 =y 2 +d. For another example, for a coordinate system in which the y-axis is vertically upward in the positive direction, it is assumed that y is used 1 Representing a first ordinate value, y 2 Representing a second ordinate valueThen y can be determined 1 =y 2 -d. For another example, for a coordinate system in which the y-axis is vertically upward in the positive direction, it is assumed that y is used 1 Representing a second ordinate value, y 2 Representing a first ordinate value, then y can be determined 2 =y 1 -d。
In the actual implementation process, the first ordinate value y is adopted 1 As the ordinate of the target list element or with a second ordinate value y 2 To indicate the ordinate of the target list element, which may be selected according to actual requirements.
In a possible implementation, the jump distance is divided into multiple sections, resulting in multiple sections of single movement distance. In a specific division, for example, the jump distance may be divided into a plurality of segments, for example, 50 pixels are used as units, and a plurality of segments of single movement distances are obtained by dividing, and each segment of movement distance is 50 pixels. Alternatively, the jump distance may be divided into a plurality of sections to obtain a plurality of sections of single movement distance.
In the embodiment of the application, the jump distance is divided, and the specific length of each section of single movement distance is not limited, and can be selected according to actual requirements. It will be appreciated that if the single movement distance is relatively small, the scrolling effect exhibited by the list is relatively smooth. If the single movement distance is relatively large, the scrolling effect exhibited by the list is relatively jumped.
It will be appreciated that the single movement distance for each segment is performed sequentially, and the first single movement distance is described below.
In one possible implementation manner, when the second position is greater than the first position, that is, when the list jumps downward, each target list element is moved upward, so that the downward jump effect can be achieved, and therefore each target list element can be moved upward by a first section of single movement distance, and the first ordinate value and the second ordinate value of each target list element are subtracted by the first section of single movement distance, so that the first ordinate value and the second ordinate value of each target list element after movement are obtained.
Or when the second position is smaller than the first position, that is, the list jumps upwards, each target list element is moved downwards, so that the upward jump effect can be realized, and therefore each target list element can be moved downwards for a first section of single movement distance, and the first ordinate value and the second ordinate value of each target list element are added with the first section of single movement distance, so that the moved ordinate value of each target list element is obtained.
Regardless of the direction of movement, after determining the moved ordinate, i.e. the second ordinate value, of the respective target list element, it may be determined whether the coordinate information of the moved target list element satisfies the first condition.
Illustratively, the moved coordinate information satisfies the target list element of the first condition, that is, the moved target list element whose first ordinate value is greater than a first end point value of the visible ordinate range (lower edge is below the top of the display screen) and whose second ordinate value is less than a second end point value of the visible ordinate range (upper edge is above the bottom of the display screen), that is, the list element still displayed in the display screen after the movement, or may be the list element newly displayed in the display screen after the movement. For this portion of the target list element, the target list element may be displayed in the display screen according to the moved coordinate information.
And, the moved coordinate information does not satisfy the target list element of the first condition, that is, the target list element of which the first ordinate value after movement is less than or equal to the first end point value of the visible ordinate range (the lower edge is above the top of the display screen), or the target list element of which the second ordinate value is greater than or equal to the second end point value of the visible ordinate range (the upper edge is below the bottom of the display screen), that is, the list element of which the display screen is ejected after movement. For this portion of the target list element, it is removed from memory. After the first section of single movement distance is moved, each target list element also obtains new coordinate information, and then the next section of single movement distance can be continuously moved, and the operation of displaying or removing the target list element according to the moved coordinate information can be continuously performed until the movement corresponding to the last section of single movement distance is completed, and the second list element is completely displayed in the display screen.
Because the jump distance between the first list element and the second list element is divided into a plurality of sections of single movement distance in the embodiment of the application, the second list element is displayed in the display screen after the last section of single movement distance movement is completed.
Fig. 18 is a schematic diagram illustrating sequential display of list elements in a list downward skip procedure according to an embodiment of the present application.
In the example of fig. 18, as shown in a of fig. 18, when the wearable device detects a click operation of the user on index "T", the wearable device may determine the following list element: "first", "second", "Jiang Yi", "second", "S", "Shen Yi", "Sheng san", "T". Wherein "A" is a first list element, "T" is a second list element, and the rest are intermediate list elements. The first list element, the intermediate list element, and the second list element may then be loaded into the memory of the wearable device. When each of the above list elements has not been moved, the display state thereof is as shown in a in fig. 18, and 3 list elements of "first", "second" and "first" are already displayed on the display screen, and 5 list elements of "second", "S", "Shen Yi", "third" and "T" are located in the invisible area.
And, assuming that the first endpoint value of the visible ordinate range corresponding to the display screen is 0 and the second endpoint value is the list height s, the conditions for the visibility of the list elements in the embodiment of the present application are: the second ordinate value corresponding to the upper edge is greater than 0, and the first ordinate value corresponding to the lower edge is less than s.
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, dividing the jump distance D into n segments to obtain n-segment single movement distance D 1 、D 2 、D 3 ……D n
In the diagram shown in a of figure 18,assume that the second ordinate value of the first list element A is 0 and that the first segment is moved a single time by a distance D 1 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 moved upwards by a first single movement distance D 1 That is, the first list element, each intermediate list element, and the first and second ordinate values of the second list element are each reduced by the first single movement distance D 1 A graph shown in b of fig. 18 is obtained.
At this time, the second ordinate value of the list element corresponding to the contact 'A-A' is-D 1 A second ordinate value-D smaller than 0 and corresponding to the contact A 1 If the sum of the heights of the list elements corresponding to the contact "a-a" is 0, that is, the first ordinate value of the list element corresponding to the contact "a-a" is 0, it may be determined that the list element corresponding to the contact "a-a" has moved out of the visible ordinate range. Thus, the wearable device removes the list element corresponding to contact "a" from memory. Contact "Jia di" corresponding list element also moves up D 1 The second ordinate value of which becomes 0, i.e. the list element corresponding to contact "first two" becomes the first list element in the visible list.
And, in the graph shown in a of fig. 18, it is assumed that the second ordinate value of the list element corresponding to the contact "ginger two" is the list height s, and the first segment is moved upward by the single movement distance D 1 And then, the method is carried out. In the graph shown in fig. 18 b, the second ordinate value of the list element corresponding to the contact "ginger two" becomes the list height s minus the first single movement distance D 1 The resulting value is less than s, and therefore, the list element corresponding to the contact "ginger two" is moved from the invisible area to the visible list, and is displayed in the display screen with reference to b of fig. 18. And the target list elements in other invisible areas are also sequentially moved up by the first single movement distance D 1
It will be appreciated that embodiments of the application areWith a first single movement distance D 1 For example, the first movement distance D is equal to the height of the first list element 1 Or may be smaller or larger than the height of the first list element.
Exemplary, when the first segment is moved a single distance D 1 When the height of the contact is smaller than that of the first list element, the second ordinate value of the list element corresponding to the contact A is-D 1 Less than 0, the visible range has been exceeded. The first ordinate value of the list element corresponding to contact "a" is still greater than 0 and therefore the list element corresponding to contact "a" is still in the visible list.
Exemplary, when the first segment is moved a single distance D 1 When the contact person A is greater than the height of the first list element, the second ordinate value of the list element corresponding to the contact person A is-D 1 Less than 0. At the same time, because of the first single movement distance D 1 The first ordinate value of the list element corresponding to the contact "a-one" is also smaller than 0, i.e. the list element corresponding to the contact "a-one" has moved out of the visible ordinate range, so that the wearable device can remove the list element corresponding to the contact "a-one" from the memory.
Optionally, when the jump distance is segmented, the single movement distance can be made smaller as much as possible, so that the distance of each movement of the first list element, each middle list element and the second list element is smaller, the scrolling effect of the list can be smoother, and the user experience is improved.
After the first single movement distance movement described above is completed, similarly, each intermediate list element in the memory of the wearable device is continuously moved up by the second single movement distance D along the ordinate of the second list element 2 . In the diagram shown in fig. 18 b, the second ordinate value of the list element corresponding to the first list element contact "first two" is 0, assuming that the second segment is moved a single distance D 2 Equal to the height of the list element corresponding to contact "first two". Thereafter, each middle columnThe table element, and the coordinate information of the second list element are moved upward by the second single movement distance D 2 That is, each intermediate list element, and the first and second ordinate values of the second list element are each subtracted by the second single movement distance D 2 A graph shown in fig. 18 c is obtained.
At this time, the second ordinate value of the list element corresponding to the contact 'Jia two' is-D 2 Less than 0, and because the distance currently moved is D 2 The height of the list element corresponding to the contact 'Jia two'. Therefore, the first ordinate value of the list element corresponding to the contact "first two" is 0, that is, the list element corresponding to the contact "first two" has moved out of the visible ordinate range, and therefore, the wearable device removes the list element corresponding to the contact "first two" from the memory. The list element corresponding to the contact 'ginger one' also moves upwards by D 2 The second ordinate value of which becomes 0, i.e. the list element corresponding to the contact "ginger one" becomes the first list element in the visible list.
In the diagram shown in b of FIG. 18, it is assumed that the second ordinate value of the list element corresponding to the index letter "S" is the list height S, and the second segment is moved upward by the single movement distance D 2 Thereafter, in the graph shown in c of FIG. 18, the second ordinate value of the list element corresponding to the index letter "S" is the list height S minus the second single movement distance D 2 The resulting value is less than S, and therefore, the list element corresponding to the index letter "S" is moved from the invisible area into the visible list, and the list element corresponding to the index letter "S" is displayed in the display screen, as shown with reference to c of fig. 18. A kind of electronic device with a high-pressure air-conditioning system. The middle list element and the second list element in other invisible areas are also sequentially moved up by a second segment single movement distance D 2。
It will be appreciated that the second single movement distance D 2 Or may be less than or greater than the height of the corresponding list element of the contact "first two". The implementation is similar to that described above and will not be repeated here.
Similarly, and so on, in the graph shown in c of FIG. 18, the graph continues to be applicableRemaining intermediate list elements in the memory of the wearable device, and the second list element being moved up a third single movement distance D 3 Fourth single movement distance D 4 .. distance D for single movement up to the m-th segment m When the list element corresponding to the index letter "T", i.e. the second list element, is moved to the last list element in the visible list, i.e. displayed in the display screen, which displays the interface as shown in d of fig. 18. Wherein m is less than n.
Then, the list may continue to slide upwards, for the coordinate system shown in fig. 14, for example, in the interface shown in d of fig. 18, when the first ordinate value corresponding to the lower edge of the list element corresponding to the index letter "T" is smaller than the height of the list, loading the next list element of the list element corresponding to the index letter "T" in the preset list into the memory of the wearable device, and along with the upward sliding of the list, moving and displaying the next list element of the list element corresponding to the index letter "T" in the preset list in the display screen. As shown in the interface of e of fig. 18, 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 person "pottery one", is displayed at the bottom of the display screen, and the second ordinate value thereof 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; the first ordinate value may be greater than or equal to the list height.
Assume that the height of the list element corresponding to contact "Shen Yi" in the interface shown in D of FIG. 18 is equal to the n-1 th segment single move distance D n-1 At this time, the second ordinate value of the list element corresponding to the contact "Shen Yi" is-D n-1 Less than 0, and because the distance currently moved is D n-1 The height of the list element corresponding to contact "Shen Yi". Thus, the first ordinate value of the list element corresponding to contact "Shen Yi" is 0, i.e. the list element corresponding to contact "Shen Yi" has moved out of the visible ordinate range, and thus the wearable deviceThe list element corresponding to contact "Shen Yi" is removed from memory. List element corresponding to contact 'flourishing three' is also moved up D n-1 The second ordinate value of which becomes 0, i.e. the list element corresponding to the contact "flourishing three" becomes the first list element in the visible list, the display screen displays an interface as shown in e of fig. 18.
Then, the list may continue to slide upwards, in the interface shown in fig. 18 e, when the first ordinate value corresponding to the lower edge of the list element corresponding to the contact "pottery one" is smaller than the height of the list, loading the next list element of the list element corresponding to the contact "pottery one" in the preset list into the memory of the wearable device, and along with the upward sliding of the list, moving and displaying the next list element of the list element corresponding to the contact "pottery one" in the preset list in the display screen. As shown in the interface f of fig. 18, the next list element of the list element corresponding to the contact "pottery one" in the preset list, that is, the list element corresponding to the contact "pottery two", is displayed at the bottom of the display screen, and the second ordinate value of the next list element is the first ordinate value of the list element corresponding to the contact "pottery one", that is, the sum of the second ordinate value of the list element corresponding to the contact "pottery one" and the height of the list element; the first ordinate value may be greater than or equal to the list height.
Assume that the height of the list element corresponding to the contact "ceramic one" in the interface shown in e of fig. 18 is equal to the nth segment single movement distance D n At this time, the second ordinate value of the list element corresponding to the contact 'ceramic one' is-D n Less than 0, and because the distance currently moved is D n The height of the list element corresponding to the contact 'ceramic one'. Thus, the first ordinate value of the list element corresponding to the contact "ceramic-one" is 0, i.e. the list element corresponding to the contact "ceramic-one" has moved out of the visible ordinate range, and thus the wearable device removes the list element corresponding to the contact "ceramic-one" from the memory. The list element corresponding to the index letter "T" is also shifted up by D n The list element whose second ordinate value becomes 0, i.e. the index letter "T" corresponds toThe first list element in the visual list is displayed and the display screen displays an interface as shown in f of fig. 18. The jump from the first list element to the second list element with the scrolling effect is completed.
In the embodiment of the application, the jump distance is divided into a plurality of sections to obtain a plurality of sections of single movement distances; according to the list jump direction, moving the coordinate information of each target list element by a first section of single movement distance to obtain the moved coordinate information of each target list element; obtaining a visible ordinate range corresponding to the display screen; displaying the moved coordinate information in the target list element in the visible ordinate range in the display screen according to the moved coordinate information, and removing the target list element with the moved coordinate information exceeding the visible ordinate range from the memory; and repeatedly executing 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 moved coordinate information until the second list element is completely displayed in the display screen. The jump distance is divided into a plurality of sections of single movement distances, the first list element, each middle list element and the second list element are sequentially moved by the single movement distance according to the list jump direction, and when the single movement distance is smaller, the movement of each list element can be smoother.
On the basis of the foregoing embodiments, in order to more clearly describe the technical solution of the embodiment of the present application, for example, please refer to fig. 19, fig. 19 shows a schematic flow chart of a list process provided by the embodiment of the present application, which includes:
s1901: triggering a list jump.
In a possible implementation, the user may trigger a list jump operation in the wearable device by triggering an index of the list in the UI. Of course, the list jump may be triggered in other manners, and the manner of triggering the list jump is not particularly limited in the embodiment of the present application, so long as the list in the wearable device can be jumped.
S1902: a first location and a second location are acquired.
This step is similar or identical to the step S601 described above, and will not be described again here.
S1903: it is determined whether the second position is greater than the first position.
If the second position is after the first position, that is, if the second position is greater than the first position, that is, if the list jumps downward, step S1904 is performed;
if the second position is before the first position, that is, if the second position is smaller than the first position, that is, if the list jumps upward, the process proceeds to step S1908.
S1904: and calculating a position offset value when the list jumps downwards.
In a possible implementation, the position offset value when the list jumps down may be the value obtained by subtracting the second position from the first position.
S1905: and judging whether the position offset value is larger than a preset number.
If the position offset value is greater than the preset number, that is, if there are more list elements between the first position and the second position, step S1906 is performed;
if the position offset value is less than or equal to the preset number, that is, the list elements between the first position and the second position are fewer, step S1907 is performed.
S1906: and loading the first number of list elements after the first position and the second number of list elements before the second position, and the first list element and the second list element into a memory of the wearable device.
In a possible implementation, when the first number of list elements (i.e., the first middle list element) after the first location and the second number of list elements (i.e., the second middle list element) before the second location are loaded into the memory of the wearable device, the coordinate information of each list element may be determined, which may specifically refer to the embodiment corresponding to fig. 11 and will not be described herein. After the coordinate information of each list element is determined, the process advances to step S1912.
S1907: and loading the plurality of list elements between the first position and the second position and the first list element and the second list element into a memory of the wearable device.
In a possible implementation, when the plurality of list elements between the first location and the second location and the first list element and the second list element are loaded into the memory of the wearable device, the coordinate information of each list element may be determined, and this step may specifically refer to the embodiment corresponding to fig. 12 and will not be described herein. After the coordinate information of each list element is determined, the process advances to step S1912.
S1908: and calculating a position offset value when the list jumps upwards.
In a possible implementation, the position offset value when the list jumps up may be the value obtained by subtracting the first position from the second position.
S1909: and judging whether the position offset value is larger than a preset number.
If the position offset value is greater than the preset number, that is, if there are more list elements between the first position and the second position, step S1910 is performed;
if the position offset value is less than or equal to the preset number, that is, the list elements between the first position and the second position are fewer, step S1911 is performed.
S1910: and loading the third number of list elements before the first position and the fourth number of list elements after the second position, and the first list element and the second list element into a memory of the wearable device.
In a possible implementation, when the third number of list elements before the first location (i.e. the first middle list element) and the fourth number of list elements after the second location (i.e. 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 each list element may be determined, which may specifically refer to the embodiment corresponding to fig. 13 and will not be described herein. After the coordinate information of each list element is determined, the process advances to step S1912.
S1911: and loading the plurality of list elements between the first position and the second position and the first list element and the second list element into a memory of the wearable device.
In a possible implementation, when the plurality of list elements between the first location and the second location and the first list element and the second list element are loaded into the memory of the wearable device, the coordinate information of each list element may be determined, and this step may specifically refer to the embodiment corresponding to fig. 14 and will not be described herein. After the coordinate information of each list element is determined, the process advances to step S1912.
S1912: and calculating the list jump distance.
This step can be referred to the above step S2, and will not be described herein.
S1913: dividing list distance into segments D 1 ~D n
Dividing the list distance into multiple sections to obtain multiple sections of single movement distance D 1 ~D n . This step can be specifically referred to the above embodiment corresponding to fig. 14, and will not be described herein.
S1914: judging the i-th section single movement distance D i Whether or not to move at a plurality of sections of single movement distance D 1 ~D n I.e. if i is smaller than n.
If i is smaller than n, the process advances to step S1916.
If i is greater than or equal to n, the movement of each list element is ended, and the list jump is completed.
S1915: move the first list element and each target list element by D i
The target list element may include a first intermediate list element, a second intermediate list element, and a second list element.
According to the list jump direction, moving the first list element and the ordinate of each target list element by the ith section single movement distance D i
S1916: it is determined whether the second position is greater than the first position.
If the second position is greater than the first position, i.e. the list jumps downwards, step S1917 is entered;
if the second position is smaller than the first position, i.e. the list jumps upwards, step S1918 is performed.
S1917: the first list element in the display is processed.
In a possible implementation, a first list element in the display is removed when the sum of the coordinates of the list element and the height of the list element is less than or equal to 0. This step can be specifically referred to the above embodiment corresponding to fig. 18, and will not be described herein.
S1918: the last list element in the display is processed.
In a possible implementation, the last list element in the display is removed when its coordinates are greater than or equal to the list height.
S1919: and after waiting for the scrolling interval, continuously moving the ordinate 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, ending the movement of each target list element, and completing the list skip.
Wherein the scroll interval may be a time after the target list element is moved a single movement distance, waiting to move the next single movement distance.
In the embodiment of the application, the target list elements between the first position and the second position and close to the first position and the second position are loaded in the memory of the wearable device, and a scrolling effect is performed in a list formed by the target list elements, namely, each target list element is displayed in sequence, and is removed after the display is completed. Therefore, only part of list elements in the preset list are loaded, memory and hardware resources based on the wearable device can be effectively guaranteed, loading of part of list elements between the first list elements and the second list elements can be achieved, list scrolling effect during list position skip can be achieved through sequentially displaying of each target list element, and user experience is improved.
The method provided by the embodiment of the present application is described above with reference to fig. 6 to 19, and the device for performing the method provided by the embodiment of the present application is described below. As shown in fig. 20, fig. 20 is a schematic structural diagram of a list processing apparatus provided in an embodiment of the present application, where the list processing apparatus may be a wearable device in the embodiment of the present application, or may be a chip or a chip system in the wearable device.
As shown in fig. 20, the list processing apparatus 2000 may be used in a communication device, a circuit, a hardware component, or a chip, and the list processing apparatus 2000 may include: display unit 2001 and processing unit 2002. Among them, the display unit 2001 is used to support display of interfaces in a display screen, for example, display of a first interface and a second interface. The processing unit 2002 is for supporting the list processing device 2000 to perform the steps of the list processing, for example, the processing unit 2002 may be used for processing the steps S601 to S604 in fig. 6.
The processing unit 2002 may be integrated with the display unit 2001, and communication may occur between the processing unit 2002 and the display unit 2001.
In one possible implementation, the list processing apparatus 2000 may further include: a storage unit 2004. The memory unit 2004 may include one or more memories, which may be one or more devices, devices in a circuit for storing programs or data.
The memory unit 2004 may exist separately and be connected to the processing unit 2002 by a communication bus. The memory unit 2004 may also be integrated with the processing unit 2002.
Taking the example that the list processing apparatus 2000 may be a chip or a chip system of the wearable device in the embodiment of the present application, the storage unit 2004 may store computer-executed instructions of a method of the wearable device, so that the processing unit 2002 performs the method of the wearable device in the embodiment described above. The storage unit 2004 may be a register, a cache or random access memory (random access memory, RAM) or the like, and the storage unit 2004 may be integrated with the processing unit 2002. The storage unit 2004 may be a read-only memory (ROM) or other type of static storage device that may store static information and instructions, and the storage unit 2004 may be independent of the processing unit 2002.
In one possible implementation, the list processing apparatus 2000 may further include: a communication unit 2003. Wherein the communication unit 2003 is used to support the interaction of the list processing apparatus 2000 with other devices. For example, when the list processing apparatus 2000 is an electronic device, the communication unit 2003 may be a communication interface or an interface circuit. When the list processing apparatus 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, pins or circuitry, etc.
The device of the embodiment of the present application may be correspondingly used to perform the steps performed in the foregoing method embodiment, and its implementation principle and technical effects are similar, and will not be described herein again.
Fig. 21 is a schematic hardware structure of an electronic device according to an embodiment of the present application, as shown in fig. 21, where the electronic device includes a processor 2101, a communication line 2104 and at least one communication interface (illustrated in fig. 21 by taking a communication interface 2103 as an example).
The processor 2101 may be a general purpose central processing unit (central processing unit, CPU), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the programs of the present application.
Communication lines 2104 may include circuitry for communicating information between the components described above.
The communication interface 2103 uses any transceiver-like device for communicating with other devices or communication networks, such as ethernet, wireless local area network (wireless local area networks, WLAN), etc.
Possibly, the electronic device may also comprise a memory 2102.
The memory 2102 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc read-only memory (compact disc read-only memory) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and coupled to the processor via communication line 2104. The memory may also be integrated with the processor.
The memory 2102 is used for storing computer-executable instructions for performing aspects of the present application, and is controlled by the processor 2101 for execution. The processor 2101 is configured to execute computer-executable instructions stored in the memory 2102 to implement the methods provided by embodiments of the present application.
Possibly, the computer-executable instructions in the embodiments of the present application may also be referred to as application program codes, which are not limited in particular.
In a particular implementation, the process 2101 may include, as one embodiment, one or more CPUs, such as CPU0 and CPU1 in fig. 21.
In a particular implementation, the electronic device may include multiple processors, such as processor 2101 and processor 2105 in FIG. 21, as one embodiment. Each of these processors may be a single-core (single-CPU) processor or may be a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
Fig. 22 is a schematic structural diagram of a chip according to an embodiment of the present application. Chip 2200 includes one or more (including two) processors 2202 and communication interfaces 2203.
In some implementations, the memory 2204 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.
In an embodiment of the application, memory 2204 may include read only memory and random access memory and provide instructions and data to processor 2202. A portion of the memory 2204 may also include non-volatile random access memory (NVRAM).
In an embodiment of the application, memory 2204, communication interface 2203, and processor 2202 are coupled together by bus system 2201. The bus system 2201 may include a power bus, a control bus, a status signal bus, and the like, in addition to a data bus. For ease of description, the various buses are labeled as bus system 2201 in FIG. 22.
The methods described above for embodiments of the present application may be implemented in the processor 2202 or by the processor 2202. The processor 2202 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the methods described above may be performed by integrated logic circuitry in hardware or instructions in software in the processor 2202. The processor 2202 described above may be a general purpose processor (e.g., a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate array (field-programmable gate array, FPGA) or other programmable logic device, discrete gates, transistor logic, or discrete hardware components, and the processor 2202 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the application.
The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a state-of-the-art storage medium such as random access memory, read-only memory, programmable read-only memory, or charged erasable programmable memory (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 in combination with the hardware, performs the steps of the method. The principle and technical effects of the present application are similar to those of the above-described related embodiments, and will not be described in detail herein.
The embodiment of the application also provides a computer readable storage medium. The computer-readable storage medium stores a computer program. The computer program realizes the above method when being executed by a processor. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer readable media can include computer storage media and communication media and can include any medium that can transfer a computer program from one place to another. The storage media may be any target media that is accessible by a computer.
In one possible implementation, the computer readable medium may include RAM, ROM, compact disk-read only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium targeted for carrying or storing the desired program code in the form of instructions or data structures and accessible by a computer. Also, any connection is properly termed 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 (digital subscriber line, DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes optical disc, laser disc, optical disc, digital versatile disc (digital versatile disc, DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
Embodiments of the present application provide a computer program product comprising a computer program which, when executed, causes a computer to perform the above-described method.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing detailed description of the application has been presented for purposes of illustration and description, and it should be understood that the foregoing is by way of illustration and description only, and is not intended to limit the scope of the application.

Claims (14)

1. A list processing method, characterized by being applied to a wearable device, the wearable device comprising a display screen, the method comprising:
displaying a first interface in the display screen, wherein the first interface comprises a first list element and an index bar, and the first list element is one list element in a preset list;
detecting a list jump operation acting on the index bar, wherein the list jump operation is used for jumping to a second list element of the preset list;
responding to the list jump operation, and sequentially displaying a first intermediate list element and a second intermediate list element in 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 a 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 list element is included in the second interface.
2. The method of claim 1, wherein the first intermediate list element comprises a consecutive N list elements in the preset list adjacent to the first list element; and/or the second intermediate list element comprises continuous M list elements adjacent to the second list element in the preset list; n and M are integers greater than 0.
3. The method of claim 1, wherein the first interface further comprises some or all of the first intermediate list element; and/or, the second interface further comprises a part or all of the second intermediate list element.
4. The method of claim 1, wherein the index bar includes a plurality of index elements arranged in sequence, and wherein the list jump operation includes an operation of clicking on a first index element in the index bar.
5. The method of claim 1, wherein after the detecting a list jump operation on the index bar, the method further comprises:
determining a list jump direction according to a first position of the first list element in the preset list and a second position of the second list element in the preset list, wherein the list jump direction comprises upward jump and downward jump;
determining a position offset value of the first position and the second position according to the list jump direction;
and 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, wherein the intermediate list elements comprise the first intermediate list element and the second intermediate list element.
6. The method of claim 5, wherein the list jump direction is a downward jump;
the determining, in the preset list, a plurality of intermediate list elements between the first position and the second position according to the list jump direction and the position offset value, including:
if the position offset value is greater than a preset number, determining a first number of list elements after the first position and a second number of list elements before the second position as the middle list elements in the preset list;
and if the position offset value is smaller than or equal to the preset number, determining a plurality of list elements between the first position and the second position as the middle list element in the preset list.
7. The method of claim 5, wherein the list jump direction is an upward jump;
the determining, in the preset list, a plurality of intermediate list elements between the first position and the second position according to the list jump direction and the position offset value, including:
if the position offset value is greater than a preset number, determining a third number of list elements before the first position and a fourth number of list elements after the second position as the middle list elements in the preset list;
And if the position offset value is smaller than or equal to the preset number, determining a plurality of list elements between the first position and the second position as the middle list element in the preset list.
8. The method according to any one of claims 1-7, wherein displaying the first intermediate list element and the second intermediate list element in the display in sequence until the second interface is displayed comprises:
sequentially loading a plurality of target list elements into a memory of the wearable device, wherein the target list elements comprise the first intermediate list element, the second intermediate list element and the second list element;
determining coordinate information of each target list element;
determining a jump distance according to the coordinate information of the first list element and the coordinate information of the second list element;
and displaying each target list element in turn according to the jump distance.
9. The method of claim 8, wherein displaying each of the target list elements in turn according to the jump distance comprises:
dividing the jump distance into a plurality of sections to obtain a plurality of sections of single-movement distances;
According to the list jump direction, moving the coordinate information of each target list element by a first section of single movement distance to obtain the moved coordinate information of each target list element;
obtaining a visible ordinate range corresponding to the display screen;
displaying the moved coordinate information in the display screen according to the target list elements of which the moved coordinate information meets the first condition corresponding to the visible ordinate range, and removing the target list elements of which the moved coordinate information does not meet the first condition from the memory;
and repeatedly executing 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 moved coordinate information until the second list element is completely displayed in the display screen.
10. The method of claim 9, wherein the visible ordinate range corresponds to a first endpoint value and a second endpoint value, the second endpoint value being greater than the first endpoint value; the coordinate information includes: 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 first condition is: the first ordinate value is greater than a first endpoint value of the visible ordinate range and the second ordinate value is less than a second endpoint value of the visible ordinate range.
11. The method of claim 8, wherein loading the plurality of target list elements into a memory of the wearable device comprises:
according to the loaded target list elements in the memory of the wearable device, determining target list elements which are not loaded in the memory in the target list elements;
and according to the sequence of list elements in the preset list, loading target list elements which are not loaded into the memory in sequence.
12. An electronic device, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executing computer-executable instructions stored in the memory to cause the electronic device to perform the method of any one of claims 1-11.
13. A computer readable storage medium storing a computer program, which when executed by a processor implements the method according to any one of claims 1-11.
14. A computer program product comprising a computer program which, when run, causes a computer to perform the method of any of claims 1-11.
CN202211336853.3A 2022-10-28 2022-10-28 List processing method, device and storage medium Active CN116700854B (en)

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 true CN116700854A (en) 2023-09-05
CN116700854B 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101336407A (en) * 2005-12-08 2008-12-31 苹果公司 List scrolling in response to moving contact over list of index symbols
CN101371217A (en) * 2005-12-23 2009-02-18 苹果公司 Scrolling list with floating adjacent index symbols
CN103631497A (en) * 2012-08-27 2014-03-12 三星电子株式会社 Method of controlling a list scroll bar and an electronic device using the same
CN105912229A (en) * 2015-12-11 2016-08-31 乐视移动智能信息技术(北京)有限公司 Control method for list sliding and device thereof
CN110598026A (en) * 2019-08-19 2019-12-20 北京创鑫旅程网络技术有限公司 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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101336407A (en) * 2005-12-08 2008-12-31 苹果公司 List scrolling in response to moving contact over list of index symbols
CN101371217A (en) * 2005-12-23 2009-02-18 苹果公司 Scrolling list with floating adjacent index symbols
CN103631497A (en) * 2012-08-27 2014-03-12 三星电子株式会社 Method of controlling a list scroll bar and an electronic device using the same
CN105912229A (en) * 2015-12-11 2016-08-31 乐视移动智能信息技术(北京)有限公司 Control method for list sliding and device thereof
CN110598026A (en) * 2019-08-19 2019-12-20 北京创鑫旅程网络技术有限公司 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

Also Published As

Publication number Publication date
CN116700854B (en) 2024-06-18

Similar Documents

Publication Publication Date Title
US10419823B2 (en) Method for controlling multimedia playing, apparatus thereof and storage medium
CN111399956B (en) Content display method and device applied to display equipment and electronic equipment
KR102137647B1 (en) Display method and terminal device
CN109059955B (en) Method and device for drawing indication mark in electronic map navigation
CN110796725B (en) Data rendering method, device, terminal and storage medium
CN108228358B (en) Method, device, mobile terminal and storage medium for correcting vertical synchronization signal
CN114629882B (en) Information display method, apparatus, electronic device, storage medium, and program product
CN109189300B (en) View circulation display method and device
CN110471594B (en) Page adjusting method, device, equipment and medium
CN111190520A (en) Menu item selection method and device, readable medium and electronic equipment
CN110825286A (en) Image processing method and device and electronic equipment
CN112530205A (en) Airport parking apron airplane state detection method and device
CN116719598A (en) Tree data virtual rolling processing method and device
CN111796825A (en) Bullet screen drawing method, device, equipment and storage medium
CN107783749A (en) A kind of display methods of view data, device and mobile terminal
CN113595662B (en) Signal prompting method, device, terminal equipment and storage medium
CN110784672A (en) Video data transmission method, device, equipment and storage medium
CN116700854B (en) List processing method, device and storage medium
CN111857915B (en) Application page display method and device
CN113010300B (en) Image effect refreshing method and device, electronic equipment and computer readable storage medium
CN111930228A (en) Method, device, equipment and storage medium for detecting user gesture
CN110069186B (en) Method and equipment for displaying operation interface of application
CN115495519A (en) Report data processing method and device
CN108269223B (en) Webpage graph drawing method and terminal
CN111596987B (en) Page display method and device 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