List scrolling method and vehicle
By determining the visibility of anchor list items in the vehicle cabin and controlling their alignment with the visible area of the list, the problem of incomplete display of list items in the prior art is solved, thus improving the user's browsing experience.
Patent Information
- Application Number
- CN202611305864.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-26
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, the vehicle cabin list scrolling method cannot achieve complete browsing of list items, resulting in a poor user browsing experience, especially when the list items have inconsistent heights, some content is skipped or displayed across pages.
By determining the visibility state of anchor list items and controlling their alignment with the top or bottom of the list's visible area when they are not fully displayed, a single scroll can ensure that the items are fully displayed within the list's visible area.
It improves the user's browsing experience, avoids issues such as skipping remaining content in list items and displaying content across pages, and enables complete browsing of list items.
Smart Images

Figure CN123177705A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle cockpit technology, and in particular to a list scrolling method and a vehicle. Background Technology
[0002] With the development of technology, vehicles are offering more and more functions to meet the growing needs of users. Currently, the "see and speak" functionality of smart cockpits is becoming widespread, allowing users to control vehicle cockpit functions via voice commands. In particular, when displaying lists on the in-vehicle display interface, there is often a problem where multiple list items cannot be displayed at once. In such cases, users can use commands to control the list to flip through pages, allowing them to view other list items.
[0003] In related technologies, when users control the scrolling of a list displayed on an in-vehicle screen via voice commands, the scrolling is typically controlled by a fixed number of items or a fixed step size. However, this method can result in a poor user browsing experience. Summary of the Invention
[0004] This application provides a list scrolling method and a vehicle that allows anchor list items to be fully displayed within the visible area of the list in a single scroll, enabling complete browsing of list items and thus improving the user's browsing experience. The technical solution includes the following:
[0005] Firstly, a list scrolling method is provided, the method comprising: In response to a target scroll command, an anchor list item is determined from a list view area, the list view area including at least one list item currently displayed in the target list, the anchor list item being used to indicate a reference scroll position for the scroll operation; Determine the visibility state of the anchor list item, wherein the visibility state is used to indicate whether the content in the anchor list item is fully displayed within the visible area of the list; If the content of the anchor list item is not fully displayed in the visible area of the list when the visible state indicates that the anchor list item can be fully displayed in the visible area of the list, then the anchor list item is controlled to be aligned with the top or bottom of the visible area of the list.
[0006] In this application, after receiving the target scrolling instruction, the anchor list item can be determined from the list's visible area, that is, the baseline scrolling position for subsequent scrolling operations can be determined. Then, the visibility state of the anchor list item is determined, indicating whether the content of the anchor list item is fully displayed within the list's visible area, such as whether it is entirely displayed or only partially displayed. If the visibility state indicates that the content of the anchor list item is not fully displayed, it is determined whether the anchor list item can be fully displayed within the list's visible area. If the anchor list item can be fully displayed within the list's visible area, the anchor list item is aligned with the top or bottom of the list's visible area. In this way, by determining the visibility state of anchor list items, and when the visibility state indicates that the content of the anchor list item is not fully displayed but the anchor list item can be fully displayed within the list's visible area, the anchor list item can be fully displayed within the list's visible area by controlling its alignment with the top or bottom of the list's visible area. This allows the anchor list item to be fully displayed within the list's visible area with a single scroll. Compared to existing technologies that scroll with a fixed number of items or a fixed step size, this avoids the problem of skipping the remaining content of the list items and displaying content across pages after scrolling. For users, this allows for a complete browsing of the list items, thereby improving the user's browsing experience.
[0007] Secondly, a list scrolling device is provided, the device comprising: A first determining module is configured to determine an anchor list item from a list view area in response to a target scrolling instruction. The list view area includes at least one list item currently displayed in the target list, and the anchor list item is used to indicate a reference scrolling position for the scrolling operation. The second determining module is used to determine the visibility state of the anchor list item, wherein the visibility state is used to indicate whether the content in the anchor list item is fully displayed in the visible area of the list; The control module is configured to, when the content of the anchor list item is not fully displayed in the visible area of the list under the visibility state indication, align the anchor list item with the top or bottom of the visible area of the list if the anchor list item can be fully displayed in the visible area of the list.
[0008] Thirdly, a vehicle is provided, the vehicle comprising: Memory, used to store executable program code; A processor is configured to call and run the executable program code from the memory, causing the vehicle to perform the list scrolling method described above.
[0009] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described list scrolling method.
[0010] Fifthly, a computer program product containing instructions is provided that, when run on a computer, causes the computer to perform the steps of the list scrolling method described above.
[0011] It is understood that the beneficial effects of the second, third, fourth, and fifth aspects mentioned above can be found in the relevant descriptions in the first aspect above, and will not be repeated here. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a schematic diagram of a first prior art list scrolling method provided in the embodiments of this application; Figure 2 This is a schematic diagram of a second prior art list scrolling method provided in the embodiments of this application; Figure 3 This is a schematic diagram of a third prior art list scrolling method provided in the embodiments of this application; Figure 4 This is a schematic diagram of a list scrolling system structure provided in an embodiment of this application; Figure 5 This is a flowchart of a list scrolling method provided in an embodiment of this application; Figure 6 This is a flowchart of another list scrolling method provided in an embodiment of this application; Figure 7 This is an interactive diagram of a list scrolling method provided in an embodiment of this application; Figure 8 This is a schematic diagram illustrating the effect of the first list scrolling method provided in the embodiments of this application; Figure 9 This is a schematic diagram illustrating the effect of the second list scrolling method provided in the embodiments of this application; Figure 10 This is a schematic diagram of the structure of a list scrolling device provided in an embodiment of this application; Figure 11 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application. Detailed Implementation
[0014] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0015] It should be understood that "multiple" as mentioned in this application refers to two or more. In the description of this application, unless otherwise stated, " / " indicates "or," for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist, for example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, to facilitate a clear description of the technical solutions of this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first," "second," etc., do not limit the quantity or execution order, and that "first," "second," etc., do not necessarily imply differences.
[0016] First, the terms used in the embodiments of this application will be explained.
[0017] 1. List View Area: This refers to the area on the in-vehicle display screen where the list is displayed. Simply put, it's the area on the in-vehicle display screen that the user actually sees displaying the list. It should be understood that in front-end frameworks, the list view area can be implemented by setting a container, and the height of the list view area can be set by pre-setting the height of this container.
[0018] 2. Variable Height Linear List: This refers to a vertical list in which list items are arranged in a single direction, each item has a different height, and the items may be in a collapsed / expanded state.
[0019] 3. Oversized items: These are list items whose height exceeds the visible area height of the list.
[0020] When displaying a function list on a car's multimedia screen, if some function lists contain many items, scrolling up and down is required to view the entire list. However, while the user is driving, directly scrolling up and down on the screen can distract the driver and compromise driving safety.
[0021] Currently, the "see it, say it" functionality in smart cockpits provides users with great convenience, allowing them to control vehicle cockpit functions via voice commands while driving. Therefore, in the scenario described above, when a user needs to view other items in a list, they can use voice commands to control the list's scrolling up and down.
[0022] In related technologies, list scrolling is generally controlled in the following two ways: The first method involves determining the number N of list items to be scrolled after receiving a voice command (this can be preset or calculated based on the average height of the list items displayed in the visible area before scrolling). Then, the maximum visible list item number in the visible area before scrolling is ± N, which gives the maximum visible list item number after scrolling. Finally, the list can be scrolled to that item.
[0023] The second method involves pre-setting the scroll increment (e.g., equal to the height of the visible list area). Upon receiving a voice command, the scrolling can then proceed directly with the preset increment.
[0024] The following provides an example illustrating the scrolling effects of these two methods.
[0025] For example, Figure 1 This is a schematic diagram of a first prior art list scrolling method provided in the embodiments of this application. For example... Figure 1 As shown, Figure 1 It includes a target list 10 and a list viewing area 20. The target list 10 includes list items 1 through 5, a total of 5 list items. Figure 1 (a) shows the display effect of the visible area 20 of the list before scrolling. Figure 1 (b) shows the display effect of the visible area 20 of the list after scrolling.
[0026] like Figure 1 As shown in (a), upon receiving a user's scroll-down command, list item 1 and list item 2 are displayed in the visible area 20 of the list before the target list 10 is scrolled. For example, if the preset number of scrollable items is 2, then the target list is controlled to scroll down by 2 list items. Before scrolling, the largest visible list item in the visible area 20 is list item 2. Therefore, by adding 2 list items to list item 2, the scroll cutoff position is determined to be list item 4. Thus, the target list 10 can be controlled to scroll down by 2 list items, ending at list item 4.
[0027] Alternatively, if the height of each list item is preset, the average height of list item 1 and list item 2 can be calculated. Then, the height of the visible area 20 of the list can be divided by this average height to obtain the number of scrollable items. For example, if the calculated number of scrollable items is 2, then the target list can be controlled to scroll down 2 list items.
[0028] like Figure 1As shown in (b), after the scrolling operation is completed, the visible area 20 of the list displays part of the content of list item 4, while list item 3 is skipped and not displayed. This is because the heights of the list items in the target list 10 are inconsistent. List items 1, 2, and 5 are relatively low, while list item 4 is very high, exceeding the height of the visible area. In this case, during the scrolling process from the lower item area (list item 2) to the higher item area (list item 4), the cumulative scrolling distance will be greater than the expected scrolling distance, resulting in an expansion of the equivalent scroll span. Therefore, after scrolling down two list items, list item 3 will inevitably not be displayed in the visible area 20 of the list, and part of the content of list item 4 will also be skipped without being displayed. As a result, the user cannot fully view the list items in the target list 10, leading to a poor user browsing experience.
[0029] above Figure 1 This explanation assumes that all list items are fully displayed in the list's visible area 20 before scrolling. However, when some list items are not fully displayed in the list's visible area 20, scrolling using the first method described above presents additional problems. For example, Figure 2 This is a schematic diagram of a second prior art list scrolling method provided in the embodiments of this application. Figure 2 (a) shows the display effect of the visible area 20 of the list before scrolling, as shown in the image. Figure 2 (b) shows the display effect of the visible area 20 of the list after scrolling.
[0030] like Figure 2 As shown in (a), before scrolling, partial content of list item 1, list item 2, and list item 3 is displayed in the list view area 20. Therefore, the largest visible list item in the list view area 20 is list item 3. Scrolling down two list items using the first method described above results in the final list item being list item 5, which is two list items added to list item 3.
[0031] like Figure 2 As shown in (b), after scrolling down two list items, only a portion of list items 5 and 4 is displayed in the visible area 20. In other words, if a list item is cropped and displayed across multiple pages before scrolling, the remaining content of that list item is not displayed after scrolling but is skipped. Therefore, the user cannot fully view the content of list item 3, and because list item 4 is very tall, a portion of its content is also skipped, resulting in a poor browsing experience.
[0032] For example, Figure 3 This is a schematic diagram of a third prior art list scrolling method provided in this application embodiment. Wherein, Figure 3 (a) shows the display effect of the visible area 20 of the list before scrolling. Figure 3 (b) shows the display effect of the visible area 20 of the list after scrolling.
[0033] like Figure 3 As shown in (a), before scrolling, partial content of list item 1, list item 2, and list item 3 is displayed in the list view area 20. Therefore, when scrolling according to the preset step size (such as the height of the list view area) in the second method described above, it is equivalent to adding the preset step size to the display position of list item 3 to obtain the ending position after scrolling.
[0034] like Figure 3 As shown in (b), the preset step size is the height of the list view area. After scrolling a distance equal to the height of the list view area 20, the list view area 20 continues to display the remaining content of list item 3. At the same time, due to the limited height of the list view area 20, only part of the content of list item 4 is displayed.
[0035] However, after controlling the list scrolling using the above method, the content of list item 3 is displayed across multiple pages and cannot be fully displayed within a single list viewing area 20. This makes it impossible for users to view the entire content of list item 3 through continuous swiping, resulting in an unsatisfactory browsing experience. Furthermore, neither of the above two methods considers the display of list items before controlling list scrolling. Therefore, regardless of whether a list item is fully displayed, it is skipped directly, leading to partial omissions or cross-page displays, thus causing a poor user browsing experience.
[0036] To address the aforementioned shortcomings, this application provides a list scrolling method that can be applied to scenarios where a user issues a scrolling command to control the list to scroll automatically.
[0037] Specifically, upon receiving the target scroll instruction, the anchor list item can first be determined from the list's visible area, thus establishing the baseline scroll position for subsequent scrolling operations. Next, the visibility state of the anchor list item is determined, allowing us to ascertain whether its content is fully displayed within the list's visible area—for example, whether it's entirely displayed or only partially displayed. If the visibility state indicates that the anchor list item's content is not fully displayed, it's determined whether the anchor list item can be fully displayed within the list's visible area. If it can be fully displayed, the anchor list item is then aligned with the top or bottom of the list's visible area. In this way, by determining the visibility state of anchor list items, and when the visibility state indicates that the content of the anchor list item is not fully displayed but the anchor list item can be fully displayed within the list's visible area, the anchor list item can be fully displayed within the list's visible area by controlling its alignment with the top or bottom of the list's visible area. This allows the anchor list item to be fully displayed within the list's visible area with a single scroll. Compared to existing technologies that scroll with a fixed number of items or a fixed step size, this avoids the problem of skipping the remaining content of the list items and displaying content across pages after scrolling. For users, this allows for a complete browsing of the list items, thereby improving the user's browsing experience.
[0038] The system architecture of the list scrolling involved in the embodiments of this application will be described below.
[0039] For example, Figure 4 This is a schematic diagram of a list scrolling system structure provided in an embodiment of this application. See also... Figure 4 , Figure 4 It includes an input layer 401, a list scrolling interaction engine 402, and an output layer 403.
[0040] The input layer 401 is used to receive target scrolling instructions, that is, to receive instructions from the user to scroll up / down / scroll to the top / scroll to the bottom.
[0041] After receiving the target scrolling instruction, the input layer 401 interacts with the list scrolling interaction engine 402. The list scrolling interaction engine 402 then executes the list scrolling method provided in this embodiment to control the list to scroll accordingly. Specifically, the list scrolling interaction engine 402 can first determine the anchor list item from the list's visible area. Then, based on the positional relationship between the list's visible area and the anchor list item, it determines the visibility state of the anchor list item, enabling it to know whether the content of the anchor list item is fully displayed within the list's visible area. If the content of the anchor list item is not fully displayed within the list's visible area, it further determines whether the anchor list item can be fully displayed within the list's visible area. If the anchor list item can be fully displayed within the list's visible area, it controls the anchor list item to align with the top or bottom of the list's visible area to control the target list scrolling.
[0042] After controlling the scrolling of the target list, the list scrolling interaction engine 402 can send the scrolling result back to the output layer 403. The list items that should have been displayed after scrolling can then be shown in the list's visible area. It should be understood that if the target list is successfully scrolled, the scrolling result can include "successful scrolling." However, if the target list has already scrolled to the top / top, scrolling can no longer be controlled. In this case, the scrolling result can include a boundary-reaching warning message, which can be displayed on the in-vehicle display interface.
[0043] The list scrolling method provided in the embodiments of this application will be explained in detail below.
[0044] Figure 5 This is a flowchart illustrating a list scrolling method provided in an embodiment of this application. This method can be applied to a vehicle's in-vehicle multimedia head unit (HUT). See also... Figure 5 The method includes the following steps 501-503.
[0045] Step 501, in response to the target scroll command, determine the anchor list item from the list view area, the list view area including at least one list item currently displayed in the target list, the anchor list item being used to indicate the reference scroll position for the scroll operation.
[0046] A target scrolling command is a scrolling instruction for a target list. Generally, a target scrolling command can include a scrolling direction, such as scrolling up or scrolling down. In some embodiments, the target scrolling command can be any one of the following: scroll up, scroll down, scroll to top, or scroll to bottom. It should be understood that the target scrolling command can be triggered by the user, through voice operation, gesture control, or other means. As an example, when the in-vehicle multimedia host displays a target list through the list's visible area, if the user wants to view subsequent list items, they can say "scroll down" or "page down" to trigger the target scrolling command.
[0047] The list view area is the area on the vehicle display screen where the target list is being displayed. The target list refers to the list that is being displayed. In some embodiments, the target list can be a variable-height linear list, while in other embodiments, the target list can be a regular contour list.
[0048] It should be understood that when controlling the scrolling of a list, a baseline scroll position is required. Subsequent scrolling is controlled from this baseline position. Anchor list items can indicate this baseline scroll position. For example, the lower boundary of an anchor list item is the baseline scroll position, or the upper boundary of an anchor list item is the baseline scroll position.
[0049] In some embodiments, step 501 may be performed as follows: when the target scrolling instruction indicates scrolling downwards, the last list item displayed in the list's visible area is determined as the anchor list item; when the target scrolling instruction indicates scrolling upwards, the first list item displayed in the list's visible area is determined as the anchor list item.
[0050] When the target scroll command instructs you to scroll downwards, the list item numbers gradually increase as the target list scrolls. Designating the last list item displayed within the visible area as the anchor item makes it easier to determine the downward scroll stop position. Subsequent scrolling of the target list downwards based on the last item will then reach that stop position. Conversely, when the target scroll command instructs you to scroll upwards, the list item numbers gradually decrease as the target list scrolls. Therefore, designating the first list item displayed within the visible area as the anchor item makes it easier to determine the upward scroll stop position. Subsequent scrolling of the target list upwards based on the first item will then reach that stop position.
[0051] It is worth noting that after identifying the anchor list item from the list's visible area, it is also possible to determine whether the target list has been scrolled to the top / bottom.
[0052] It should be understood that when the target scroll instruction is to scroll upwards, it can be determined whether the target list has scrolled to the top. When the target scroll instruction is to scroll downwards, it can be determined whether the target list has scrolled to the bottom.
[0053] One possible approach to determining whether the target list has scrolled to the top is as follows: if the anchor list item is the first item in the target list, determine the distance between the first and second top boundaries; if the distance between the first and second top boundaries is less than a first distance threshold, and / or if the remaining scrollable amount is less than or equal to a second distance threshold, determine that the target list has scrolled to the top; if the anchor list item is not the first item in the target list, determine that the target list has not scrolled to the top.
[0054] The first upper boundary refers to the upper boundary of the anchor list item, and the second upper boundary refers to the upper boundary of the visible area of the list. In this embodiment, the anchor list item may include the first upper boundary and the first lower boundary, and the visible area of the list may include the second upper boundary and the second lower boundary. In this case, the distance between the first upper boundary and the second upper boundary can be determined by obtaining the ordinates of the first upper boundary and the second upper boundary respectively.
[0055] It should be understood that each anchor list item and each boundary of the list's visible area has corresponding coordinate positions on the vehicle-mounted display screen. As an example, a Cartesian coordinate system can be constructed with the top-left corner of the vehicle-mounted display screen as the origin, the horizontal axis pointing to the right of the origin as the horizontal axis, and the vertical axis pointing downwards from the origin as the vertical axis. In this case, the vertical coordinates of the top and bottom boundaries of the anchor list items and the top and bottom boundaries of the list's visible area can be obtained from the Cartesian coordinate system. It should be noted that, in addition to constructing a Cartesian coordinate system with the top-left corner of the vehicle-mounted display screen as the origin, it is also possible to construct a Cartesian coordinate system with the top-right, bottom-left, or bottom-right corners of the vehicle-mounted display screen as the origin; this application does not limit this approach.
[0056] The first and second distance thresholds can be preset. The first distance threshold represents the tolerable boundary distance between the anchor list item and the list's visible area, provided the anchor list item is aligned with the boundary of the list's visible area. The second distance threshold is typically set to 0.
[0057] In the above steps, the core idea of determining whether the target list has scrolled to the top is to determine whether the top boundary (first top boundary) of the first list item in the target list is aligned with the top boundary (second top boundary) of the list's visible area. Specifically, if the anchor list item is the first list item in the target list, it means that the first list item displayed in the list's visible area is indeed the first list item in the target list. Then, by subtracting the ordinate of the second top boundary from the ordinate of the first top boundary, we can determine the distance between the first and second top boundaries. If the distance between the first and second top boundaries is less than a first distance threshold, it means that the distance between the first and second top boundaries meets the tolerable boundary distance between the anchor list item and the list's visible area when the anchor list item is aligned with the top boundary of the list's visible area. Therefore, we can determine that the top boundary of the anchor list item is aligned with the top boundary of the list's visible area. Additionally, the remaining scrollable amount represents the amount of space that can still be scrolled upwards. By determining whether the remaining scrollable amount is less than or equal to 0, if the remaining scrollable amount is less than or equal to 0, it can be determined that the target list has indeed scrolled to the top and cannot be scrolled upwards any further. Therefore, it can be confirmed that the target list has scrolled to the top.
[0058] Since the anchor list item is not the first list item in the target list, it means that there are still undisplayed list items before the anchor list item in the target list. In this case, the target list can still scroll up, so it can be directly determined that the target list has not scrolled to the top.
[0059] The operation to determine whether the target list has scrolled to the bottom can be as follows: if the anchor list item is the last item in the target list, determine the distance between the first lower boundary and the second lower boundary; if the distance between the first lower boundary and the second lower boundary is less than a first distance threshold, and / or the remaining scrollable amount is less than or equal to a second distance threshold, determine that the target list has scrolled to the bottom; if the anchor list item is not the last item in the target list, determine that the target list has not scrolled to the bottom.
[0060] Similarly, the core idea for determining whether the target list has scrolled to the bottom is to check if the bottom boundary (first bottom boundary) of the last list item in the target list is aligned with the bottom boundary (second bottom boundary) of the list's visible area. Specifically, if the anchor list item is the last list item in the target list, it means that the last list item displayed within the list's visible area is indeed the last list item in the target list, and scrolling downwards should not be possible. Then, by subtracting the ordinate of the second bottom boundary from the ordinate of the first bottom boundary, we can determine the distance between them. If this distance is less than a first distance threshold, it means that the distance between the first and second bottom boundaries meets the acceptable boundary distance between the anchor list item and the list's visible area when the anchor list item is aligned with the bottom boundary of the list's visible area. Therefore, we can confirm that the bottom boundary of the anchor list item is indeed aligned with the bottom boundary of the list's visible area. The remaining scrollable amount represents the amount of space that can still be scrolled down. By checking if the remaining scrollable amount is less than or equal to 0, we can determine that the target list has indeed scrolled to the bottom and cannot be scrolled down any further.
[0061] Since the anchor list item is not the last list item in the target list, it means that there are still undisplayed list items after the anchor list item in the target list. In this case, the target list can still scroll down, so it can be directly determined that the target list has not scrolled to the bottom.
[0062] It is worth noting that if the target scroll command is to scroll upwards, and it is determined that the target list has scrolled to the top, or if the target scroll command is to scroll downwards, and it is determined that the target list has scrolled to the bottom, the first reminder message can be returned directly.
[0063] The first notification message is used to inform the user that scrolling cannot continue or that scrolling has failed, and also displays the error code. To further inform the user of the reason for the scrolling failure, the first notification message may also include the reason for the failure, such as scrolling to the top or bottom.
[0064] If the target scroll command is to scroll upwards, and it is determined that the target list has not scrolled to the top; or if the target scroll command is to scroll downwards, and it is determined that the target list has not scrolled to the bottom, then subsequent steps 502-503 can be executed to further control the scrolling of the target list.
[0065] Step 502: Determine the visibility state of the anchor list item, which indicates whether the content in the anchor list item is fully displayed within the list's visible area.
[0066] The visibility status of anchor list items indicates how the content of the anchor list item is displayed as seen by the user on the in-vehicle display screen. It can indicate whether the content of the anchor list item is fully displayed within the list's visible area. In some embodiments, the visibility status of anchor list items can include a fully visible state or a partially visible state. A fully visible state means that the content of the anchor list item is entirely displayed within the list's visible area, while a partially visible state means that the content of the anchor list item is only partially displayed within the list's visible area; that is, the content of the anchor list item is not fully displayed within the list's visible area.
[0067] In some embodiments, step 502 may involve: obtaining the positional relationship between the list's visible area and the anchor list item; determining that the anchor list item is fully visible when the positional relationship indicates that both the first upper boundary and the first lower boundary are within the list's visible area; and determining that the anchor list item is partially visible when the positional relationship indicates that at least one of the first upper boundary and the first lower boundary is not within the list's visible area.
[0068] In some embodiments, the positional relationship between the list view area and the anchor list item is used to indicate the degree of overlap between the list view area and the anchor list item, such as complete overlap or partial overlap. Specifically, this positional relationship can indicate the display of the first upper boundary and the first lower boundary of the anchor list item within the list view area.
[0069] Since the content between the first upper boundary and the first lower boundary constitutes the content of the anchor list item, if both the first upper boundary and the first lower boundary are within the list's visible area, then the content of the anchor list item is entirely within the list's visible area, and therefore, the anchor list item's visibility state can be determined to be fully visible. If at least one of the first upper boundary and the first lower boundary is not within the list's visible area, then the content of the anchor list item is not fully displayed within the list's visible area, and therefore, the anchor list item's visibility state can be determined to be partially visible.
[0070] In the above method, the upper and lower boundaries of the anchor list item are determined to fall within the visible area of the list based on the positional relationship between the anchor list item and the visible area of the list, so that the visibility status of the anchor list item can be determined conveniently and accurately.
[0071] One possible approach is to obtain the positional relationship between the visible area of the list and the anchor list item by: obtaining the ordinates of the first upper boundary, the first lower boundary, the second upper boundary, and the second lower boundary in the target coordinate system; if the ordinate of the first upper boundary is greater than or equal to the ordinate of the second upper boundary and the ordinate of the first lower boundary is less than or equal to the ordinate of the second lower boundary, the positional relationship indicates that both the first upper boundary and the first lower boundary are within the visible area of the list; if the ordinates of the first upper boundary and / or the first lower boundary are not obtained, the positional relationship indicates that at least one of the first upper boundary and the first lower boundary is not within the visible area of the list.
[0072] The target coordinate system is a rectangular coordinate system with the upper left corner of the vehicle display screen as the origin, the horizontal axis to the right of the origin, and the vertical axis downward from the origin. In other words, on the vehicle display screen or the visible area of the list, the vertical coordinate of each position gradually increases from top to bottom.
[0073] In the above steps, if the ordinate of the first upper boundary is greater than or equal to the ordinate of the second upper boundary, it indicates that the upper boundary of the anchor list item is below the upper boundary of the list's visible area, or that the upper boundary of the anchor list item coincides with the upper boundary of the list's visible area. If the ordinate of the first lower boundary is less than or equal to the ordinate of the second lower boundary, it indicates that the lower boundary of the anchor list item is above the lower boundary of the list's visible area, or that the lower boundary of the anchor list item coincides with the lower boundary of the list's visible area. This means that both the upper and lower boundaries of the anchor list item are within the list's visible area. If the ordinate of the first upper boundary / first lower boundary is not obtained, it indicates that the upper / lower boundary of the anchor list item is not displayed on the vehicle display screen, meaning that the upper / lower boundary of the anchor list item is not displayed within the list's visible area. If the ordinates of both the first upper boundary and the first lower boundary are not obtained, it indicates that neither the upper nor lower boundary of the anchor list item is displayed within the list's visible area. Therefore, it can be determined that this positional relationship indicates that at least one of the first upper boundary and the first lower boundary is not within the list's visible area.
[0074] The second possible approach is to determine whether the center point of the anchor list item is within the visible area of the list; if the center point of the anchor list item is within the visible area of the list, determine the area ratio of the anchor list item entering the visible area of the list; if the area ratio is greater than or equal to a target ratio threshold, determine that the positional relationship indicates that both the first upper boundary and the first lower boundary are within the visible area of the list; if the center point of the anchor list item is not within the visible area of the list, or if the area ratio is less than the target ratio threshold, determine that the positional relationship indicates that at least one of the first upper boundary and the first lower boundary is not within the visible area of the list.
[0075] The target ratio threshold can be preset. The target ratio threshold indicates the minimum overlap ratio that should be achieved between the anchor list item and the list's visible area when the anchor list item is fully displayed within the list's visible area.
[0076] It should be understood that this area ratio can indicate the overlap ratio between the anchor list item and the visible area of the list. By judging the overlap ratio, it can also be determined whether the anchor list item is fully displayed in the visible area of the list.
[0077] When the center point of an anchor list item is not within the visible area of the list, it indicates a low overlap between the anchor list item and the visible area, meaning the anchor list item is not fully displayed within the visible area. In the above steps, first determining if the center point of the anchor list item is within the visible area eliminates the possibility of a low overlap, as this would mean only one boundary of the anchor list item is within the visible area. If the center point of the anchor list item is within the visible area, it indicates a high overlap. In this case, the overlap ratio can be further determined to assess whether the anchor list item is fully displayed. Specifically, this involves determining the area proportion of the anchor list item within the visible area. If this proportion is greater than or equal to a target threshold, the overlap ratio has been reached—the minimum overlap required for the anchor list item to be fully displayed within the visible area. Therefore, it can be determined that both the top and bottom boundaries of the anchor list item are displayed within the visible area. If the area ratio is less than the target ratio threshold, it means that some content of the anchor list item is not within the visible area of the list, and it can be determined that the anchor list item has at least one boundary that is not within the visible area of the list.
[0078] It is worth noting that the above method of determining whether the upper and lower boundaries of an anchor list item fall into the visible area of the list based on the overlap ratio between the anchor list item and the visible area of the list is applicable when the height of the anchor list item is less than or equal to the height of the visible area of the list.
[0079] Step 502 above explains how to determine the visibility state of anchor list items. After determining the visibility state of anchor list items, the target list can be scrolled accordingly based on the different visibility states of anchor list items.
[0080] Step 503: If the content of the anchor list item is not fully displayed in the visible area of the list when the visible state indicates that the anchor list item can be fully displayed in the visible area of the list, then control the anchor list item to be aligned with the top or bottom of the visible area of the list.
[0081] It should be understood that user needs may differ depending on the visibility state of the anchor list item. For example, when the anchor list item is fully visible, it can be scrolled over to continue displaying subsequent list items. When the anchor list item is partially visible, the next scroll should ensure that the portion not shown by the anchor list item is displayed, and the user may want to browse continuously. However, since the heights of the list items within the target list vary, some list items are very tall, even exceeding the height of the list's visible area. When a list item's height exceeds the height of the list's visible area, no matter how it is displayed, it can never be fully displayed within the list's visible area. Conversely, when a list item's height does not exceed the height of the list's visible area, it can be fully displayed within the list's visible area.
[0082] In the above method, by controlling the alignment of the anchor list items with the top or bottom of the list's visible area while ensuring that the anchor list items can be fully displayed within the list's visible area, the anchor list items can be fully displayed within the list's visible area after one scroll. This prioritizes ensuring that users can fully browse the anchor list items, avoiding the problem of anchor list items being skipped or displayed across pages due to fixed-step scrolling in existing technologies, and thus improving the user's browsing experience.
[0083] In some embodiments, if it is determined that the content of the anchor list item is not fully displayed within the visible area of the list, it can be further determined whether the anchor list item can be fully displayed within the visible area of the list based on the height of the anchor list item and the height of the visible area of the list.
[0084] Specifically, it obtains the height of the anchor list item and the height of the list's visible area; if the height of the anchor list item is less than or equal to the height of the list's visible area, it determines that the anchor list item can be fully displayed within the list's visible area; if the height of the anchor list item is greater than the height of the list's visible area, it determines that the anchor list item cannot be fully displayed within the list's visible area.
[0085] As can be seen from the above, the anchor list items involved in the embodiments of this application actually include three cases: fully visible anchor list items (displayed in a fully visible state in the list's visible area), partially cropped anchor list items (displayed in a partially visible state and can be fully displayed in the list's visible area), and anchor list items belonging to super-high items (displayed in a partially visible state and cannot be fully displayed in the list's visible area).
[0086] Because users have different browsing needs under different visibility states, and in some embodiments, the height of anchor list items may exceed the height of the list's visible area. In this case, the anchor list items cannot be fully displayed in the list's visible area. However, when the height of the anchor list items does not exceed the height of the list's visible area, the anchor list items can be fully displayed in the list's visible area. However, due to the scrolling strategy, the anchor list items may appear across pages. Therefore, in the above situations, different scrolling strategies can be adopted to control the scrolling of the target list, which will be explained below.
[0087] In the first scenario, if the content of the anchor list item is not fully displayed within the visible area of the list, and if the anchor list item can be fully displayed within the visible area, then the boundary positions of the anchor list item and the visible area can be obtained. Based on the boundary positions of the anchor list item and the visible area, a first scroll amount is determined. Using the anchor list item as the reference scroll position, the target list is controlled to scroll by the first scroll amount, and the updated visible area of the list is displayed.
[0088] The boundary positions of anchor point list items may include the positions of the first upper boundary and the first lower boundary of the anchor point list item. It should be understood that, as described in step 501 above, the ordinates of the first upper boundary and the first lower boundary can be obtained from the target coordinate system to obtain the positions of the first upper boundary and the first lower boundary.
[0089] Since the anchor list items are partially visible and can be fully displayed within the list's visible area, it means they can be fully displayed within the list's visible area, even if they are currently displayed across multiple pages. Therefore, users will prioritize browsing the anchor list items. To ensure complete browsing of the anchor list items, we can first control their full display within the list's visible area. Thus, in this case, we can determine the first scroll amount based on the boundary positions of the anchor list items and the list's visible area. After scrolling the target list by this first amount, the anchor list items will be fully displayed at the top or bottom of the updated list's visible area.
[0090] One possible approach is to determine the first scroll amount based on the boundary positions of the anchor list items and the boundary positions of the list's visible area. This can be done as follows: when the target scroll instruction indicates downward scrolling, the vertical distance between the first and second upper boundaries is calculated based on the boundary positions of the first and second upper boundaries to obtain the first scroll amount; when the target scroll instruction indicates upward scrolling, the vertical distance between the first and second lower boundaries is calculated based on the boundary positions of the first and second lower boundaries to obtain the first scroll amount.
[0091] In the above operation, when the target scroll command instructs the target list to scroll down, the vertical coordinate of the first upper boundary can be subtracted from the vertical coordinate of the second upper boundary to obtain the vertical distance between the first and second upper boundaries. This vertical distance is then used as the first scroll amount. Subsequent control of the target list to scroll down by the first scroll amount can align the upper boundary of the anchor list item with the upper boundary of the list's visible area. In other words, the anchor list item can be displayed as the first list item within the list's visible area. This ensures that after scrolling, the anchor list item can be displayed at the top of the list's visible area, allowing the user to fully browse the anchor list items. When the target scroll command instructs the target list to scroll upwards, the vertical coordinate of the first lower boundary can be subtracted from the vertical coordinate of the second lower boundary to obtain the vertical distance between the first and second lower boundaries. This vertical distance is then used as the first scroll amount. Subsequent control of the target list to scroll upwards by this first scroll amount can align the lower boundary of the anchor list item with the lower boundary of the list's visible area. In other words, the anchor list item can be displayed as the last list item in the list's visible area. This ensures that after scrolling, the anchor list item is displayed at the bottom of the list's visible area, allowing the user to fully browse the anchor list items.
[0092] In the above method, when the anchor list item is partially displayed within the visible area of the list and can be fully displayed within the visible area, the vertical distance between the first and second upper boundaries, or the vertical distance between the first and second lower boundaries, is used as the first scroll amount. This allows the boundaries of the anchor list item to be aligned with the boundaries of the visible area of the list after subsequent scrolling, thus ensuring that the anchor list item is fully displayed at the top or bottom of the visible area. Compared to existing technologies that use a preset scroll distance to control the scrolling of the target list regardless of the visibility of the anchor list item, this method avoids the problem of anchor list items being easily skipped or displayed across pages when partially displayed, preventing users from fully browsing the list item. In this way, intelligent scrolling of the target list can be achieved.
[0093] It is worth noting that when the visibility state is partially visible and the anchor list items can be fully displayed within the visible area of the list, before calculating the first scroll amount, the target number of items can be determined based on the scrolling direction indicated by the target scrolling command; if the target number of items is greater than or equal to the preset number of items threshold, the first scroll amount can be calculated directly based on the boundary position of the anchor list items and the boundary position of the visible area of the list.
[0094] The target item count refers to the number of reference list items in the target list, where each reference list item is a list item in the target list that is not displayed in the scrolling direction. For example, if the scrolling direction is downward, the target item count is the number of list items in the target list that are not yet displayed after the anchor list item; if the scrolling direction is upward, the target item count is the number of list items in the target list that are not yet displayed before the anchor list item.
[0095] The preset number of items threshold can be set in advance; for example, the preset number of items threshold can be set to 5.
[0096] It should be understood that when the number of target items is large, it means that there are many undisplayed list items remaining in the target list in the scrolling direction. This also means that there is still a large scroll margin in the scrolling direction. In this case, the first scroll amount calculated directly based on the boundary position of the anchor list item and the boundary position of the list's visible area will not exceed the scroll margin in the scrolling direction. Therefore, the first scroll amount can be calculated directly based on the boundary position of the anchor list item and the boundary position of the list's visible area.
[0097] If the number of target items is less than the preset number of items threshold, first obtain the height of each reference list item, and then sum the heights of each reference list item to obtain the remaining scrollable amount. Then, the first scroll amount can be determined based on the boundary position of the anchor list item, the boundary position of the list's visible area, and the remaining scrollable amount.
[0098] The remaining scrollable amount is used to represent the remaining scrollable amount in the scrolling direction. The remaining scrollable amount can include the remaining scrollable amount up and the remaining scrollable amount down. When the scrolling direction is downward, the remaining scrollable amount is the remaining scrollable amount down, and when the scrolling direction is upward, the remaining scrollable amount is the remaining scrollable amount up.
[0099] In the above method, if the number of target items is less than the preset threshold, it indicates that there are few undisplayed list items remaining in the target list along the scrolling direction, meaning there is limited scrolling margin. In this case, the first scroll amount calculated directly based on the boundary positions of the anchor list items and the visible area of the list may exceed the scrolling margin. Therefore, the first scroll amount should be controlled within the remaining scrollable margin. A more reasonable first scroll amount can be determined based on the boundary positions of the anchor list items, the visible area of the list, and the remaining scrollable margin, enabling precise scrolling of the target list subsequently.
[0100] Specifically, when the target scroll command indicates downward scrolling, the longitudinal distance between the first upper boundary and the second upper boundary is calculated based on the boundary positions of the first upper boundary and the second upper boundary to obtain the first reference scroll amount; when the target scroll command indicates upward scrolling, the longitudinal distance between the first lower boundary and the second lower boundary is calculated based on the boundary positions of the first lower boundary and the second lower boundary to obtain the first reference scroll amount; then, if the first reference scroll amount is less than or equal to the remaining scrollable amount, the first reference scroll amount is directly determined as the first scroll amount.
[0101] Specifically, the operation of calculating the longitudinal distance between the first upper boundary and the second upper boundary based on the boundary positions of the first upper boundary and the second upper boundary to obtain the first reference scroll amount is similar to the operation of calculating the longitudinal distance between the first upper boundary and the second upper boundary based on the boundary positions of the first upper boundary and the second upper boundary to obtain the first scroll amount; and the operation of calculating the longitudinal distance between the first lower boundary and the second lower boundary based on the boundary positions of the first lower boundary and the second lower boundary to obtain the first reference scroll amount is similar to the operation of calculating the longitudinal distance between the first lower boundary and the second lower boundary based on the boundary positions of the first lower boundary and the second lower boundary to obtain the first scroll amount, and will not be repeated here.
[0102] In the above operation, based on the position boundaries of the anchor list item and the position boundaries of the list's visible area, it is first determined whether the upper boundary of the anchor list item should be aligned with the upper boundary of the list's visible area or the lower boundary of the anchor list item should be aligned with the lower boundary of the list's visible area. It is necessary to control the scroll amount of the target list (i.e., the first reference scroll amount). Then, if the first reference scroll amount is less than or equal to the remaining scrollable amount, the first reference scroll amount is determined as the first scroll amount. By comparing the first reference scroll amount with the remaining scrollable amount, the subsequent scroll distance can be controlled within the scroll margin in the scroll direction. This can ensure that the anchor list item is completely at the top or bottom of the list's visible area while improving the rationality of the first scroll amount.
[0103] In some embodiments, if the first reference scroll amount is greater than the remaining scrollable amount, the target list is scrolled by the remaining scrollable amount directly with the anchor list item as the reference scroll position, and the updated list view area is displayed.
[0104] It should be understood that if the first reference scroll amount is greater than the remaining scrollable amount, it means that the distance the anchor list item needs to move to align with the boundary of the list's visible area is greater than the remaining scrollable distance. This means that subsequent control can only be applied to the target list's scrolling of the remaining scrollable distance, thus allowing control over the target list's scrolling of the remaining scrollable amount. In this case, if the target scroll instruction indicates downward scrolling, after controlling the target list's scrolling according to the remaining scrollable amount, the last list item of the target list should be displayed at the bottom of the updated list's visible area, and the anchor list item can be fully displayed within the list's visible area. If the target scroll instruction indicates upward scrolling, after controlling the target list's scrolling according to the remaining scrollable amount, the first list item of the target list should be displayed at the top of the updated list's visible area, and the anchor list item can be fully displayed within the list's visible area.
[0105] In the above method, when the first reference scroll amount is greater than the remaining scrollable amount, the minimum value of the two (the remaining scrollable amount) is taken to control the target list to scroll, so that the scrolling distance can be controlled within the scrolling margin in the scrolling direction. This can improve the rationality of the scroll amount while ensuring that the anchor list items can be fully displayed in the visible area of the list, thereby also ensuring that the user can fully browse the list items.
[0106] In some embodiments, when the visibility state is partially visible and the anchor list item can be fully displayed within the list's visible area, the height of the undisplayed anchor list item can be determined first. If the height ratio between the undisplayed anchor list item's height and the anchor list item's height is greater than or equal to a preset ratio threshold, then the step of obtaining the boundary position of the anchor list item and the boundary position of the list's visible area, and determining the first scroll amount based on the boundary position of the anchor list item and the boundary position of the list's visible area, can be performed.
[0107] The preset percentage threshold can be set in advance, such as 30%. It should be understood that for a list item, the content to be displayed should be centered, with corresponding white space above and below to ensure the list item's appearance. Therefore, if a small percentage is not displayed, it may be because the white space is not displayed, while the main content may have already been displayed.
[0108] The height at which anchor list items are not displayed indicates how much content within those items is not shown. One possible approach is to subtract the y-coordinate of the first top boundary from the y-coordinate of the second bottom boundary to obtain the currently displayed height of the anchor list item. Then, subtract the currently displayed height from the current height of the anchor list item to obtain the height at which it is not displayed. Conversely, if the target scroll instruction indicates scrolling upwards, the same method applies: subtract the y-coordinate of the second top boundary from the y-coordinate of the first bottom boundary to obtain the currently displayed height of the anchor list item. Then, subtract the currently displayed height from the current height of the anchor list item to obtain the height at which it is not displayed.
[0109] It should be understood that the higher the height at which anchor list items are not displayed, the more content is missing from the anchor list item. The more content is missing, the higher the user's need for a complete view of the anchor list item. Conversely, the lower the height at which anchor list items are not displayed, the less content is missing, such as leftover white space. In this case, the user's need for a complete view of the anchor list item may not be high. Therefore, the first scroll amount can be determined based on the boundary positions of the anchor list item and the visible area of the list, provided that the ratio between the height of the missing anchor list item and the height of the anchor list item is greater than or equal to a preset threshold.
[0110] After controlling the target list to scroll by the first amount, the anchor list item can be aligned with the top or bottom of the list's visible area. Since the anchor list item has already displayed some content, the user may quickly finish browsing the anchor list item. In this case, after controlling the target list to scroll by the first amount, the target duration can be maintained, and after the target duration, the process can return to step 501 to automatically control the target list to scroll once.
[0111] In other embodiments, if the height ratio between the height of the anchor list item that is not displayed and the height of the anchor list item is less than a preset ratio threshold, it indicates that the main content of the anchor list item may have already been displayed within the visible area of the list. In this case, the first scroll amount can be calculated by multiplying the target scroll ratio by the height of the visible area of the list to ensure the normal scrolling of the target list.
[0112] In the second scenario, when the content of the anchor list item is fully displayed within the visible area of the list, the second scroll amount is determined based on the height of the visible area of the list; the target list is scrolled by the second scroll amount with the anchor list item as the reference scroll position.
[0113] When the content of the anchor list item is fully displayed within the visible area of the list, it means that the anchor list item is fully visible and can be viewed by the user. In this case, the anchor list item can be scrolled over to continue displaying subsequent list items. Therefore, in this case, a second scroll amount can be determined based on the height of the visible area of the list, and then the target list can be scrolled by the second scroll amount to ensure the user's normal browsing needs.
[0114] One possible approach is to determine the second scroll amount based on the height of the list's visible area by multiplying the target scroll ratio by the height of the list's visible area to obtain the second scroll amount.
[0115] In some embodiments, the target scroll ratio can be preset by a technician, and the target scroll ratio is a value less than or equal to 1. For example, the target scroll ratio can be set to 2 / 3. In other embodiments, the target scroll ratio can also be determined based on attribute information of the target list.
[0116] The attributes of a target list can include information density and the height of each list item. It should be understood that a high information density in a target list indicates a large amount of substantial content, thus requiring a longer browsing time for the user. Conversely, a low information density indicates less substantial content, allowing the user to browse quickly. In such cases, setting different scroll distances for different information densities ensures a smooth and high-quality browsing experience. Furthermore, when the list item heights are uniform, the user's browsing pace is also uniform; even with a longer scroll distance, the user can quickly return to their previous position. Conversely, when the list item heights are uneven, the browsing pace is also uneven; if the scroll span is large, it can be difficult for the user to return to their previous position. Therefore, the target scroll ratio can also be determined based on the height of each list item in the target list, allowing for different scroll control strategies at different item heights.
[0117] Since the content displayed in the list items of the target list is fixed, during the development phase, technical personnel can pre-calculate the information density of the target list and save it as an attribute of the target list. One possible approach is to first obtain the total display area of the target list during development; then obtain the effective area occupied by the elements in the target list used to display content; and finally divide the effective area by the total display area to obtain the information density of the target list.
[0118] The total display area of the target list can refer to the cumulative area of each list item in the target list after it is displayed within the list's visible area. For example, the total display area of the target list can be obtained by multiplying the sum of the heights of all list items in the target list by the width of the list's visible area.
[0119] It should be understood that the larger the effective area occupied by the elements used to display content in the target list, the more content is to be displayed in the target list, and thus the greater the information density of the target list. Conversely, the less content is to be displayed in the target list, the lower the information density of the target list.
[0120] After determining the information density of the target list, we can also base it on the height of each list item in the target list, and on the height variance of the list items in the target list.
[0121] The height variance represents the degree of height deviation of each list item in the target list. The smaller the height variance, the smaller the height deviation of each list item; the larger the height variance, the greater the height deviation of each list item.
[0122] Furthermore, the target scroll ratio can be determined based on the information density of the target list divided by the height variance of the list items in the target list. Specifically, if the information density is greater than or equal to a preset density threshold, the target scroll ratio is determined as a first ratio; if the height variance is less than or equal to a preset variance threshold, the target scroll ratio is determined as a second ratio.
[0123] The first and second ratios can be preset by technicians, with the first ratio being smaller than the second ratio. For example, the first ratio can be set to 1 / 2, and the second ratio can be set to 3 / 4.
[0124] In the above methods, when the information density of the target list is high, a smaller scroll ratio is used, resulting in a shorter scrolling distance for the target list and ensuring that the user can browse the target list smoothly. When the item heights of the target list are uniform, a larger scroll ratio can be used, resulting in a longer scrolling distance for the target list and adapting to the user's browsing pace, thus ensuring that the user can quickly browse the target list.
[0125] It should be noted that in the above method, the target scroll ratio is determined primarily based on the information density of the target list, prioritizing high-quality browsing for the user when the information density of the target list is high. When the information density of the target list is less than a preset density threshold, the target scroll ratio can be further determined based on this height variance. If the height variance is less than or equal to the preset variance threshold, a second ratio greater than the first ratio is used as the target scroll ratio. If the height variance is greater than the preset variance threshold, a third ratio can be used as the target scroll ratio to better match the user's browsing rhythm and ensure a smooth browsing experience.
[0126] The third ratio is a rolling ratio between the first and second ratios, such as 2 / 3.
[0127] It's worth noting that scrolling operations can include scrolling up and scrolling down. To distinguish the scrolling direction, a positive and a negative sign can be used. After calculating the second scroll amount, if the target scroll command indicates scrolling down, a positive sign is added before the second scroll amount; if the target scroll command indicates scrolling up, a negative sign is added before the second scroll amount. Similarly, after calculating the first scroll amount, if the target scroll command indicates scrolling down, a positive sign is added before the first scroll amount; if the target scroll command indicates scrolling up, a negative sign is added before the first scroll amount.
[0128] In the second scenario above, when the anchor list items are fully displayed within the visible area of the list, the target list can be scrolled directly. By determining different target scroll ratios when the target list's attribute information is different, different second scroll amounts can be calculated, allowing subsequent scrolling operations of the target list to adapt to the user's browsing needs under different attribute information, thereby achieving intelligent scrolling of the target list.
[0129] It is worth noting that before determining the second scroll amount, the target number of items can be determined based on the scrolling direction indicated by the target scrolling command; if the target number of items is greater than or equal to the preset number of items threshold, the second scroll amount can be calculated directly based on the height of the visible area of the list.
[0130] It should be understood that when the number of target items is large, it means that there are many undisplayed list items remaining in the target list in the scrolling direction. This also means that there is still a large scroll margin in the scrolling direction. In this case, the second scroll amount calculated directly based on the height of the list's visible area will not exceed the scroll margin in the scrolling direction. Therefore, the second scroll amount can be calculated directly based on the height of the list's visible area.
[0131] If the target number of items is less than the preset number of items threshold, first obtain the height of each reference list item; then sum the heights of each reference list item to obtain the remaining scrollable amount; then, based on the height of the visible area of the list and the remaining scrollable amount, determine the second scrollable amount.
[0132] In the above method, if the number of target items is less than the preset item threshold, it indicates that there are few undisplayed list items remaining in the target list along the scrolling direction, meaning there is not much scrolling margin. In this case, the second scroll amount calculated directly based on the height of the list's visible area may exceed the scrolling margin. Therefore, the second scroll amount should be controlled within the remaining scrollable margin. A more reasonable second scroll amount can be determined based on the height of the list's visible area and the remaining scrollable margin, enabling precise scrolling of the target list subsequently.
[0133] Specifically, the operation of determining the second scroll amount based on the height of the list's visible area and the remaining scrollable amount can be as follows: multiply the target scroll ratio by the height of the list's visible area to obtain the second reference scroll amount; and determine the minimum value between the second reference scroll amount and the remaining scrollable amount as the second scroll amount.
[0134] The operation of multiplying the target scroll ratio by the height of the list's visible area to obtain the second reference scroll amount is similar to the operation of multiplying the target scroll ratio by the height of the list's visible area to obtain the second scroll amount, and will not be repeated here.
[0135] In the above operation, a default scroll distance (i.e., the second reference scroll amount) is first determined based on the height of the visible area of the list. Then, the minimum value between the second reference scroll amount and the remaining scrollable amount is taken as the second scroll amount, so that the subsequent scroll distance can be controlled within the scroll margin in the scroll direction, which can improve the rationality of the second scroll amount.
[0136] It should be understood that the specific operation of determining the second scroll amount based on the height of the visible area of the list and the remaining scrollable amount is also achieved through the following formula (1) or formula (2).
[0137] (1) (2) in, The second scroll amount is k, and the target scroll ratio is k. This represents the height of the visible area of the list. This represents the remaining rollable amount. This represents the remaining amount of scrolling upwards. It should be noted that when the target scrolling command indicates that the scrolling direction is downwards, the second scrolling amount can be calculated using the above formula (1), and when the target scrolling command indicates that the scrolling direction is upwards, the second scrolling amount can be calculated using the above formula (2).
[0138] In the third scenario, if the content of the anchor list item is not fully displayed within the visible area of the list, and the anchor list item cannot be fully displayed within the visible area of the list, then a second scroll amount is determined based on the height of the visible area of the list; and the target list item is scrolled by the second scroll amount with the anchor list item as the reference scroll position.
[0139] If the visibility state is partially visible and the anchor list item cannot be fully displayed within the list's visible area, it indicates that the anchor list item is an oversized item. In other words, the anchor list item cannot be fully displayed within the list's visible area under any circumstances. In this case, the only option is to allow the user to browse the list item's content as continuously as possible. To achieve this, the method described in the second scenario above for calculating the second scroll amount can be used. That is, by determining the second scroll amount based on the height of the list's visible area, the subsequent control of the target list can scroll normally, ensuring that the user can gradually browse such oversized items. Compared to existing technologies that scroll by item number or according to a preset scroll distance, this avoids the problem of content being displayed in discontinuous layers or anchor list items being skipped directly after scrolling, thus improving the user browsing experience.
[0140] In the third case, the specific operation of determining the second scroll amount based on the height of the list's visible area is the same as the specific operation of determining the second scroll amount based on the height of the list's visible area in the second case, and will not be repeated here.
[0141] In the calculation of the second scroll amount, when the anchor list item is fully visible or partially visible but not fully displayed in the list's visible area, the second scroll amount is highly correlated with the list's visible area. It prevents some list items from being skipped due to the mixed heights of the target list, or from causing the scroll span to expand due to differences in item height, ensuring that users can browse each list item in sequence. When the anchor list item is partially visible but fully displayed in the list's visible area, the first scroll amount is the displacement that aligns the anchor list item with the boundary of the list's visible area. This allows the anchor list item to be fully displayed in the list's visible area even when it is not fully displayed, ensuring the user's complete browsing needs. Thus, different scrolling strategies can be adopted when the anchor list item is in different visibility states or has different item heights, enabling intelligent scrolling of the target list and improving the user's browsing experience.
[0142] After calculating the first or second scroll amount in the above three scenarios, the target list can be controlled to scroll by the first or second scroll amount. It should be understood that during the process of controlling the target list to scroll by the first or second scroll amount, the scroll amount can be controlled to reach the first or second scroll amount within a preset time period. In other words, the target list can be controlled to scroll smoothly and gradually within the preset time period, so that the first or second scroll amount is executed across multiple frames, thereby achieving smooth scrolling and improving the user browsing experience.
[0143] Steps 501-503 above describe the process of a single scroll operation instructed by the target scroll command. That is, when the target scroll command is "scroll down" / "scroll up", the above scrolling strategy can be adopted. When the target scroll command is "scroll to top" / "scroll to bottom", the remaining scrollable amount can be directly determined, then set as the target scrollable amount, and finally the target list can be scrolled by the target scrollable amount.
[0144] It is worth noting that in the list scrolling scheme provided in this application embodiment, when the anchor list item is not partially clipped, the scrolling distance each time is approximately the target scrolling ratio multiplied by the height of the list's visible area. This prevents some list items from being skipped due to the mixed heights of the target list, or from the scrolling span from expanding due to differences in item height. Furthermore, each scrolling distance is correlated with the height of the list's visible area; if the height of the list's visible area changes, the scrolling distance will also change accordingly, thus enabling intelligent scrolling of list items. In other words, each scroll of the target list is adjusted in real-time based on the state of the list items presented before scrolling. For example, after a user expands a collapsed list item or collapses an expanded list item, the list items within the visible area may change. Therefore, the scrolling amount will be recalculated based on steps 501-503, and the target list will be controlled to scroll based on the recalculated scrolling amount.
[0145] To facilitate understanding, we will now combine... Figures 6-9 The overall process and scrolling effect of the list scrolling method provided in the embodiments of this application are illustrated by way of example.
[0146] For example, Figure 6 This is a flowchart of another list scrolling method provided in an embodiment of this application. Taking "scroll down" as an example, the overall flow of this list scrolling method is described.
[0147] like Figure 6 As shown, after receiving the target scroll command "scroll down", it first determines whether the target list has already scrolled to the bottom. If the target list has already scrolled to the bottom, it outputs the first warning message "cannot continue scrolling".
[0148] If the target list has not yet scrolled to the bottom, select the last displayed list item in the visible area of the list as the anchor list item. Then, determine the visibility state of the anchor list item.
[0149] When the anchor list item is fully visible, the above formula (1) is used. Determine the rolling amount When the anchor list item is partially visible and can be fully displayed within the list's visible area, first determine the vertical distance between the top boundary of the anchor list item and the top boundary of the list's visible area (i.e., first determine the first reference scroll amount). Then, determine the minimum value between the first reference scroll amount and the remaining scrollable amount as the scroll amount. When the anchor list item is partially visible and cannot be fully displayed within the list's visible area (i.e., the anchor list item is an extra-height item), the above formula (1) can be used. Determine the rolling amount .
[0150] Then determine the scroll amount. Whether it is greater than 0, in the scroll amount If the value is less than 0, output the first warning message "Cannot continue scrolling". (The scroll amount is not specified in the original text.) If the value is greater than 0, control the target list to scroll down. It will also output a second notification message saying "Scrolling successful".
[0151] For example, Figure 7 This is an interaction diagram of a list scrolling method provided in an embodiment of this application. Taking the target scrolling instruction as "scroll down" as an example, the overall flow of this list scrolling method will be described.
[0152] like Figure 7 As shown, when a user says "scroll down," the in-vehicle multimedia host's voice interaction system receives the "scroll down" command and triggers the target scrolling instruction. Then, the list scrolling interaction engine receives the "scroll down" instruction and first identifies the last list item within the visible list area as the anchor list item. It then determines the visibility status of the anchor list item.
[0153] When the anchor list item is fully visible or partially visible but cannot be displayed within the visible area of the list (i.e., super-height item), the above formula (1) is used. Determine the target scroll amount. Assuming the anchor list item is partially visible and can be fully displayed within the list's visible area, first determine the vertical distance between the top boundary of the anchor list item and the top boundary of the list's visible area (i.e., first determine the first reference scroll amount). Then, determine the minimum value between the first reference scroll amount and the remaining scrollable amount as the scroll amount. Then the list scrolling interaction engine will control the target list to scroll down. Then, the list items displayed in the list's visible area are updated, and the updated list's visible area is displayed, allowing users to browse the content within the updated list's visible area.
[0154] For example, Figure 8 This is a schematic diagram illustrating the effect of the first list scrolling method provided in the embodiments of this application. For example... Figure 8 As shown, the target list includes list items 1 through 5, and there are no super-height items.
[0155] like Figure 8 As shown in (a), before scrolling the target list, partial content of list items 1, 2, and 3 is displayed in the visible area of the list. The HUT receives the user's voice command to "swipe down," determines that the anchor list item is list item 3, and since list item 3 is partially visible and can be fully displayed within the visible area, it first aligns the upper boundary of the anchor list item with the upper boundary of the visible area of the list. For example... Figure 8 As shown in (b), after the first scroll, list item 3 becomes the first list item in the visible list area, and list item 3 is fully displayed within the visible list area, ensuring the user's complete viewing of list item 3. Upon receiving the user's voice command to "swipe down" again, according to... Figure 8 In section (b), regarding the display of the list's visible area, if we determine that the anchor list item is list item 4, and list item 4 is also partially visible and can be fully displayed within the list's visible area, then we first align the top boundary of list item 4 with the top boundary of the list's visible area. For example... Figure 8 As shown in (c), after the second scroll, list item 4 becomes the first list item in the visible list area, and list item 4 is fully displayed within the visible list area to ensure the user can fully view list item 4. Upon receiving the voice command "swipe down," according to... Figure 8 In section (c), the list's visible area is defined as anchor list item 5. List item 5 is partially visible and can be fully displayed within the list's visible area. Since list item 5 is the last item in the target list, the remaining scrollable distance is small. In this case, the target list scrolling is controlled by the minimum of the remaining scrollable distance and the scroll distance required to align the top boundary of list item 5 with the top boundary of the list's visible area. Figure 8 It can be seen that scrolling is actually based on the remaining scrollable amount. For example... Figure 8 As shown in (d), after the third scroll, list item 5 is fully displayed in the visible area of the list, and the entire target list is scrolled through.
[0156] For example, Figure 9 This is a schematic diagram illustrating the effect of the second list scrolling method provided in the embodiments of this application. For example... Figure 9 As shown, the target list includes list items 1-4, where list item 3 is the super-high item.
[0157] like Figure 9As shown in (a), before the target list scrolls, partial content of list items 1, 2, and 3 is displayed in the visible area of the list. The HUT receives the user's voice command to "swipe down," determines that the anchor list item is list item 3, and since list item 3 is partially visible and not fully displayed within the visible area, it controls the target list to scroll down by k×Hv. Figure 9 As shown in (b), after the first scroll, only part of list item 3 is displayed in the visible area of the list. Upon receiving another voice command from the user to "swipe down," according to... Figure 9 In section (b), regarding the display of the visible area of the list, determine the anchor list item as list item 3, and continue to control the target list to scroll down by k×Hv. For example... Figure 9 As shown in (c), after the second scroll, the content of list item 3 is fully displayed, and part of the content of list item 4 is also displayed. The voice command to "swipe down" is then received, and... Figure 9 In section (c), the list's visible area is defined as anchor list item 4, which is also partially visible and fully displayed within the list's visible area. Since list item 4 is the last item in the target list, the remaining scrollable distance is small. In this case, the target list scrolling is controlled by the minimum of the remaining scrollable distance and the scroll distance required to align the top boundary of list item 4 with the top boundary of the list's visible area. Figure 9 It can be seen that scrolling is actually based on the remaining scrollable amount. For example... Figure 9 As shown in (d), after the third scroll, list item 4 is fully displayed in the visible area of the list, and the entire target list is scrolled through.
[0158] In this embodiment, after receiving the target scrolling instruction, HUT can first determine the anchor list item from the list's visible area, that is, determine the baseline scrolling position for subsequent scrolling operations. Then, it determines the visibility state of the anchor list item, which indicates whether the content of the anchor list item is fully displayed within the list's visible area, such as whether it is entirely displayed or only partially displayed. If the visibility state indicates that the content of the anchor list item is not fully displayed, it determines whether the anchor list item can be fully displayed within the list's visible area. If the anchor list item can be fully displayed within the list's visible area, it controls the anchor list item to be aligned with the top or bottom of the list's visible area. In this way, by determining the visibility state of anchor list items, and when the visibility state indicates that the content of the anchor list item is not fully displayed but the anchor list item can be fully displayed within the list's visible area, the anchor list item can be fully displayed within the list's visible area by controlling its alignment with the top or bottom of the list's visible area. This allows the anchor list item to be fully displayed within the list's visible area with a single scroll. Compared to existing technologies that scroll with a fixed number of items or a fixed step size, this avoids the problem of skipping the remaining content of the list items and displaying content across pages after scrolling. For users, this allows for a complete browsing of the list items, thereby improving the user's browsing experience.
[0159] Figure 10 This is a schematic diagram of a list scrolling device provided in an embodiment of this application. The list scrolling device can be implemented as part or all of a vehicle by software, hardware, or a combination of both, and the vehicle can be described below. Figure 11 The vehicle shown. See also Figure 10 The device includes: a first determining module 1001, a second determining module 1002, and a control module 1003.
[0160] The first determining module 1001 is configured to determine an anchor list item from a list view area in response to a target scrolling instruction. The list view area includes at least one list item currently displayed in the target list. The anchor list item is used to indicate the reference scrolling position of the scrolling operation. The second determining module 1002 is used to determine the visibility status of the anchor list item. The visibility status is used to indicate whether the content in the anchor list item is fully displayed in the visible area of the list. The control module 1003 is used to, when the content of the anchor list item in the visible state indicator is not fully displayed in the visible area of the list, control the anchor list item to be aligned with the top or bottom of the visible area of the list if the anchor list item can be fully displayed in the visible area of the list.
[0161] Optionally, the control module 1003 is specifically used for: If the anchor list item can be fully displayed within the visible area of the list, obtain the boundary position of the anchor list item and the boundary position of the visible area of the list; The first scroll amount is determined based on the boundary position of the anchor list item and the boundary position of the list's visible area; Using the anchor list item as the reference scroll position, control the target list to scroll by the first scroll amount, and display the updated list view area. The anchor list item is fully displayed at the top or bottom of the updated list view area.
[0162] Optionally, the control module 1003 is specifically used for: When the target scroll command indicates downward scrolling, the longitudinal distance between the first upper boundary and the second upper boundary is calculated based on the boundary positions of the first upper boundary and the second upper boundary to obtain the first scroll amount; When the target scroll command indicates scrolling upwards, the vertical distance between the first lower boundary and the second lower boundary is calculated based on the boundary positions of the first lower boundary and the second lower boundary to obtain the first scroll amount. The first upper boundary is the upper boundary of the anchor list item, the second upper boundary is the upper boundary of the list's visible area, the first lower boundary is the lower boundary of the anchor list item, and the second lower boundary is the lower boundary of the list's visible area.
[0163] Optionally, the list scrolling device further includes: The third determining module is used to determine the number of target items based on the scrolling direction indicated by the target scrolling instruction. The number of target items is the number of reference list items in the target list, and the reference list items are the list items in the target list that are not displayed in the scrolling direction. The acquisition module is used to obtain the height of each reference list item when the target number of items is less than a preset number of items threshold; The overlay module is used to overlay the heights of each reference list item to obtain the remaining scrollable amount; Furthermore, the control module 1003 is specifically used for: The first reference scroll amount is determined based on the boundary position of the anchor list item and the boundary position of the list's visible area. If the first reference scroll amount is less than or equal to the remaining scrollable amount, the first reference scroll amount is determined as the first scroll amount.
[0164] Optionally, the control module 1003 is also used for: If the first reference scroll amount is greater than the remaining scrollable amount, the target list is scrolled with the anchor list item as the reference scroll position, and the remaining scrollable amount is controlled to display the updated list visible area. The anchor list item is fully displayed in the updated list visible area.
[0165] Optionally, the list scrolling device further includes a fourth determining module, specifically used for: Get the height of the anchor list item and the height of the list's visible area; If the height of an anchor list item is less than or equal to the height of the list's visible area, ensure that the anchor list item is fully displayed within the list's visible area. If the height of an anchor list item is greater than the height of the list's visible area, then the anchor list item cannot be fully displayed within the list's visible area.
[0166] Optionally, the control module 1003 is also used for: If the content of the anchor list item is fully displayed within the visible area of the list, or if the anchor list item cannot be fully displayed within the visible area of the list, a second scroll amount is determined based on the height of the visible area of the list. Using the anchor list item as the baseline scroll position, control the target list to scroll by a second amount.
[0167] Optionally, the control module 1003 is also specifically used for: Multiply the target scroll ratio by the height of the list's visible area to obtain the second scroll amount.
[0168] Optionally, the second determining module 1002 is specifically used for: Get the positional relationship between the visible area of the list and the anchor list item; If the positional relationship indicates that both the first upper boundary and the first lower boundary are within the visible area of the list, the visible state is determined to be fully visible. If at least one of the positional relationship indicators, the first upper boundary and the first lower boundary, is not within the list's visible area, the visible state is determined to be partially visible.
[0169] Optionally, the first determining module 1001 is specifically used for: When the target scroll instruction indicates that the list should scroll down, the last list item displayed in the visible area of the list will be designated as the anchor list item. When the target scroll instruction indicates scrolling upwards, the first list item displayed within the list's visible area is designated as the anchor list item.
[0170] In this embodiment, after receiving the target scrolling instruction, the anchor list item can be determined from the list's visible area, that is, the baseline scrolling position for subsequent scrolling operations can be determined. Then, the visibility state of the anchor list item is determined, indicating whether the content of the anchor list item is fully displayed within the list's visible area, such as whether it is entirely displayed or only partially displayed. If the visibility state indicates that the content of the anchor list item is not fully displayed, it is determined whether the anchor list item can be fully displayed within the list's visible area. If the anchor list item can be fully displayed within the list's visible area, the anchor list item is aligned with the top or bottom of the list's visible area. In this way, by determining the visibility state of anchor list items, and when the visibility state indicates that the content of the anchor list item is not fully displayed but the anchor list item can be fully displayed within the list's visible area, the anchor list item can be fully displayed within the list's visible area by controlling its alignment with the top or bottom of the visible area. This allows the anchor list item to be fully displayed within the list's visible area with a single scroll. Compared to existing technologies that scroll with a fixed number of items or a fixed step size, this avoids skipping the remaining content of the list items and the problem of scrolling across pages. For users, this allows for a complete browsing of the list items, thereby improving the user's browsing experience. It should be noted that the list scrolling device provided in the above embodiments is only illustrated by the division of the above functional modules when controlling the list scrolling. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0171] The functional units and modules in the above embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of the embodiments of this application.
[0172] The list scrolling device and list scrolling method embodiments provided in the above embodiments belong to the same concept. The specific working process and technical effects of the units and modules in the above embodiments can be found in the method embodiment section, and will not be repeated here.
[0173] Figure 11 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application.
[0174] For example, such as Figure 11As shown, the vehicle 1100 includes a memory 111 and a processor 110, wherein the memory 111 stores executable program code 112, and the processor 110 is used to call and execute the executable program code 112 to perform the above-mentioned list scrolling method.
[0175] This embodiment can divide the vehicle into functional modules according to the above method example. For example, each function can be assigned to a separate module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0176] When each functional module is divided according to its corresponding function, the vehicle may include: a first determining module, a second determining module, and a control module. It should be noted that all relevant content regarding the steps involved in the above method embodiments can be referenced from the functional descriptions of the corresponding functional modules, and will not be repeated here.
[0177] The vehicle provided in this embodiment is used to execute the list scrolling method described above, and thus can achieve the same effect as the implementation method described above.
[0178] When using integrated units, the vehicle may include a processing module and a storage module. The processing module is used to control and manage the vehicle's actions. The storage module is used to support the vehicle in executing corresponding program code and data.
[0179] The processing module may be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits shown in conjunction with the disclosure of this application. The processor may also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc., and the storage module may be a memory.
[0180] This embodiment also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the aforementioned method steps to implement the list scrolling method described in the above embodiment.
[0181] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement the list scrolling method described in the above embodiment.
[0182] In this embodiment, the vehicle, computer-readable storage medium, computer program product, or chip are all used to execute the method described above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the method described above, and will not be repeated here.
[0183] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0184] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are illustrative; for instance, the division of modules or units is merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0185] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A list scrolling method, characterized in that, The method includes: In response to a target scroll command, an anchor list item is determined from a list view area, the list view area including at least one list item currently displayed in the target list, the anchor list item being used to indicate a reference scroll position for the scroll operation; Determine the visibility state of the anchor list item, wherein the visibility state is used to indicate whether the content in the anchor list item is fully displayed within the visible area of the list; If the content of the anchor list item is not fully displayed in the visible area of the list when the visible state indicates that the anchor list item can be fully displayed in the visible area of the list, then the anchor list item is controlled to be aligned with the top or bottom of the visible area of the list.
2. The method according to claim 1, characterized in that, If the anchor list item can be fully displayed within the visible area of the list, then controlling the anchor list item to align with the top or bottom of the visible area of the list includes: If the anchor list item can be fully displayed within the visible area of the list, obtain the boundary position of the anchor list item and the boundary position of the visible area of the list; The first scroll amount is determined based on the boundary position of the anchor list item and the boundary position of the visible area of the list; Using the anchor list item as a reference scroll position, the target list is controlled to scroll by the first scroll amount to display the updated list view area, wherein the anchor list item is completely displayed at the top or bottom of the updated list view area.
3. The method according to claim 2, characterized in that, Determining the first scroll amount based on the boundary position of the anchor list item and the boundary position of the list's visible area includes: When the target scroll command indicates downward scrolling, the longitudinal distance between the first upper boundary and the second upper boundary is calculated based on the boundary positions of the first upper boundary and the second upper boundary to obtain the first scroll amount; When the target scroll command indicates upward scrolling, the vertical distance between the first lower boundary and the second lower boundary is calculated based on the boundary positions of the first lower boundary and the second lower boundary to obtain the first scroll amount. The first upper boundary is the upper boundary of the anchor list item, the second upper boundary is the upper boundary of the list's visible area, the first lower boundary is the lower boundary of the anchor list item, and the second lower boundary is the lower boundary of the list's visible area.
4. The method according to claim 2, characterized in that, The method further includes: Based on the scrolling direction indicated by the target scrolling command, the number of target items is determined. The number of target items is the number of reference list items in the target list. The reference list items are the list items in the target list that are not displayed in the scrolling direction. If the number of target items is less than a preset number of items threshold, obtain the height of each reference list item; The remaining scrollable amount is obtained by summing the heights of each of the reference list items; And, determining the first scroll amount based on the boundary position of the anchor list item and the boundary position of the list's visible area includes: A first reference scroll amount is determined based on the boundary position of the anchor list item and the boundary position of the visible area of the list; If the first reference scroll amount is less than or equal to the remaining scrollable amount, the first reference scroll amount is determined as the first scroll amount.
5. The method according to claim 4, characterized in that, The method further includes: When the first reference scroll amount is greater than the remaining scrollable amount, the target list is controlled to scroll the remaining scrollable amount based on the anchor list item as the reference scroll position, and the updated list view area is displayed, wherein the anchor list item is completely displayed in the updated list view area.
6. The method according to claim 1, characterized in that, The method further includes: Get the height of the anchor list item and the height of the visible area of the list; If the height of the anchor list item is less than or equal to the height of the list's visible area, it is determined that the anchor list item can be fully displayed within the list's visible area. If the height of the anchor list item is greater than the height of the list's visible area, it is determined that the anchor list item cannot be fully displayed within the list's visible area.
7. The method according to claim 1, characterized in that, The method further includes: When the visibility state indicates that the content of the anchor list item has been fully displayed in the visible area of the list, or when the anchor list item cannot be fully displayed in the visible area of the list, a second scroll amount is determined based on the height of the visible area of the list. Using the anchor list item as a reference scroll position, control the target list to scroll by the second scroll amount.
8. The method according to claim 7, characterized in that, Determining the second scroll amount based on the height of the visible area of the list includes: The second scroll amount is obtained by multiplying the target scroll ratio by the height of the visible area of the list.
9. The method according to any one of claims 1-8, characterized in that, The visibility state includes a fully visible state or a partially visible state, the anchor point list item includes a first upper boundary and a first lower boundary, and determining the visibility state of the anchor point list item includes: Obtain the positional relationship between the visible area of the list and the anchor list item; When the positional relationship indicates that both the first upper boundary and the first lower boundary are within the visible area of the list, the visible state is determined to be a fully visible state; If the positional relationship indicates that at least one of the first upper boundary and the first lower boundary is not within the visible area of the list, the visible state is determined to be a partially visible state.
10. A vehicle, characterized in that, The vehicles include: Memory, used to store executable program code; A processor for calling and running the executable program code from the memory, causing the vehicle to perform the method according to any one of claims 1 to 9.
