Tab navigation bar grouping method and system, terminal equipment and storage medium
By grouping and collapseing the column list of the Tab navigation bar and using the id index number of the View to operate, the problem of the inconspicuous tiling of the Tab navigation bar is solved and the user experience is improved.
Patent Information
- Application Number
- CN202411152531.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-08-21
AI Technical Summary
The tile form of the Tab navigation bar in existing terminal devices is not concise enough, which affects the user experience.
By receiving user needs, grouping or collapse column lists in the Tab navigation bar, using the id index number of the View for grouping and collapse operations, creating Views of the same width and setting background images, or setting some Views to invisible to implement columns Simplification of the list.
It improves the simplicity of the Tab navigation bar and the friendliness of user interaction, and enhances the user experience.
Smart Images

Figure CN119025767A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Tab navigation bars, and in particular to a grouping method, system, terminal equipment and storage medium for Tab navigation bars. Background Art
[0002] Tab navigation bar, also known as label navigation or tab navigation, is widely used in terminal devices. It is usually located at the top or bottom of the screen and is used to display different content or functional modules so that users can clearly identify the content or function of each module and easily switch between modules.
[0003] Currently, the tab navigation bar of the terminal device usually displays the column list of the tab navigation bar in a flat form. However, in actual use, the column list of the tab navigation bar displayed in a flat form is not concise enough, which may not meet the user's usage habits and is not conducive to improving the user experience. Summary of the invention
[0004] The object of the present invention is to provide a method, system, terminal device and storage medium for grouping Tab navigation bars to solve at least one of the above problems.
[0005] In a first aspect, the technical solution of the present invention provides a method for grouping a Tab navigation bar, which is applied to a terminal device, and the method includes: Receive user requirements; user requirements include the column list of the Tab navigation bar; each View in the column list is equipped with an id index number, and the id index number of each View in the column list increases in sequence according to the position of the column list; user requirements also include the column id of the group to be set in the column list; the column id of the group includes the start id and end id of the group; the start id of the group is the id index number of the first View in the group to be set, and the end id of the group is the id index number of the last View in the group to be set, and the id index number order of each View in the group is the same as the id index number order in the column list; Traverse the Views in the column list, and execute step S1 for the traversed Views; S1. Get the id index number of the currently traversed View and determine whether the id index number belongs to the group column id: If so, then obtain each group column View of the group to which the currently traversed View belongs, and calculate the total width of each group column View, then create a View of the same width and append it to the position of each group column View, and set a background image for the created View, so as to set a background image for all Views in the group as a whole; then continue to traverse the Views in the column list starting from the next View in the column list that is located in the last View in the group to which the currently traversed View belongs, and execute step S1 for the traversed View until all Views in the column list are traversed; If not, execute step S2; S2. Continue to traverse the next View in the column list, and execute step S1 for the traversed View until all Views in the column list are traversed.
[0006] Furthermore, the user demand also includes the folded column ID to be set in the column list; the folded column ID includes the folded start ID and end ID; the folded start ID is the ID index number of the first View in the folded to be set, and the folded end ID is the ID index number of the last View in the folded to be set. The ID index number order of each View in the folded is the same as the ID index number order in the column list; the View in the folded is different from that in the grouped; Executing step S2 includes: S3. Determine whether the id index number of the currently traversed View belongs to the collapsed column id: If so, then obtain each folded column View of the fold to which the currently traversed View belongs, and set all column Views whose id index numbers are located after the id index number of the currently traversed View in the folded column Views to be invisible for folding; then continue to traverse the Views in the column list starting from the next View in the column list that is located in the last View in the fold to which the currently traversed View belongs, and execute step S1 for the traversed Views until all Views in the column list are traversed; If not, execute step S2.
[0007] Furthermore, the number of folds to be set is at least one; when the number of folds to be set is multiple, there is no same View between the folds.
[0008] Furthermore, the number of groups to be set is at least one; when the number of groups to be set is multiple, there is no same View between the groups.
[0009] Furthermore, the method also includes: a step of modifying the grouping; The steps to modify the group include: Receive a user group modification request; the user group modification request includes a column list of a Tab navigation bar; the user group modification request also includes a column ID of the group to be modified in the column list and a modified column ID of the group to be modified; the modified column ID of the group to be modified includes a modified start ID and a modified end ID of the group to be modified; Delete the View added to the position of each group column View before the modification of the group to be modified and the background image set for the added View; Get the modified group column Views of the group to be modified, and calculate the total width of the modified group column Views of the group to be modified, then create a View of the same width and append it to the position of the modified group column Views of the group to be modified as a whole, and set a background image for the created View of the same width to achieve setting a background image for the modified column Views in the group as a whole.
[0010] Further, the method also includes: a folding modification step; The modification steps for folding include: Receive a user's folding modification requirement; the user's folding modification requirement includes a list of columns in the Tab navigation bar; the user's folding modification requirement also includes a column ID of the fold to be modified in the column list and a modified column ID of the fold to be modified; the modified column ID of the fold to be modified includes a modified start ID and an end ID of the fold to be modified; Delete all the related column views in the fold that the user wants to modify and make them invisible to set the fold; Set all Views in the column list whose id index number is after the modified start id of the fold to be modified and until the modified end id of the fold to be modified to be invisible for folding.
[0011] In a second aspect, the present invention further provides a tab navigation bar grouping system, which is applied to a terminal device, and the system includes: The first demand receiving module is used to receive user demands; the user demands include the column list of the Tab navigation bar; each View in the column list is equipped with an id index number, and the id index number of each View in the column list increases in sequence according to the position of the column list; the user demands also include the column id of the group to be set in the column list; the column id of the group includes the start id and end id of the group; the start id of the group is the id index number of the first View in the group to be set, and the end id of the group is the id index number of the last View in the group to be set, and the id index number order of each View in the group is the same as the id index number order in the column list; The traversal module is used to traverse the View in the column list; The navigation bar grouping module is used to execute step S1 for the View traversed by the traversal module; S1, obtain the id index number of the currently traversed View, and determine whether the id index number belongs to the group column id: if so, obtain the group column Views of the group to which the currently traversed View belongs, and calculate the total width of the group column Views, then create a View of the same width and append it to the position of each group column View, and set a background image for the created View to achieve setting a background image for each View in the group as a whole; then continue to traverse the Views in the column list starting from the next View in the column list that is located in the last View in the group to which the currently traversed View belongs, and execute step S1 for the traversed View until all Views in the column list are traversed; if not, execute step S2; S2, continue to traverse the next View in the column list, and execute step S1 for the traversed View until all Views in the column list are traversed.
[0012] Furthermore, the user demand also includes the folded column ID to be set in the column list; the folded column ID includes the folded start ID and end ID; the folded start ID is the ID index number of the first View in the folded to be set, and the folded end ID is the ID index number of the last View in the folded to be set. The ID index number order of each View in the folded is the same as the ID index number order in the column list; the View in the folded is different from that in the grouped; Executing step S2 includes: S3. Determine whether the id index number of the currently traversed View belongs to the collapsed column id: If so, then obtain each folded column View of the fold to which the currently traversed View belongs, and set all column Views whose id index numbers are located after the id index number of the currently traversed View in the folded column Views to be invisible for folding; then continue to traverse the Views in the column list starting from the next View in the column list that is located in the last View in the fold to which the currently traversed View belongs, and execute step S1 for the traversed Views until all Views in the column list are traversed; If not, execute step S2.
[0013] In a third aspect, the present invention provides a terminal device, comprising: processor; A memory for storing execution instructions of the processor; The processor is configured to execute the methods described in the above aspects.
[0014] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the methods described in the above aspects.
[0015] The present invention has the following beneficial effects: The present invention helps to achieve grouping of the Tab navigation bar under the terminal device, and facilitates users to group Views in the Tab navigation bar column list into the same group, which helps to increase the simplicity of the column list, helps to improve the friendliness and convenience of the interaction between the device and the user, and then helps to improve the user experience.
[0016] The present invention also helps to achieve the folding of the Tab navigation bar under the terminal device, which is convenient for helping users to fold the View in the column list of the Tab navigation bar, which helps to further increase the simplicity of the column list, and helps to further improve the friendliness and convenience of the interaction between the device and the user, thereby further improving the user experience.
[0017] The invention has reliable design principle, simple structure and very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention; Figure 2 This is a schematic diagram showing the folding and grouping of the Tab navigation bar on a TV; Figure 3 For click Figure 2 Schematic diagram of the interface of the Tab navigation bar displayed after folding; Figure 4 is a schematic block diagram of a system according to an embodiment of the present invention; Figure 5 A schematic diagram of the structure of a terminal device provided by an embodiment of the present invention; Figure 6 It is a structural schematic diagram of a computer storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] To make the technical solution and advantages of the present invention more clear, the technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.
[0021] The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0022] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0023] It should be noted that the present invention uses words such as "first" and "second" to limit the corresponding parts only to facilitate the distinction of the corresponding parts. If not otherwise stated, the above words have no special meaning and therefore cannot be understood as limiting the scope of protection of the present invention.
[0024] The technical solution of the present invention will be introduced and explained below through several embodiments.
[0025] In one embodiment, the present invention provides a method for grouping Tab navigation bars.
[0026] The method is applied to a terminal device.
[0027] The Tab navigation bar is a horizontal ScrollView, which stores several Views inside to form a slidable and clickable horizontal Tab bar.
[0028] Please refer to Figure 1 , the method 100 comprises: Step 110: Receive user requirements.
[0029] User requirements include the column list of the Tab navigation bar.
[0030] Each View in the column list is equipped with an id index number.
[0031] The id index number of each View in the column list increases in sequence according to the position of the column list.
[0032] User requirements also include the column ID of the group to be set in the column list.
[0033] The column ID of a group includes the start ID and the end ID of the group.
[0034] The start id of the group is the id index number of the first View in the group to be set, and the end id of the group is the id index number of the last View in the group to be set. The id index number sorting of each View in the group is the same as the id index number sorting in the column list.
[0035] Step 120, traverse the Views in the column list, and execute step S1 for the traversed Views; S1. Get the id index number of the currently traversed View and determine whether the id index number belongs to the group column id: If so, then obtain each group column View of the group to which the currently traversed View belongs, and calculate the total width of each group column View, then create a View of the same width and append it to the position of each group column View, and set a background image for the created View, so as to set a background image for all Views in the group as a whole; then continue to traverse the Views in the column list starting from the next View in the column list that is located in the last View in the group to which the currently traversed View belongs, and execute step S1 for the traversed View until all Views in the column list are traversed; If not, execute step S2; S2. Continue to traverse the next View in the column list, and execute step S1 for the traversed View until all Views in the column list are traversed.
[0036] Optionally, the user requirement also includes the folded column ID to be set in the column list.
[0037] The collapsed column ID includes the collapsed start ID and end ID.
[0038] The start id of the fold is the id index number of the first View in the fold to be set, and the end id of the fold is the id index number of the last View in the fold to be set. The id index number sorting of each View in the fold is the same as the id index number sorting in the column list.
[0039] View in folding and grouping is different.
[0040] That is, the same View in the column list will not belong to both collapse and grouping.
[0041] Optionally, executing step S2 includes: S3. Determine whether the id index number of the currently traversed View belongs to the collapsed column id: If so, then obtain each folded column View of the fold to which the currently traversed View belongs, and set all column Views whose id index numbers are located after the id index number of the currently traversed View in the folded column Views to be invisible for folding; then continue to traverse the Views in the column list starting from the next View in the column list that is located in the last View in the fold to which the currently traversed View belongs, and execute step S1 for the traversed Views until all Views in the column list are traversed; If not, execute step S2.
[0042] Optionally, the number of folds to be set is at least one.
[0043] When the number of folds to be set is multiple (at least two), there are no identical Views between the folds.
[0044] That is, the present invention supports the setting of multiple folds, and when the number of folds to be set is multiple, there is no situation where the same View in the column list belongs to multiple folds.
[0045] When multiple groups of folds are supported, each fold corresponds to a start id and an end id.
[0046] Optionally, the number of groups to be set is at least one.
[0047] When there are multiple groups to be set, there are no identical views between the groups.
[0048] That is, the present invention supports the setting of multiple groups, and when the number of groups to be set is multiple, there is no situation where the same View in the column list belongs to multiple groups.
[0049] When multiple groups are supported, each group corresponds to a start id and an end id.
[0050] The starting id of the group corresponds to the starting position of the group.
[0051] The end id of the group corresponds to the end position of the group.
[0052] The present invention can realize the folding and unfolding of any adjacent Views in the Tab navigation bar.
[0053] When multiple groups of folds are supported, each fold corresponds to a start id and an end id.
[0054] The start id of the fold, corresponding to the start position of the fold.
[0055] The end id of the fold, corresponding to the end position of the fold.
[0056] When folded, each fold group position displays the content of the View corresponding to the current fold start ID.
[0057] The present invention can realize the grouping of any adjacent views in a Tab navigation bar.
[0058] Taking TV as an example, the column list of the TV's Tab navigation bar is: Home, Watch TV, VIP, Movies, TV Series, Documentary, Free Zone, Opera, Culture and Travel, 4K, Application Center, and Mine.
[0059] Based on the present invention, VIP, movies, TV series, and documentaries can be set as a long background image to represent that the tabs belong to a group. At the same time, free area, opera, and cultural travel can also be folded into a special area column called free area, such as Figure 2 As shown, click / select the section column to expand the folded sections View, such as Figure 3 shown.
[0060] Optionally, the method 100 further includes: a grouping modification step.
[0061] Optionally, the step of modifying the grouping includes: Receive a user group modification request; the user group modification request includes a column list of a Tab navigation bar; the user group modification request also includes a column ID of the group to be modified in the column list and a modified column ID of the group to be modified; the modified column ID of the group to be modified includes a modified start ID and a modified end ID of the group to be modified; Delete the View added to the position of each group column View before the modification of the group to be modified and the background image set for the added View; Get the modified group column Views of the group to be modified, and calculate the total width of the modified group column Views of the group to be modified, then create a View of the same width and append it to the position of the modified group column Views of the group to be modified as a whole, and set a background image for the created View of the same width to achieve setting a background image for the modified column Views in the group as a whole.
[0062] Optionally, the method 100 further includes: a folding modification step.
[0063] Optionally, the above folding modification step includes: Receive a user's folding modification requirement; the user's folding modification requirement includes a list of columns in the Tab navigation bar; the user's folding modification requirement also includes a column ID of the fold to be modified in the column list and a modified column ID of the fold to be modified; the modified column ID of the fold to be modified includes a modified start ID and an end ID of the fold to be modified; Delete all the related column views in the fold that the user wants to modify and make them invisible to set the fold; Set all Views in the column list whose id index number is after the modified start id of the fold to be modified and until the modified end id of the fold to be modified to be invisible for folding.
[0064] The present invention also provides a grouping system for a Tab navigation bar, which is applied to a terminal device.
[0065] like Figure 4 As shown, the system 200 includes: The first demand receiving module 201 is used to receive user demands; the user demands include the column list of the Tab navigation bar; each View in the column list is equipped with an id index number, and the id index number of each View in the column list increases in sequence according to the position of the column list; the user demands also include the column id of the group to be set in the column list; the column id of the group includes the start id and end id of the group; the start id of the group is the id index number of the first View in the group to be set, and the end id of the group is the id index number of the last View in the group to be set, and the id index number order of each View in the group is the same as the id index number order in the column list; The traversal module 202 is used to traverse the Views in the column list; The navigation bar grouping module 203 is used to execute step S1 for the View traversed by the traversal module; S1, obtain the id index number of the currently traversed View, and determine whether the id index number belongs to the group column id: if so, obtain the group column Views of the group to which the currently traversed View belongs, and calculate the total width of the group column Views, then create a View of the same width and append it to the position of each group column View, and set a background image for the created View to achieve setting a background image for all Views in the group; then continue to traverse the Views in the column list starting from the next View in the column list that is located in the last View in the group to which the currently traversed View belongs, and execute step S1 for the traversed View until all Views in the column list are traversed; if not, execute step S2; S2, continue to traverse the next View in the column list, and execute step S1 for the traversed View until all Views in the column list are traversed.
[0066] Optionally, the user's needs also include the folded column ID to be set in the column list; the folded column ID includes the folded start ID and end ID; the folded start ID is the ID index number of the first View in the fold to be set, and the folded end ID is the ID index number of the last View in the fold to be set. The order of the ID index numbers of each View in the fold is the same as the order of the ID index numbers in the column list; the View in the fold is different from that in the group; The execution step S2 comprises: S3. Determine whether the id index number of the currently traversed View belongs to the collapsed column id: If so, then obtain each folded column View of the fold to which the currently traversed View belongs, and set all column Views whose id index numbers are located after the id index number of the currently traversed View in the folded column Views to be invisible for folding; then continue to traverse the Views in the column list starting from the next View in the column list that is located in the last View in the fold to which the currently traversed View belongs, and execute step S1 for the traversed Views until all Views in the column list are traversed; If not, execute step S2.
[0067] Figure 5 The present invention provides a schematic diagram of the structure of a terminal device 300 provided in an embodiment of the present invention. The terminal device 300 can be used to execute the method 100 provided in an embodiment of the present invention.
[0068] The terminal device 300 may include: a processor 310, a memory 320 and a communication unit 330. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention. It may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0069] The memory 320 can be used to store the execution instructions of the processor 310, and the memory 320 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (S1RAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 320 are executed by the processor 310, the terminal device 300 can perform some or all of the steps in the following method embodiments.
[0070] The processor 310 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. By running or executing software programs and / or modules stored in the memory 320, and calling data stored in the memory, the processor can execute various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 310 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0071] The communication unit 330 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.
[0072] The present invention also provides a computer storage medium 400, such as Figure 6 As shown, the computer storage medium 400 stores a program 410, and the program 410 may include some or all of the steps in each embodiment provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0073] The technical effects that can be achieved by this embodiment can be found in the above description and will not be repeated here.
[0074] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.
[0075] The same and similar parts between the various embodiments in this specification can be referenced to each other.
[0076] The present invention helps users to group Views that are continuously distributed in a Tab navigation bar column list into the same group, and also helps users to group Views that are continuously distributed in a Tab navigation bar column list into the same fold, which helps to improve user experience to a certain extent.
[0077] Although the present invention has been described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, and all of these shall be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A method for grouping a Tab navigation bar, applied to a terminal device, characterized in that the method include: Receive user needs; User requirements include the column list of the Tab navigation bar; each View in the column list is equipped with an id index number, and the id index number of each View in the column list increases in sequence according to the position of the column list; user requirements also include the column id of the group to be set in the column list; the column id of the group includes the start id and end id of the group; the start id of the group is the id index number of the first View in the group to be set, and the end id of the group is the id index number of the last View in the group to be set, and the id index number order of each View in the group is the same as the id index number order in the column list; Traverse the Views in the column list, and execute step S1 for the traversed Views; S1. Get the id index number of the currently traversed View and determine whether the id index number belongs to the group column id: If so, then obtain each group column View of the group to which the currently traversed View belongs, and calculate the total width of each group column View, then create a View of the same width and append it to the position of each group column View, and set a background image for the created View, so as to set a background image for all Views in the group as a whole; then continue to traverse the Views in the column list starting from the next View in the column list that is located in the last View in the group to which the currently traversed View belongs, and execute step S1 for the traversed View until all Views in the column list are traversed; If not, execute step S2; S2. Continue to traverse the next View in the column list, and execute step S1 for the traversed View until all Views in the column list are traversed.
2. The method according to claim 1, characterized in that User requirements also include the folded column ID to be set in the column list; the folded column ID includes the folded start ID and end ID; the folded start ID is the ID index number of the first View in the fold to be set, and the folded end ID is the ID index number of the last View in the fold to be set. The order of the ID index numbers of each View in the fold is the same as the order of the ID index numbers in the column list; View in folding and grouping is different; Executing step S2 includes: S3. Determine whether the id index number of the currently traversed View belongs to the collapsed column id: If so, then obtain each folded column View of the fold to which the currently traversed View belongs, and set all column Views whose id index numbers are located after the id index number of the currently traversed View in the folded column Views to be invisible for folding; then continue to traverse the Views in the column list starting from the next View in the column list that is located in the last View in the fold to which the currently traversed View belongs, and execute step S1 for the traversed Views until all Views in the column list are traversed; If not, execute step S2.
3. The method according to claim 2, characterized in that The number of folds to be set is at least one; when the number of folds to be set is multiple, there is no same View between the folds.
4. The method according to claim 1, characterized in that: The number of groups to be set is at least one; when the number of groups to be set is multiple, there is no same View between the groups.
5. The method according to claim 1, characterized in that The method further comprises: a step of modifying the grouping; The steps to modify the group include: Receive a user group modification request; the user group modification request includes a column list of a Tab navigation bar; the user group modification request also includes a column ID of the group to be modified in the column list and a modified column ID of the group to be modified; the modified column ID of the group to be modified includes a modified start ID and a modified end ID of the group to be modified; Delete the View added to the position of each group column View before the modification of the group to be modified and the background image set for the added View; Get the modified group column Views of the group to be modified, and calculate the total width of the modified group column Views of the group to be modified, then create a View of the same width and append it to the position of the modified group column Views of the group to be modified as a whole, and set a background image for the created View of the same width to achieve setting a background image for the modified column Views in the group as a whole.
6. The method according to claim 2, characterized in that The method further comprises: a modification step of folding; The modification steps for folding include: Receive a user's folding modification requirement; the user's folding modification requirement includes a list of columns in the Tab navigation bar; the user's folding modification requirement also includes a column ID of the fold to be modified in the column list and a modified column ID of the fold to be modified; the modified column ID of the fold to be modified includes a modified start ID and an end ID of the fold to be modified; Delete all the related column views in the fold that the user wants to modify and make them invisible to set the fold; Set all Views in the column list whose id index number is after the modified start id of the fold to be modified and until the modified end id of the fold to be modified to be invisible for folding.
7. A tab navigation bar grouping system, applied to a terminal device, characterized in that: The system includes: A first demand receiving module, used for receiving user demand; User requirements include the column list of the Tab navigation bar; each View in the column list is equipped with an id index number, and the id index number of each View in the column list increases in sequence according to the position of the column list; user requirements also include the column id of the group to be set in the column list; the column id of the group includes the start id and end id of the group; the start id of the group is the id index number of the first View in the group to be set, and the end id of the group is the id index number of the last View in the group to be set, and the id index number order of each View in the group is the same as the id index number order in the column list; The traversal module is used to traverse the View in the column list; The navigation bar grouping module is used to execute step S1 for the View traversed by the traversal module; S1. Get the id index number of the currently traversed View, and determine whether the id index number belongs to the group column id: If so, get the group column Views of the group to which the currently traversed View belongs, and calculate the total width of the group column Views, then create a View of the same width and append it to the position of each group column View, and set a background image for the created View to achieve setting a background image for all Views in the group as a whole; then continue to traverse the Views in the column list starting from the next View in the column list that is located in the group to which the currently traversed View belongs, and execute step S1 for the traversed View until all Views in the column list are traversed; if not, execute step S2; S2. Continue to traverse the next View in the column list, and execute step S1 for the traversed View until all Views in the column list are traversed.
8. The system according to claim 7, characterized in that User requirements also include the folded column ID to be set in the column list; the folded column ID includes the folded start ID and end ID; the folded start ID is the ID index number of the first View in the fold to be set, and the folded end ID is the ID index number of the last View in the fold to be set. The order of the ID index numbers of each View in the fold is the same as the order of the ID index numbers in the column list; View in folding and grouping is different; Executing step S2 includes: S3. Determine whether the id index number of the currently traversed View belongs to the collapsed column id: If so, then obtain each folded column View of the fold to which the currently traversed View belongs, and set all column Views whose id index numbers are located after the id index number of the currently traversed View in the folded column Views to be invisible for folding; then continue to traverse the Views in the column list starting from the next View in the column list that is located in the last View in the fold to which the currently traversed View belongs, and execute step S1 for the traversed Views until all Views in the column list are traversed; If not, execute step S2.
9. A terminal device, characterized in that: include: processor; A memory for storing execution instructions of the processor; The processor is configured to execute the method according to any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
A navigation display method and system
CN109725972A
Self-adaptive display method and device of navigation bar
CN110020230A
User interface layout and interaction method, and three-dimensional display device
WO2022083554A1
