Information display method, terminal equipment and chip system

By detecting text selection operations in the terminal device and paging layout according to the option width, the problem of options being compressed in the horizontal text processing control is solved, improving the user experience and visibility of the displayed content.

CN119148899APending Publication Date: 2024-12-17HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310722882.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-16
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

When the terminal device responds to the user's selection operation of the text control, the options in the horizontal text processing control are severely compressed due to the grid width limitation, resulting in the user being unable to intuitively understand the option function and affecting the user experience.

Method used

By detecting the selection operation of the target text, layout according to the width of each option, and using multiple display pages for paging layout, ensuring that the options can be displayed in full, and providing a page turn indicator so that users can view all options.

Benefits of technology

The reasonable layout of options is realized, which avoids compressed display due to grid width limitations, improves user experience, and effectively utilizes limited display space to ensure that users can intuitively view all actionable options.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119148899A_ABST
    Figure CN119148899A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an information display method, terminal equipment and a chip system, which are suitable for the technical field of computers, and the method comprises the following steps: the terminal equipment displays a target text; when a text selection operation on the target text is detected, determining at least one target option corresponding to the current selection scene; according to the option width of each target option, performing layout on the at least one target option to obtain at least one display page suitable for being displayed by the transverse text processing control; the transverse text processing control is displayed, a source display page is displayed in the transverse text processing control, and the source display page is any one display page in the at least one display page. According to the embodiment of the invention, each option can be displayed in a paging manner, and the condition that the options are seriously compressed and displayed due to the limitation of the grid width can be avoided, so that a user can intuitively know the function of each option, and the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an information display method, a terminal device and a chip system. Background Art

[0002] With the development of terminal devices, various applications (APPs) emerge in an endless stream, allowing users to handle many things through APPs on terminal devices, providing convenience for users. For example, users can call friends through phone APPs, record daily events through note APPs, and query network information through search APPs, etc.

[0003] When the terminal device responds to a user's text selection operation on a certain area in the text control, the terminal device may display a horizontal text processing control in the display page.

[0004] Since the grid width used to display horizontal text processing controls is usually limited, when a large number of options need to be displayed in a horizontal text processing control or the option width is large, the terminal device is likely to severely compress one or more of the options, resulting in the user being unable to intuitively understand the function of the option, resulting in a poor user experience. Summary of the invention

[0005] In view of this, the embodiments of the present application provide an information display method, a terminal device and a chip system, which can solve the problem that the terminal device severely compresses the options, resulting in the user being unable to intuitively understand the function of the option and a poor user experience.

[0006] A first aspect of an embodiment of the present application provides an information display method, applied to a terminal device, comprising:

[0007] The terminal device displays the target text, and when a text selection operation on the target text is detected, determines at least one target option corresponding to the current selection scene; lays out at least one target option according to the option width of each target option to obtain at least one display page suitable for being displayed by a horizontal text processing control; displays the horizontal text processing control, wherein a source display page is displayed in the horizontal text processing control, and the source display page is any display page of the at least one display page.

[0008] The above-mentioned selection scenarios may be a scenario where the target text is empty and the selected text is empty, a scenario where the target text is not empty and the selected text is empty, or a scenario where the selected text is not empty.

[0009] In an embodiment of the present application, the terminal device lays out the options required to be displayed by the horizontal text processing control into one or more display pages based on the option width of each option, that is, if one display page is not enough, another one or more display pages are used for paging layout, so that the reasonable layout of each option can be achieved, thereby improving the accuracy of the layout of each option. In addition, since each display page is pre-laid out based on the option width of each option, the situation of severely compressed display of the options due to grid width limitation can be avoided, that is, the horizontal text processing control can be made to display each option more completely, and the user can intuitively know the function of each option, which helps to improve the user experience. In addition, since the display space required by the horizontal text processing control is small, only the horizontal text processing control is used to display each option, which can effectively and reasonably utilize the limited display space of the terminal device. Since the display space required by the horizontal text processing control is small, when the horizontal text processing control is displayed, other display contents will hardly be blocked, and the user's viewing of the display contents on the display page will not be affected, which helps to further improve the user experience.

[0010] As an optional embodiment of the present application, when there are multiple display pages, the terminal device can sequentially display each display page in the horizontal text processing control according to a preset refresh cycle.

[0011] In the embodiment of the present application, the terminal device actively displays each display page in turn, and the user can be very intuitively informed of all operable options, which is convenient for the user to select the options displayed in the display page, and helps to further improve the user experience.

[0012] In a first possible implementation manner of the first aspect, after displaying the horizontal text processing control, the method further includes:

[0013] When a page turning operation on a horizontal text processing control is detected, a destination display page is determined from at least one display page according to the page turning direction indicated by the page turning operation, and the source display page is switched to the destination display page.

[0014] The above-mentioned page turning operation can be implemented as a sliding operation on the horizontal text processing control, such as sliding left, sliding right, sliding up, sliding down, etc., can also be implemented as a long press operation on the horizontal text processing control, and can also be implemented as an operation of clicking a page turning indicator in the horizontal text processing control. The page turning indicator may include an upward turning indicator for indicating turning to the previous page, and / or a downward turning indicator for indicating turning to the next page.

[0015] In an embodiment of the present application, a user can perform a page turning operation on a horizontal text processing control displayed by a terminal device to switch a source display page currently displayed by the horizontal text processing control to a destination display page corresponding to the page turning operation. The operation is simple and easy to implement, which helps to improve the human-computer interaction experience.

[0016] In a second possible implementation manner of the first aspect, at least one target option is laid out according to the option width of each target option to obtain at least one display page suitable for being displayed by the horizontal text processing control, including:

[0017] Create a first initial display page with a page width of zero, determine the first initial display page as the current display page, traverse at least one target option, and when accessing the current target option, perform the following layout operations:

[0018] If the sum of the option width of the current target option and the page width of the current display page is less than or equal to the preset width threshold, the current target option is associated with the current display page, and the page width of the current display page is updated according to the option width of the current target option;

[0019] If the sum of the option width of the current target option and the page width of the current display page is greater than the preset width threshold, create the next initial display page with a page width of zero, switch the current display page to the next initial display page; associate the current target option with the current display page, and update the page width of the current display page according to the option width of the current target option.

[0020] In an embodiment of the present application, during the process of laying out at least one target option, each target option can be traversed, and when accessing each target option, the option width of the target option, the page width that has been reached by the current display page, and the preset width threshold are combined to determine whether to layout the target option in the current display page or in the next new display page. This can achieve a reasonable and effective layout of each target option, thereby improving the accuracy of the display page layout.

[0021] As an optional embodiment of the present application, the preset width threshold is positively correlated with the grid width of the terminal device.

[0022] In the embodiment of the present application, the preset width threshold is usually positively correlated with the grid width. The widths of the display pages obtained based on the option widths of the target options, the page width that the current display page has reached, and the preset width threshold are similar, which is aesthetically pleasing and can effectively utilize the limited display space. In addition, displaying as many target options as possible in a limited display space, that is, the number of display pages is as small as possible, helps to reduce the number of switching times between display pages, and helps to further enhance the human-computer interaction experience.

[0023] In a third possible implementation manner of the first aspect, before creating a next initial display page with a page width of zero, the method further includes:

[0024] The currently displayed page is associated with a page turning indicator, wherein the page turning indicator includes an upward turning indicator for indicating turning to a previous page and / or a downward turning indicator for indicating turning to a next page.

[0025] In an embodiment of the present application, in the process of performing page layout for each option, when laying out the current display page, the terminal device may associate a page turning indicator with the current display page. For example, the page turning indicator may be associated with the current display page before the current display page is associated with an option, or the page turning indicator may be associated with the current display page after the current display page is associated with one or more options. It is understandable that this embodiment does not specifically limit the timing when the terminal device associates the page turning indicator with the current display page. In addition, this embodiment does not specifically limit the display position of the page turning indicator in the display page. In the process of laying out the current display page, the page turning indicator is associated with the current display page, so that when the display page is displayed, a page turning indicator is displayed in the display page. In this way, the user can perform page turning operations under the guidance of the page turning indicator. The operation is simple and intuitive, and it is not easy to encounter a situation where the user does not know how to operate, which helps to further improve the user experience.

[0026] As an optional embodiment of the present application, associating the current displayed page with the page turning indicator may be writing the page turning indicator into the current displayed page.

[0027] As another optional embodiment of the present application, the above-mentioned associating the current display page with the page turning indicator may also be writing the index or identification information of the page turning indicator into the current display page.

[0028] As another optional embodiment of the present application, the above-mentioned associating the currently displayed page with the page turning indicator may also be associating the index or identification information of the page turning indicator with the index of the currently displayed page.

[0029] In a fourth possible implementation manner of the first aspect, associating the current target option with the currently displayed page includes any of the following:

[0030] Write the current target options to the current display page;

[0031] Writing the index of the current target option into the current display page;

[0032] The index of the current target option is associated with the index of the currently displayed page.

[0033] In an embodiment of the present application, in the process of laying out each option, the current target option is directly written into the current display page. By laying out in this way, the display page obtained by the layout can be directly displayed, which helps to improve the display efficiency. In addition, the index of the current target option is written into the current display page. By laying out in this way, there is no need to frequently operate the data itself, and the layout can be completed faster, that is, the efficiency of option layout can be improved. The index of the current target option is associated with the index of the current display page. By laying out in this way, there is no need to frequently operate the data itself, and the layout can be completed faster, that is, the efficiency of option layout can be improved. The embodiment of the present application can adopt any method to associate the current target option with the current display page. The implementation method is flexible, and the terminal device can select the method based on actual needs, which helps to further improve data processing efficiency.

[0034] In a fifth possible implementation manner of the first aspect, before associating the current target option with the currently displayed page, the method further includes:

[0035] According to the preset width upper limit and the preset width lower limit, the current target option is adjusted to the target width, and the option width of the current target option is switched to the target width; wherein the target width belongs to a width interval formed by the preset width upper limit and the preset width lower limit.

[0036] In an embodiment of the present application, by pre-setting a preset upper width limit and a preset lower width limit, the terminal device can adjust the width of the currently accessed current target option before associating the current target option with the current display page during the process of laying out the options. This allows the layout-obtained display page to present the options more evenly when displayed, thereby helping to improve the user's visual experience.

[0037] In a sixth possible implementation manner of the first aspect, before determining at least one target option corresponding to the currently selected scene, the method further includes:

[0038] Determine the selected text selected by the text selection operation;

[0039] Acquire the first text content of the target text and the target control property of the text control corresponding to the target text, and acquire the second text content of the selected text;

[0040] A currently selected scene is determined according to the first text content, the control attribute and the second text content.

[0041] The above control attributes are used to describe the properties of the control. The control attributes can indicate that the text control is a search input control, a notepad control, a contact number input control, a name input control, and so on.

[0042] The above-mentioned current selection scenario may include: the selection scenario may be a scenario where the target text is empty and the selected text is empty, a scenario where the target text is not empty and the selected text is empty, and a scenario where the selected text is not empty. It may also include a refined scenario where the selected text is not empty. As an example, a refined scenario may be a scenario where the selected text is a plurality of digits and the control attribute indicates that the text control is a search input control. As another example, another refined scenario may be a scenario where the selected text is a plurality of digits and the control attribute indicates that the text control is a contact number input control.

[0043] In an embodiment of the present application, the terminal device determines the current selection scene through the text content of the target text, the control properties of the text control used to present the target text, and the text content of the selected text, so as to achieve accurate and effective determination of various selection scenes.

[0044] In a seventh possible implementation manner of the first aspect, at least one target option is laid out according to the option width of each target option to obtain at least one display page suitable for being displayed by the horizontal text processing control, including:

[0045] When a display page corresponding to the currently selected scene exists in the preset cache file, obtaining at least one display page from the preset cache file;

[0046] When there is no display page corresponding to the currently selected scene in the preset cache file, at least one target option is laid out according to the option width of each target option to obtain at least one display page suitable for being displayed by the horizontal text processing control;

[0047] After laying out at least one target option to obtain at least one display page suitable for being displayed by the horizontal text processing control, the method further includes:

[0048] At least one display page corresponding to the currently selected scene is stored in a preset cache file.

[0049] In the embodiment of the present application, before laying out at least one target option, the terminal device first searches for data from a preset cache file in the terminal device. If the display page corresponding to the currently selected scene can be found, the display page can be directly obtained from the preset cache file. If it cannot be found, the terminal device can use at least one target option required to be displayed for the currently selected scene for layout to obtain the display page corresponding to the currently selected scene. The implementation method of searching for the display page from the preset cache file in this embodiment is preferential, which helps to improve the efficiency of obtaining the display page corresponding to the currently selected scene, that is, it can improve the data processing efficiency. In addition, after using at least one target option required to be displayed for the currently selected scene for layout and obtaining the display page corresponding to the currently selected scene, the terminal device stores the obtained display page in the above-mentioned preset cache file, which can be realized when the user performs a text selection operation next time. If the terminal device determines that the next selected scene obtained is consistent with the selected scene of the currently stored display page, the cached display page can be directly provided, which helps to further improve the data processing efficiency. In addition, due to the limited cache capacity of the terminal device, the cached display page in the above-mentioned preset cache file is usually cleared in a relatively short time to ensure the overall operation rate of the terminal device. That is, this embodiment can improve the efficiency of obtaining a display page corresponding to the currently selected scene while ensuring the operating speed of the terminal device.

[0050] A second aspect of an embodiment of the present application provides an information display device, the device comprising:

[0051] A text display unit, used for displaying a target text;

[0052] An option determination unit, configured to determine at least one target option corresponding to a current selection scenario when a text selection operation on a target text is detected;

[0053] An option layout unit, used for laying out at least one target option according to the option width of each target option, to obtain at least one display page suitable for being displayed by a horizontal text processing control;

[0054] The page display unit is used to display a horizontal text processing control, wherein the horizontal text processing control displays a source display page, and the source display page is any display page of at least one display page.

[0055] As an embodiment of the present application, the information display device can implement any method of the first aspect described above.

[0056] In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any method of the first aspect when executing the computer program.

[0057] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of any one of the above-mentioned first aspects is implemented.

[0058] In a fifth aspect, an embodiment of the present application provides a chip system, the chip system includes a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement any method as described in the first aspect above. The chip system can be a single chip or a chip module composed of multiple chips.

[0059] In a sixth aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute any one of the methods of the first aspect.

[0060] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1A A schematic diagram of the effect of displaying text through a text control on a terminal device provided by the related technology;

[0062] Figure 1B A schematic diagram of the effect of a terminal device responding to a text selection operation provided by the related technology;

[0063] Figure 2A A schematic diagram of the effect of displaying some options through a horizontal text processing control on a terminal device provided by the related technology;

[0064] Figure 2B A schematic diagram of the effect of a terminal device providing related technology responding to a continue viewing operation and displaying remaining options through a vertical text processing control;

[0065] Figure 3 A flowchart of an information display method provided in an embodiment of the present application;

[0066] Figure 4 A schematic flow chart of a method for implementing layout of target options provided in an embodiment of the present application;

[0067] Figure 5 A schematic diagram showing the effect of displaying a horizontal text processing control on a terminal device provided in an embodiment of the present application;

[0068] Fig. 6A A schematic diagram of a user performing a page turning operation on a horizontal text processing control provided in an embodiment of the present application;

[0069] Figure 6BA schematic diagram of the effect of a terminal device according to an embodiment of the present application displaying another display page in response to a page turning operation;

[0070] Figure 7 A schematic flow chart of another method for implementing the layout of target options provided in an embodiment of the present application;

[0071] Figure 8 A schematic diagram of an overall solution flow for laying out options corresponding to a currently selected scene provided in an embodiment of the present application;

[0072] Fig. 9 A schematic diagram of the structure of an information display device provided in an embodiment of the present application;

[0073] Fig.10 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0074] Fig.11 A schematic diagram of the structure of a mobile phone provided in an embodiment of the present application;

[0075] Fig.12 A software structure block diagram of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0076] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0077] The following are some concepts that may be involved in the embodiments of the present application:

[0078] Multiple: Unless otherwise specified, in the embodiments of the present application, multiple refers to two or more.

[0079] Target text: In the embodiment of the present application, the target text is usually text displayed by a text control, wherein the text control may be a text editing control (EditText), a text display control (TextView), and the like.

[0080] Selected text: In the embodiment of the present application, the selected text is usually the text in the selected state in the above-mentioned target text.

[0081] Horizontal text processing control: In the embodiment of the present application, the horizontal text processing control is usually a control displayed in suspension on the page, and the horizontal text processing control is usually used to display one or more options for operating the selected text. Each option in the horizontal text processing control is displayed horizontally.

[0082] Options: In the embodiments of the present application, options generally correspond to processing tools, and each option corresponds to a processing tool. When an option is selected, the processing tool corresponding to the option is triggered. At this time, the terminal device can perform corresponding processing on the text in the selected state.

[0083] As an example, if the option is "copy", when the processing tool corresponding to the option is triggered, the terminal device can copy the text in the selected state. As another example, if the option is "select all", when the processing tool corresponding to the option is triggered, the terminal device can select all the text in the text control where the text in the selected state is located.

[0084] Selection scenario: In the embodiment of the present application, the selection scenario is usually the scenario when the user performs a text selection operation. The selection scenario is usually related to the selected target text and the selected text selected from the selected target text. As an example, the selection scenario can be a scenario in which the target text is empty and the selected text is empty, a scenario in which the target text is not empty and the selected text is empty, or a scenario in which the selected text is not empty.

[0085] Among them, a certain text is empty, which usually means that there is no content in the text.

[0086] Among them, when the embodiments of the present application are applied to specific business scenarios, the scenarios in which the selected text is non-empty can also be refined. For example, the scenario in which the selected text is non-empty can refer to one or more specific scenarios. In some embodiments, the scenario in which the selected text is non-empty can be a combination of any one or more of numbers, Chinese characters, letters, special symbols, etc. In other embodiments, the scenario in which the selected text is non-empty can also be a combination of any one or more of numbers, Chinese characters, letters, special symbols, etc., and the control attribute of the text control used to display the target text indicates that the text control is any one of a search input control, a notepad control, a contact number input control, a name input control, etc.

[0087] Among them, the above control attributes are used to describe the attributes of the control. In some embodiments, the control attributes may include information indicating the function of the control. As an example, the function of the control may be to input search information, to input a contact number, to input a name, and so on. Further, for example, if the control attribute indicates that the function of the control is to input search information, then at this time, the control attribute indicates that the text control is a search input control; if the control attribute indicates that the function of the control is to input a contact number, then at this time, the control attribute indicates that the text control is a contact number input control; if the control attribute indicates that the function of the control is to input a name, then at this time, the control attribute indicates that the text control is a name input control. It can be understood that the control attributes may also include other attribute information. For example, they may also include information indicating the size of the control, information indicating the type of characters allowed to be input by the control, etc. Among them, the type of characters may include Chinese characters, letters, numbers, underscores, and so on.

[0088] As an example, the scenario where the control attribute indicates that the text control is a search input control and the selected text is a combination of numbers and Chinese characters can be a refined scenario for the selected text being non-empty. As another example, the scenario where the control attribute indicates that the text control is a contact number input control and the selected text is M numbers can also be another refined scenario for the selected text being non-empty, where M < N, and N is the standard number of digits of the contact number. For example, N can be 11.

[0089] Display page: In the embodiments of the present application, a display page is usually a page available for display. One or more options can be laid out on the display page, and the display page can be displayed in a horizontal text processing control. It can be understood that the width of the display page is usually less than or equal to the maximum display width of the horizontal text processing control. In some embodiments, in addition to laying out options on the display page, paging indicators can also be laid out. For example, a down paging indicator can be laid out on the first display page, an up paging indicator can be laid out on the last display page, and both an up paging indicator and a down paging indicator can be laid out on the intermediate display pages. Among them, the paging indicator may include an up paging indicator for indicating flipping to the previous page and / or a down paging indicator for indicating flipping to the next page.

[0090] With the development of terminal devices, various APPs emerge in an endless stream, enabling users to handle many things through APPs on terminal devices, which provides convenience for users. For example, users can make calls to friends through phone-type APPs, record event information occurring daily through note-taking APPs, query network information through search-type APPs, and so on.

[0091] The APP on the terminal device can display text on the display page through a text control, such as EditText. It is understandable that a display page can display the text of a text control, or can display the text of multiple text controls at the same time. Generally, each text control can correspond to one text. The text displayed by the text control is usually text that can be operated, for example, it can be copied.

[0092] When a user performs a text selection operation on a region in the text control, the terminal device can respond to the text selection operation, determine the selected text, and display the horizontal text processing control on the display page. Afterwards, the terminal device can respond to the user's selection operation on an option in the horizontal text processing control, and perform a processing operation corresponding to the selected option on the selected text.

[0093] Figure 1A A schematic diagram of the effect of displaying text through a text control on a terminal device provided by the related technology, Figure 1B A schematic diagram of the effect of a terminal device responding to a text selection operation provided by the related technology. Figure 1A and Figure 1B The process of a terminal device responding to a text selection operation performed by a user in the related art can be described.

[0094] For example, Figure 1A In the figure, the address book APP on the terminal device can display text 105 on the new contact page 101 through the text control 102, display text 106 on the new contact page 101 through the text control 103, and display text 107 on the new contact page 101 through the text control 104.

[0095] Figure 1B In the example, the user can perform a text selection operation on part or all of the text content in the text 105. For example, the user can perform a long press operation on certain characters, or perform an operation of sliding and pressing from one character to another character, etc. The terminal device can respond to the user's above text selection operation on the text 105, determine that the selected text 109 is: "Zhang San's mobile phone number", and display a horizontal text processing control 108 on the new contact page 101. Figure 1B In the figure, the options displayed by the horizontal text processing control 108 are, from left to right, "Select All", "Cut", "Translate", "Copy" and "Extreme...".

[0096] from Figure 1B It can be seen that the option displayed on the far right in the horizontal text processing control 108 only partially displays content, and the user cannot intuitively understand the function of the option, that is, the option is severely compressed.

[0097] Because the options that need to be presented in a horizontal text processing control are usually different in different application scenarios, and the widths of different options may also be different, and because the grid width used to display a horizontal text processing control is usually limited, when there are many options to be displayed in a horizontal text processing control or the option width is large, the terminal device is likely to severely compress one or more of the options, for example, only displaying the first two characters in the option plus an abbreviation indicator (for example Figure 1B For example, only the first character in the option plus the abbreviation indicator (for example Figure 1B As a result, users cannot intuitively understand the function of this option, resulting in a poor user experience.

[0098] In order to solve the above technical problem that the terminal device severely compresses the options, resulting in the user being unable to intuitively understand the function of the option and having a poor user experience, the relevant technology provides a solution for displaying multiple options through a horizontal text processing control and a vertical text processing control. The solution is described in detail as follows:

[0099] When there are many options to be displayed in a horizontal text processing control or the options are wide, only a small number of options with smaller widths are displayed on the horizontal text processing control. When the user wants to view more options, the remaining options continue to be displayed in the form of a vertical text processing control.

[0100] Figure 2A A schematic diagram of the effect of displaying some options through a horizontal text processing control on a terminal device provided by the related technology. Figure 2B A schematic diagram of the effect of a terminal device providing related technology responding to a continue viewing operation and displaying remaining options through a vertical text processing control. Figure 2A and Figure 2B The effect of a terminal device in the related art displaying multiple options simultaneously through a horizontal text processing control and a vertical text processing control can be described.

[0101] Figure 2A In the example, when the terminal device responds to the user's text selection operation on the target text 202, it can determine to obtain the selected text 203 and display the horizontal text processing control 204 on the display page 201. Figure 2A In the example, the options displayed from left to right in the horizontal text processing control 204 may be "Select All", "Copy", "Translate", "Cut" and "Search". When the user wants to view more options, he can click the abbreviation symbol on the right end of the horizontal text processing control 204. The user clicks the abbreviation symbol on the right side of the horizontal text processing control 204 When the terminal device can respond to the click operation, the horizontal text processing control 204 is switched to the vertical text processing control 205, that is, switched to Figure 2B Combined with Figure 2B , the vertical text processing control 205 can display the remaining options. Figure 2B In the vertical text processing control 205, each option is displayed vertically. For example, the options displayed from top to bottom in the vertical text processing control 205 may be "web map", "web translation" and "web search".

[0102] Combination Figure 2A and Figure 2B It can be seen that the above-mentioned solution provided by the related technology for displaying multiple options through the horizontal text processing control and the vertical text processing control, due to the large display space occupied by the vertical text processing control 205, especially when there are many options to be displayed or the option width is large, the entire vertical text processing control 205 will block a large part of the display content on the display page 201, that is, the solution in which the terminal device displays multiple options through the horizontal text processing control and the vertical text processing control at the same time will cause a large part of the content to be blocked, making it inconvenient for the user to view the displayed content and reducing the user experience.

[0103] In view of the above technical problems existing in the related art, in order to prevent the user from being unable to intuitively understand the functions of each option displayed in the horizontal text processing control and to prevent the content displayed on the display page of the terminal device from being blocked too much, in the embodiment of the present application, when the terminal device detects a text selection operation on the target text, it determines at least one target option corresponding to the current selection scene; then, according to the option width of each target option, at least one target option is laid out to obtain at least one display page suitable for being displayed by the horizontal text processing control; finally, the horizontal text processing control is displayed. Wherein, the source display page is displayed in the horizontal text processing control, and the source display page is any display page of the at least one display page.

[0104] The embodiments of the present application have at least the following beneficial effects:

[0105] 1. The terminal device layouts the options required to be displayed by the horizontal text processing control into one or more display pages based on the option width of each option. That is, if one display page is not enough, another one or more display pages are used for page layout, which can realize a reasonable layout of the options, thereby improving the accuracy of the layout of the options.

[0106] 2. Since each display page is pre-laid out based on the option width of each option, it is possible to avoid severe compression of the options due to grid width limitations. That is, the horizontal text processing control can display each option more completely, and the user can intuitively understand the function of each option, which helps to improve the user experience.

[0107] 3. Since the display space required for the horizontal text processing control is relatively small, displaying each option only through the horizontal text processing control can effectively and reasonably utilize the limited display space of the terminal device. Since the display space required for the horizontal text processing control is relatively small, when the horizontal text processing control is displayed, other display content will hardly be blocked, and the user's viewing of the display content on the display page will not be affected, which helps to further improve the user experience.

[0108] The following describes the scenarios to which this application can be applied:

[0109] The embodiments of the present application may be applicable to scenarios where text selection and operation are performed on the content in any text control. As an example, the above scenario may be: a scenario where editable text entered in a search box is selected and operated, wherein the above search box may also be referred to as a search input control. As another example, the above scenario may also be: a scenario where editable text entered in a contact control is selected and operated, wherein the above contact control may also be referred to as a contact input control, and the contact input control is used to enter information such as the name and nickname of a contact.

[0110] The information display method provided in the embodiment of the present application can be applied to terminal devices such as mobile phones, tablet computers and wearable devices. In this case, the terminal device is the executor of the information display method provided in the embodiment of the present application. The embodiment of the present application does not impose any restrictions on the specific type of the terminal device.

[0111] Figure 3 A flowchart of an information display method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the information display method may include the following steps 301 to 307. It is understandable that the above information display method may include all the steps in steps 301 to 307, or may only include some of the steps. It is understandable that the steps in the information display method may be arbitrarily combined without conflict. As an optional embodiment of the present application, the information display method may be a scheme that only includes steps 306 and 307. As another optional embodiment of the present application, the information display method may also be a scheme that only includes steps 301 to 306.

[0112] Step 301: The terminal device displays the target text.

[0113] The target text is usually text displayed by a text control. In practice, the text control may include but is not limited to a text editing control (EditText), a text display control (TextView), and the like.

[0114] In an embodiment of the present application, the terminal device can display the target text through a display screen.

[0115] In actual applications, the terminal device can display one target text or multiple target texts at the same time. Figure 1A or Figure 1B For example, three target texts may be displayed on the terminal device, namely, target text 105 in text control 102 , target text 106 in text control 103 , and target text 107 in text control 104 .

[0116] It should be noted that Figure 1A and Figure 1B The number of target texts displayed in the example is only for example. It is understandable that the number of target texts displayed on the terminal device is related to the actual page display scene and can be set according to actual needs. This embodiment does not specifically limit the number of target texts displayed on the terminal device.

[0117] Step 302: The terminal device detects a text selection operation on a target text and determines the selected text.

[0118] Among them, the above-mentioned text selection operation is usually an operation for selecting text. As an example, the above-mentioned text selection operation can be an operation of sliding on the text in the target text that is desired to be selected, or it can be an operation of long pressing on the target text, or it can be an operation of long pressing on the target text and then adjusting the selected starting character and end character, etc. This embodiment does not specifically limit the specific implementation form of the text selection operation. Among them, the above-mentioned long press usually refers to a duration of pressing that is greater than or equal to a certain pre-set duration value. As an example, the above-mentioned pre-set duration value can be 1 second, 2 seconds, etc.

[0119] In an embodiment of the present application, the terminal device can detect the above-mentioned text selection operation through a sensor, such as a pressure sensor, and then the terminal device can analyze the operation information generated by the text selection operation to determine the selected text in the target text.

[0120] As an example, if the text selection operation is an operation of sliding on the text to be selected in the target text, the terminal device can detect the slid area through a sensor and determine the characters involved in the slid area as the selected text.

[0121] As another example, if the text selection operation is to first long press on the target text and then adjust the selected starting character and ending character, the terminal device can determine the text content between the starting character and the ending character as the selected text.

[0122] Step 303: determine the currently selected scene.

[0123] The currently selected scene mentioned above usually refers to the selected scene at the current moment.

[0124] In some embodiments, the above selection scenarios may include a first scenario in which the target text is empty and the selected text is empty, a second scenario in which the target text is not empty and the selected text is empty, and a third scenario in which the selected text is not empty.

[0125] In other embodiments, the above-mentioned selection scene may further include one or more refinement scenes for refining the above-mentioned third scene. As an example, the refinement scene may be a scene where the selected text is N numbers, where N is a positive integer. As another example, the refinement scene may also be a scene where the selected text is a combination of Chinese characters, letters, and numbers.

[0126] In an embodiment of the present application, after determining that the selected text is obtained, the terminal device can combine the target text and the selected text to jointly determine the current selection scene.

[0127] As an optional embodiment of the present application, the terminal device can determine the current selection scene by combining the content of the target text and the content of the selected text. For example, if the target text is not empty and the selected text is empty, the current selection scene can be the second scene mentioned above; if the selected text is a number, the current selection scene can be a detailed scene under the third scene mentioned above.

[0128] As another optional embodiment of the present application, the terminal device can determine the current selection scene in combination with the content of the target text, the control properties of the text control corresponding to the target text, and the content of the selected text.

[0129] Here, for the convenience of description, the content of the target text may be recorded as the first text content, the control attribute of the text control corresponding to the target text may be recorded as the target control attribute, and the content of the selected text may be recorded as the second text content.

[0130] In an embodiment of the present application, when the user performs the above-mentioned text selection operation on the target text, the terminal device can determine the selected text from the target text in the manner shown in the above-mentioned step 302, thereby obtaining the above-mentioned second text content.

[0131] Among them, the above control attributes are usually used to describe the attributes of controls. In some embodiments, the control attributes may include information indicating the functions of the controls. As an example, the functions of the controls may be for inputting search information, for inputting contact numbers, for inputting names, and so on. Further, for example, if the control attribute indicates that the function of the control is for inputting search information, then at this time, the control attribute indicates that the text control is a search input control; if the control attribute indicates that the function of the control is for inputting a contact number, then at this time, the control attribute indicates that the text control is a contact number input control; if the control attribute indicates that the function of the control is for inputting a name, then at this time, the control attribute indicates that the text control is a name input control.

[0132] It can be understood that the control attributes may also include other attribute information. For example, they may also include information indicating the size of the control, information indicating the types of characters that the control can input, and so on. Among them, the character types may include Chinese characters, letters, numbers, underscores, and so on.

[0133] Among them, the control attributes of each text control on the terminal device are usually preset. The terminal device can obtain the control attributes of each text control from the storage address of the control attributes, that is, the terminal device can usually directly obtain the above target control attributes.

[0134] After obtaining the above first text content, the above target control attributes, and the above second text content, the terminal device can jointly determine the current selection scenario in combination with the content of the target text, the control attributes of the text control corresponding to the target text, and the content of the selected text.

[0135] As an example, if the control attribute indicates that the text control is a search input control and the selected text is a combination of numbers and Chinese characters, then the current selection scenario is a refined scenario under the above third scenario.

[0136] As another example, if the control attribute indicates that the text control is a contact number input control and the selected text is M numbers, where M < N, and M and N are both positive integers, and N is the standard number of digits of the contact number, then the current selection scenario may be another refined scenario under the above third scenario. As an example, when the contact number is a mobile phone number, the value of N is usually 11.

[0137] As another optional embodiment of the present application, the terminal device can also jointly determine the current selection scenario in combination with the target text, the selected text, and other relevant information of the target text. Among them, the above other relevant information may include, but is not limited to, the application type of the APP corresponding to the target text. The application type may include search type, note type, phone type, and so on.

[0138] In an embodiment of the present application, the more detailed scenes of the third scene, the more refined the scene classification of the terminal device is, and the more it can reflect the user's needs for operating the selected text in different scenarios. At the same time, based on one or more of a variety of factors to determine the current selection scene, it is possible to accurately determine the selection scene that meets user needs, which helps to further improve the user experience. Among them, the above-mentioned various factors may include: the text content of the target text, the text content of the selected text, the control properties of the text control corresponding to the target text, other relevant information of the target text, etc. For example, the above-mentioned other relevant information may be the application type of the APP corresponding to the target text. Application types may include search, note, phone, and the like.

[0139] Step 304: The terminal device determines at least one target option corresponding to the currently selected scene.

[0140] Among them, the above-mentioned target options are usually options corresponding to the currently selected scene.

[0141] In practice, there may be one or more options for each scenario.

[0142] In an embodiment of the present application, when the currently selected scene is known, the terminal device can obtain one or more options corresponding to the currently selected scene from multiple pre-stored options, and the obtained options are the above-mentioned target options.

[0143] As an optional embodiment of the present application, the terminal device may pre-store a mapping relationship between the selection scene and the option, so that the terminal device can directly obtain the above target option based on the mapping relationship when the current selection scene is known. The above mapping relationship is used to describe the relationship between the selection scene and the option.

[0144] As an optional embodiment of the present application, multiple options corresponding to the same selection scene have priorities. When the terminal device displays multiple options corresponding to the selection scene, it usually displays them in order from high to low priority. In this way, the terminal device can give priority to displaying options that better meet the user's expectations, or display them in the front, which helps to further improve the user experience.

[0145] Step 305: layout at least one target option according to the option width of each target option to obtain at least one display page suitable for being displayed by the horizontal text processing control.

[0146] In the embodiment of the present application, the display page is generally a page available for display, one or more options may be arranged on the display page, and the display page may be displayed in a horizontal text processing control. It is understandable that the width of the display page is generally less than or equal to the grid width, that is, the width of the display page is generally less than or equal to the maximum display width of the horizontal text processing control.

[0147] The option width mentioned above usually refers to the width of the option, which can be the number of characters occupied by the option or the number of pixels occupied by the option.

[0148] In the embodiment of the present application, the terminal device can layout the display page in combination with the option width of each target option, so that one or more display pages can be laid out. It can be understood that when the number of options corresponding to the currently selected scene is small or the width of each option is small, one display page may be laid out, and when the number of options corresponding to the currently selected scene is large or the option width is large, multiple display pages may be laid out.

[0149] In some embodiments, the target options may be ordered, for example, they may be ordered from high to low priority. At this time, the terminal device may arrange the target options in the display page in sequence according to the order of the target options.

[0150] In other embodiments, the target options may also be unordered. In this case, the terminal device may select the target options in sequence and arrange the selected target options in the display page according to a pre-set selection order, such as random selection, selection from left to right, etc.

[0151] In the process of laying out each target option, for each target option, before the terminal device lays out the target option to the current display page, it can first determine whether the width of the current display page will exceed the preset page width after the target option is laid out into the current display page. If it will not exceed the above page width, the target option will be laid out into the current display page. Conversely, if it will exceed the above page width, the target option will not be laid out into the current display page. In addition, the terminal device can lay out the target option to the next display page if it determines that the width of the current display page will exceed the above page width after the target option is laid out into the current display page. In this way, each target option can be effectively and reasonably laid out, thereby obtaining one or more display pages.

[0152] As an optional embodiment of the present application, refer to Figure 4 , Figure 4 This is a flow chart of a method for implementing layout of target options provided by an embodiment of the present application. In this case, step 305 can be replaced by steps 401 to 403. The details are as follows:

[0153] Step 401: The terminal device creates a first initial display page with a page width of zero, determines the first initial display page as a current display page, traverses at least one target option, and performs a layout operation when accessing the current target option.

[0154] The above layout steps include step 402 and step 403 .

[0155] The initial display page is usually a display page with a page width of 0. The page width usually refers to the width of the display page in the horizontal direction.

[0156] As an optional embodiment of the present application, the page width may be the number of pixels of the display page in the horizontal direction.

[0157] Here, the terminal device may first create a first initial display page, and may use the display page as the first display page for option layout. Afterwards, the terminal device may traverse each target option. For ease of description, the display page currently in layout may be recorded as the current display page, and the target option currently being accessed may be recorded as the current target option.

[0158] Step 402, if the sum of the option width of the current target option and the page width of the current display page is less than or equal to the preset width threshold, the terminal device layouts the current target option on the current display page, and updates the page width of the current display page according to the option width of the current target option.

[0159] Step 403, if the sum of the option width of the current target option and the page width of the current display page is greater than a preset width threshold, the terminal device creates the next initial display page with a page width of zero, switches the current display page to the next initial display page; layouts the current target option on the current display page, and updates the page width of the current display page according to the option width of the current target option.

[0160] The preset width threshold is usually a preset width value. For example, the preset width threshold may be 144 pixels, 150 pixels, 200 pixels, etc.

[0161] As an optional embodiment of the present application, the preset width threshold is positively correlated with the grid width of the terminal device. The preset width threshold is usually positively correlated with the grid width, which can effectively utilize the limited display space in the horizontal text processing control.

[0162] In the process of laying out the current target option, the terminal device can calculate the sum of the option width of the current target option and the page width of the current display page, and then compare the sum with the preset width threshold. If the sum is less than or equal to the preset width threshold, the terminal device can lay out the current target option on the current display page. On the contrary, if the sum is greater than the above-mentioned preset width threshold, the terminal device can switch the next initial display page to the current display page, thereby achieving the layout of the current target option on the next initial display page. In addition, after laying out the current target option on the current display page, the terminal device can update the page width of the current display page in a timely manner, so that each target option can be accurately and effectively laid out.

[0163] In the present application, the current target option is laid out on the current display page, which is usually achieved by associating the current target option with the current display page. There are many ways for the terminal device to associate the current target option with the current display page.

[0164] As an optional embodiment of the present application, associating the current target option with the current display page may be writing the current target option into the current display page. In the process of laying out the target options, the terminal device directly writes the current target option into the current display page. In this way, the layout can enable the display page obtained by the layout to be directly displayed, which helps to improve the display efficiency.

[0165] As another optional embodiment of the present application, the current target option is associated with the current display page, or the index of the current target option is written into the current display page. In the process of laying out the target options, the terminal device writes the index of the current target option into the current display page. In this way, there is no need to frequently operate the data itself, and the layout can be completed faster, that is, the efficiency of option layout can be improved.

[0166] As another optional embodiment of the present application, the current target option is associated with the current display page, or the index of the current target option is associated with the index of the current display page. For example, the index of the current target option and the index of the current display page can be cached as a piece of associated information. By laying out in this way, there is no need to frequently operate on the data itself, and the layout can be completed faster, that is, the efficiency of option layout can be improved.

[0167] As an optional embodiment of the present application, considering that after the terminal device displays the horizontal text processing control, if there is no page turning indicator to guide, the user may not know that the horizontal text processing control can be turned, resulting in the user being unable to see some options and being unable to perform the processing operations corresponding to the selected text. Based on this, in order to improve the human-computer interaction experience, in the above layout operation, before creating the next initial display page with a page width of zero, the page turning indicator can also be laid out on the current display page.

[0168] The page turning indicator includes an up indicator for indicating turning to the previous page and / or a down indicator for indicating turning to the next page. The page turning indicator may be in the shape of a triangle, a star, an arrow, a short horizontal line, etc. This embodiment does not specifically limit the shape of the page turning indicator.

[0169] Specifically, the timing at which the terminal device places the page turning indicator locally on the current display page is not specifically limited. For example, the terminal device may place the page turning indicator on the current display page before any options are placed on the current display page; or may place the page turning indicator on the current display page after one or more options have been placed on the current display page; or may place the page turning indicator on the current display page when it is determined that the next initial display page is to be created.

[0170] In addition, the position of the page turning indicator on the display page may not be limited. For example, the page turning indicator may be located at both ends of the display page, or in the middle of the display page. It is understandable that each display page after layout may be simultaneously arranged with an up-turn indicator and a down-turn indicator; or the first display page may only have a down-turn indicator, the last display page may only have an up-turn indicator, and the middle display pages may have both an up-turn indicator and a down-turn indicator.

[0171] It is understandable that, when there is only one display page, the display page may not have a page turning indicator, that is, it has neither an up indicator nor a down indicator, so as to minimize the display space occupied by the horizontal text processing control.

[0172] In the embodiment of the present application, the page turning indicator is placed on the current display page, which is usually achieved by associating the page turning indicator with the current display page. There are many ways for the terminal device to associate the page turning indicator with the current display page.

[0173] As an optional embodiment of the present application, associating the page turning indicator with the currently displayed page may be writing the page turning indicator into the currently displayed page.

[0174] As another optional embodiment of the present application, the page turning indicator is associated with the current displayed page, or the index of the page turning indicator is written into the current displayed page.

[0175] As another optional embodiment of the present application, the page turning indicator is associated with the current displayed page, or the index of the page turning indicator is associated with the index of the current displayed page. For example, the index of the page turning indicator and the index of the current displayed page can be cached as a piece of association information.

[0176] The effects of various ways of associating the page turning indicator with the currently displayed page are substantially the same as the effects of various ways of associating the current target option with the currently displayed page described above, and are not described in detail here.

[0177] In an embodiment of the present application, the page turning indicator is arranged on the current display page, so that the page turning indicator can be displayed on the display page obtained by the layout. The user can turn the pages under the guidance of the page turning indicator. The operation is simple and intuitive, and it is not easy to encounter situations where the user does not know how to operate, which helps to further improve the user experience.

[0178] As an optional embodiment of the present application, taking into account that the width of each option may be different, based on this, in order to achieve uniform display of each option, in the above layout operation, the terminal device can also adjust the width of the current target option to the target width and switch the option width of the current target option to the target width before laying out the current target option on the current display page.

[0179] In some embodiments, the target width may be the product of a standard single character width and the number of characters. The standard single character width may be a preset width of a single character.

[0180] In other embodiments, the target width may be the minimum value between the first width and the preset upper width limit, and the first width is the maximum value between the option width of the current target option and the preset lower width limit. In this case, the target width belongs to the width interval formed by the preset upper width limit and the preset lower width limit. The preset upper width limit is usually a preset upper width limit value, and the preset lower width limit is usually a preset lower width limit value.

[0181] Step 306: The terminal device displays a horizontal text processing control.

[0182] Wherein, the source display page is displayed in the horizontal text processing control, and the source display page is any display page of the at least one display page.

[0183] In the embodiment of the present application, when there is only one display page, the terminal device can directly display the display page in the horizontal text processing control. When there are multiple display pages, the terminal device can display the first display page in the horizontal text processing control by default. It can be understood that when there are multiple display pages, the terminal device can also display other display pages except the first display page by default.

[0184] As an optional embodiment of the present application, when there are multiple display pages, the terminal device can display each display page sequentially in the horizontal text processing control according to a preset refresh cycle. As an example, the above refresh cycle can be 0.5 seconds, 1 second, etc. For example, if the first display page is currently displayed in the horizontal text processing control, then when the refresh cycle is reached, the horizontal text processing control can display the second display page, and so on. The terminal device actively displays each display page in turn, and the user can be very intuitively informed of all the operable options, which is convenient for the user to select the options displayed in the display page, and helps to further enhance the user experience.

[0185] Figure 5 A schematic diagram of the effect of displaying a horizontal text processing control on a terminal device provided in an embodiment of the present application.

[0186] For example, Figure 5 In the example, the terminal device may respond to the user's text selection operation on the target text 503 and display a horizontal text processing control 502 on the display page 501 . Figure 5 In the example, the display page displayed in the horizontal text processing control 502 has four options, namely "Cut", "Copy", "Select All", and "Hyperlink", and a scroll down indicator ">". In addition, the terminal device can respond to the user's selection operation of any option in the horizontal text processing control 502, and perform a processing operation corresponding to the option on the selected text 504. For example, if the "Cut" option is selected, the selected text 504 can be cut. Figure 5 It can be seen that the horizontal text processing control 502 can fully display each option, which helps to improve the user experience.

[0187] Step 307: When a page turning operation on the horizontal text processing control is detected, the terminal device determines a destination display page from at least one display page according to the page turning direction indicated by the page turning operation, and switches the source display page to the destination display page.

[0188] The page turning operation is usually used to determine the page turning operation. In practice, the page turning operation can be implemented as a sliding operation on the horizontal text processing control, such as sliding left, right, up, down, etc., or as a long press operation on the horizontal text processing control, or as an operation of clicking a page turning indicator in the horizontal text processing control.

[0189] Here, after displaying the horizontal text processing control, the terminal device can detect the above page turning operation through a sensor, such as a pressure sensor. If it is detected that the user performs a page turning operation on the horizontal text processing control, then at this time, the terminal device can first determine the target display page indicated by the page turning operation.

[0190] As an example, if the page turning operation is a sliding operation and a right sliding operation, the terminal device may determine that the destination display page is a previous display page of the currently displayed source display page.

[0191] As another example, if the page turning operation is an operation of clicking a down indicator, the terminal device may determine that the destination display page is the next display page of the currently displayed source display page.

[0192] As an optional embodiment of the present application, when the terminal device determines that the destination display page is the next display page of the currently displayed source display page, but the current source display page does not have a next display page, that is, the current source display page is the last display page or the last display page, the terminal device may not switch the source display page, or may switch the source display page to the first display page.

[0193] As an optional embodiment of the present application, when the terminal device determines that the destination display page is the previous display page of the currently displayed source display page, but the current source display page does not have a previous display page, that is, the current source display page is the first display page or the first display page, the terminal device may not switch the source display page, or may switch the source display page to the last display page.

[0194] After determining the destination display page, the terminal device can switch the display page displayed in the horizontal text processing control to the destination display page. At this time, the destination display page is the new source display page. The user can switch the display page currently displayed in the horizontal text processing control to the destination display page corresponding to the page turning operation by performing a page turning operation on the horizontal text processing control. The operation is simple and easy to implement, which helps to improve the experience of human-computer interaction.

[0195] Fig. 6A A schematic diagram of a user performing a page turning operation on a horizontal text processing control. Figure 6B A schematic diagram of the effect of a terminal device providing an embodiment of the present application displaying another display page in response to a page turning operation. Fig. 6A and Figure 6B The page turning effect in a horizontal text processing control can be described.

[0196] For example, Fig. 6A A scene in which a page turning indicator is displayed on a horizontal text processing control is shown. Fig. 6AIn the example, when the user clicks the down indicator ">" on the horizontal text processing control 601, the terminal device can respond to the user's page turning operation on the horizontal text processing control 601, and switch the display page displayed on the horizontal text processing control 601 to the next display page, that is, switch to Figure 6B The display page display effect. Combined with Figure 6B , the display page displayed by the horizontal text processing control 601 has changed. The user can perform a page turning operation on the horizontal text processing control to achieve flexible switching of the options displayed by the horizontal text processing control, which helps to further improve the user experience.

[0197] As an optional embodiment of the present application, refer to Figure 7 , is a flow chart of a method for implementing layout of target options provided by an embodiment of the present application. In this case, step 305 can be replaced by steps 701 to 702. The details are as follows:

[0198] Step 701: When a display page corresponding to the currently selected scene exists in the preset cache file, the display page corresponding to the currently selected scene is obtained from the preset cache file.

[0199] Step 702, when there is no display page corresponding to the currently selected scene in the preset cache file, at least one target option is laid out according to the option width of each target option to obtain at least one display page suitable for being displayed by the horizontal text processing control.

[0200] The preset cache file may be a cache file preset to cache display pages corresponding to each selected scene.

[0201] Before laying out at least one target option, the terminal device first searches for data in a preset cache file in the terminal device. If a display page corresponding to the currently selected scene can be found, the display page can be directly obtained from the preset cache file. If not found, the terminal device can use at least one target option required to display the currently selected scene for layout to obtain a display page corresponding to the currently selected scene. This embodiment gives priority to searching for display pages from the preset cache file, which helps to improve the efficiency of obtaining the display page corresponding to the currently selected scene and helps to improve the overall data processing efficiency of the terminal device.

[0202] It is understandable that, due to the limited cache capacity of the terminal device, the display pages cached in the above preset cache file are usually cleared in a short time (e.g., 10 seconds, 20 seconds, 50 seconds, etc.) to ensure the overall operating speed of the terminal device. As an example, if the display page corresponding to a selected scene is cached in the preset cache file for a period of time greater than or equal to 0.5 minutes, the display page corresponding to the selected scene can be cleared. That is, this embodiment can improve the efficiency of obtaining the display page corresponding to the current selected scene while ensuring the operating speed of the terminal device.

[0203] As an optional embodiment of the present application, considering that a certain selection scene is likely to be triggered frequently in a short period of time, based on this, in order to improve the display efficiency of the display page, the terminal device can store at least one display page corresponding to the current selection scene into a preset cache file after laying out at least one target option and obtaining at least one display page suitable for being displayed by the horizontal text processing control. In this way, when the user performs a text selection operation next time, if the terminal device determines that the next selection scene obtained is consistent with the selection scene corresponding to the currently stored display page, the cached display page can be directly obtained from the preset cache file, which helps to further improve data processing efficiency. In addition, extremely fast response to user operations can also further enhance user experience.

[0204] As an optional embodiment of the present application, reference may be made to Figure 8 , Figure 8 The schematic diagram of the overall solution flow for laying out the options corresponding to the currently selected scene provided in the embodiment of the present application is described in detail as follows:

[0205] In step 801, the terminal device determines whether the current option corresponding to the current option index exists. If so, step 802 is executed. If not, it means that all options corresponding to the currently selected scene have been laid out, and the layout process can be ended.

[0206] Among them, the current option is the option currently being processed, and the current option has the same concept as the aforementioned current target option.

[0207] The current option index mentioned above is used to point to the option currently being processed.

[0208] Step 802: The terminal device adjusts the option width of the current option.

[0209] Step 803, the terminal device determines whether the page width of the current page corresponding to the current page index plus the option width of the current option exceeds a preset width threshold, if so, execute step 805, if not, execute step 804.

[0210] Step 804: The terminal device uses the width of the current option to update the width of the current page, and adds 1 to the current option index.

[0211] In this embodiment, the current page refers to the displayed page that is currently laid out.

[0212] Step 805 , the terminal device determines whether the current page meets the preset page fine-tuning condition, if so, executes step 806 , if not, executes step 808 .

[0213] The above-mentioned page fine-tuning conditions are usually pre-set conditions for triggering fine-tuning of the page layout.

[0214] As an optional embodiment of the present application, the above-mentioned page fine-tuning condition may include at least one of the following conditions:

[0215] Condition 1: The width of the current page after adding the page turning indicator does not exceed the grid width. The grid width is the maximum display width of the display page, or the maximum horizontal display width of the horizontal text control, and the grid width is usually slightly larger than the above-mentioned preset width threshold. As an optional embodiment of the present application, the above-mentioned preset width threshold can be set to the difference between the grid width and twice the width of the page turning indicator. This ensures that after adding the page turning indicator, the display page obtained by the layout will not exceed the grid width.

[0216] Condition 2: The page width of the current page is 0, and after the current option is reduced and omitted, the width of the current page after adding the current option is less than a preset width threshold. Wherein, reducing and omitting the current option generally means that only part of the characters in the current option are displayed.

[0217] Condition 3: The width of the current page exceeds the grid width after the page turning indicator is increased, but the width does not exceed the grid width after the current option is reduced or omitted.

[0218] In an embodiment of the present application, when the page width of the current page plus the option width of the current option exceeds a preset width threshold and meets a preset fine-tuning condition, the terminal device can fine-tune the current option so that the current option can be laid out on the current page, thereby reducing the secondary judgment layout of the current option and improving the display page layout efficiency.

[0219] Step 806: The terminal device fine-tunes the current option and updates the width of the current page with the fine-tuned width of the current option.

[0220] At this time, the updated page width of the current page is the original width plus the option width obtained after fine-tuning the current option.

[0221] Step 807: The terminal device records the layout information of the current page.

[0222] The layout information may describe the layout of the current page.

[0223] As an optional embodiment of the present application, the layout information may include sequentially distributed options and page turning indicators.

[0224] As another optional embodiment of the present application, the layout information may include indexes of sequentially distributed options and indexes of page turning indicators.

[0225] Step 808: The terminal device restores the width of the current option and reduces the current option index by 1.

[0226] When the current page does not meet the preset page fine-tuning condition, since the width of the current option has been adjusted in step 802, the terminal device restores the width of the current option. At this time, the current option is not laid out on the current page. In addition, the current option index is reduced by 1, in order to put the current option into the layout of the next page.

[0227] Step 809: The terminal device increases the current page index by 1, sets the width of the current page corresponding to the current page index to 0, and increases the current option index by 1.

[0228] Here, the terminal device adds 1 to the current page index and sets the width of the current page corresponding to the current page index to 0, which means creating a new initial display page with a width of 0. Adding 1 to the current option index can realize the layout of the option pointed to by the current option index on the new page, so that the options required for the layout can be traversed.

[0229] The operation details, principles and beneficial effects of steps 801 to 804 and steps 806 to 809 can all be referred to in the above Figure 3-Figure 7 The relevant descriptions of the corresponding embodiments are not repeated here.

[0230] At the same time, the embodiment of the present application also adds a processing solution for fine-tuning the current option to place the slightly over-wide current option on the current page. This can reduce the number of display pages while the user can intuitively understand the function of the option, which can effectively utilize the limited display space and reduce the number of switching between display pages, helping to further improve the human-computer interaction experience.

[0231] Corresponding to the information display method of the above embodiment, Fig. 9 A schematic diagram of the structure of an information display device provided in an embodiment of the present application is shown. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.

[0232] Reference Fig. 9 , the information display device comprises:

[0233] A text display unit 91, used for displaying a target text;

[0234] An option determination unit 92, configured to determine at least one target option corresponding to a current selection scenario when a text selection operation on a target text is detected;

[0235] An option layout unit 93, configured to layout at least one target option according to the option width of each target option, to obtain at least one display page suitable for being displayed by a horizontal text processing control;

[0236] The page display unit 94 is used to display a horizontal text processing control, wherein the horizontal text processing control displays a source display page, and the source display page is any display page of at least one display page.

[0237] As an embodiment of the present application, the information display device can be implemented as follows: Figures 3 to 8 The illustrated embodiments and other related method embodiments.

[0238] The process of each module in the information display device provided in the embodiment of the present application realizing its own function can be specifically referred to the aforementioned Figures 3 to 8 The description of the illustrated embodiment and other related method embodiments will not be repeated here.

[0239] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0240] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0241] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0242] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0243] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0244] In addition, in the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish descriptions, and cannot be understood as indicating or suggesting relative importance. It should also be understood that although the terms "first", "second", etc. are used to describe various elements in some embodiments of the present application in the text, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, the first table can be named as the second table, and similarly, the second table can be named as the first table without departing from the scope of the various described embodiments. The first table and the second table are both tables, but they are not the same table.

[0245] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0246] The information display method provided in the embodiments of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiments of the present application do not impose any restrictions on the specific types of terminal devices.

[0247] For example, the terminal device can be a station (STATION, ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a vehicle networking terminal, a computer, a laptop computer, a handheld communication device, a handheld computing device, a satellite wireless device, a wireless modem card, a TV set top box (STB), a customer premise equipment (CPE) and / or other devices for communicating on a wireless system and a next-generation communication system, such as a terminal device in a 5G network or a terminal device in a future evolved public land mobile network (PLMN) network, etc.

[0248] As an example but not limitation, when the terminal device is a wearable device, the wearable device can also be a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not just hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0249] Fig.10 Schematic diagram of the structure of a terminal device provided by an embodiment of the present application. Fig.10 As shown, the terminal device of this embodiment includes: at least one processor 13 ( Fig.10 Only one is shown in the figure), a memory 11, and the memory 11 stores a computer program 12 that can be run on a processor 13. When the processor 13 executes the computer program 12, the steps in the above-mentioned information display method embodiments are implemented, such as Figure 3 Alternatively, when the processor 13 executes the computer program 12, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Fig. 9 The functions of units 91 to 94 are shown.

[0250] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor 13 and a memory 11. Those skilled in the art will appreciate that Fig.10 It is only an example of a terminal device and does not constitute a limitation of the terminal device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include an input and sending device, a network access device, a bus, etc.

[0251] The processor 13 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0252] In some embodiments, the memory 11 may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The memory 11 may also be an external storage device of the terminal device, such as a plug-in hard disk equipped on the terminal device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Further, the memory 11 may also include both an internal storage unit of the terminal device and an external storage device. The memory 11 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of a computer program, etc. The memory 11 may also be used to temporarily store data that has been sent or is to be sent.

[0253] The following uses a mobile phone as an example. Fig.11 A schematic structural diagram of the mobile phone 100 is shown.

[0254] The mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc. The sensor module 180 may include a gyroscope sensor 180A, an acceleration sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an ambient light sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, and a touch sensor 180K (of course, the mobile phone 100 may also include other sensors, such as a temperature sensor, a pressure sensor, an air pressure sensor, a bone conduction sensor, etc., which are not shown in the figure).

[0255] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural network processor (Neural-network Processing Unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. Among them, the controller can be the nerve center and command center of the mobile phone 100. The controller can generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.

[0256] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0257] The processor 110 can run the information display method provided in the embodiment of the present application to accurately identify the actual scene and improve the user experience. The processor 110 can include different devices. For example, when the CPU and GPU are integrated, the CPU and GPU can cooperate to execute the information display method provided in the embodiment of the present application. For example, part of the algorithm in the information display method is executed by the CPU, and another part of the algorithm is executed by the GPU to obtain faster processing efficiency.

[0258] It should be understood that in actual applications, the mobile phone 100 may include Fig.10 The embodiments of the present application are not limited to the more or fewer components shown. The illustrated mobile phone 100 is only an example, and the mobile phone 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0259] The software system of the terminal device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the terminal device. Fig.12 It is a software structure block diagram of the terminal device of an embodiment of the present application.

[0260] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0261] The application layer can include a series of application packages.

[0262] like Fig.12 As shown, the application package may include applications such as phone, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.

[0263] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0264] like Fig.12 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0265] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0266] Content providers are used to store and retrieve data and make it accessible to applications. The data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0267] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0268] The phone manager is used to provide communication functions for terminal devices, such as the management of call status (including answering, hanging up, etc.).

[0269] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0270] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.

[0271] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.

[0272] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0273] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0274] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0275] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0276] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.164, MP3, AAC, AMR, JPG, PNG, etc.

[0277] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0278] A 2D graphics engine is a drawing engine for 2D drawings.

[0279] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0280] In addition, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0281] An embodiment of the present application also provides a terminal device, which includes at least one memory, at least one processor, and a computer program stored in the at least one memory and executable on the at least one processor. When the processor executes the computer program, the terminal device implements the steps of any of the above-mentioned method embodiments.

[0282] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0283] An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0284] An embodiment of the present application also provides a chip system, which includes a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement the steps in the above-mentioned method embodiments.

[0285] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable storage media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0286] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0287] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0288] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0289] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An information display method, characterized in that: Applied to a terminal device, the method comprises: The terminal device displays the target text; When a text selection operation on the target text is detected, determining at least one target option corresponding to the current selection scene; Laying out the at least one target option according to the option width of each target option to obtain at least one display page suitable for being displayed by the horizontal text processing control; The horizontal text processing control is displayed, wherein a source display page is displayed in the horizontal text processing control, and the source display page is any display page of the at least one display page.

2. The information display method according to claim 1, characterized in that: After displaying the horizontal text processing control, the method further includes: When a page turning operation on the horizontal text processing control is detected, a destination display page is determined from the at least one display page according to the page turning direction indicated by the page turning operation, and the source display page is switched to the destination display page.

3. The information display method according to claim 1, characterized in that: The step of laying out the at least one target option according to the option width of each target option to obtain at least one display page suitable for being displayed by the horizontal text processing control comprises: A first initial display page with a page width of zero is created, the first initial display page is determined as a current display page, the at least one target option is traversed, and when the current target option is accessed, the following layout operations are performed: If the sum of the option width of the current target option and the page width of the current display page is less than or equal to the preset width threshold, the current target option is associated with the current display page, and the page width of the current display page is updated according to the option width of the current target option; If the sum of the option width of the current target option and the page width of the current display page is greater than the preset width threshold, create a next initial display page with a page width of zero, switch the current display page to the next initial display page; associate the current target option with the current display page, and update the page width of the current display page according to the option width of the current target option.

4. The information display method according to claim 3, characterized in that: Before creating the next initial display page with a page width of zero, the method further includes: The currently displayed page is associated with a page turning indicator, wherein the page turning indicator includes an upward turning indicator for indicating turning to a previous page and / or a downward turning indicator for indicating turning to a next page.

5. The information display method according to claim 3, characterized in that: The associating the current target option with the current display page includes any of the following: Write the current target options to the current display page; Writing the index of the current target option into the current display page; The index of the current target option is associated with the index of the currently displayed page.

6. The information display method according to claim 3, characterized in that: Before associating the current target option with the currently displayed page, the method further includes: According to a preset upper width limit and a preset lower width limit, adjusting the current target option to a target width, and switching the option width of the current target option to the target width; The target width belongs to a width interval formed by a preset width upper limit and a preset width lower limit.

7. The information display method according to any one of claims 1 to 6, characterized in that: Before determining at least one target option corresponding to the currently selected scene, the method further includes: Determining the selected text selected by the text selection operation; Acquire the first text content of the target text and the target control property of the text control corresponding to the target text, and acquire the second text content of the selected text; The currently selected scene is determined according to the first text content, the control attribute and the second text content.

8. The information display method according to any one of claims 1 to 6, characterized in that: The step of laying out the at least one target option according to the option width of each target option to obtain at least one display page suitable for being displayed by the horizontal text processing control comprises: When a display page corresponding to the currently selected scene exists in the preset cache file, acquiring the at least one display page from the preset cache file; When there is no display page corresponding to the currently selected scene in the preset cache file, the at least one target option is laid out according to the option width of each target option to obtain the at least one display page suitable for being displayed by the horizontal text processing control; After laying out the at least one target option to obtain at least one display page suitable for being displayed by the horizontal text processing control, the method further includes: The at least one display page corresponding to the currently selected scene is stored in the preset cache file.

9. A terminal device, characterized in that: The terminal device includes a memory and a processor, the memory stores a computer program that can be run on the processor, and the processor implements the information display method according to any one of claims 1 to 8 when executing the computer program.

10. A chip system, characterized in that: The chip system includes a processor, which is coupled to a memory. The processor executes a computer program stored in the memory to implement the information display method according to any one of claims 1 to 8.