Information display method and device, equipment and medium

By determining the target display area and selecting the target subsequence, adjusting the height of the page container to approach the display screen area, the problem of inconvenient switching of page containers in the prior art is solved, and more convenient page display and switching is achieved.

CN120354017AActive Publication Date: 2025-07-22BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510437141.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-08
Publication Date
2025-07-22
Estimated Expiration
2045-04-08

AI Technical Summary

Technical Problem

In existing information display software, switching and scrolling of page containers are not convenient enough, especially when the information sequence is long, users need to frequently manually operate to switch page containers, which affects the flexibility and convenience of page display.

Method used

By determining the target display area, select the target subsequence for default display, adjust the height of the page container to make it as close as possible to the display screen area, and scroll the page container when the target subsequence does not scroll to the bottom, and switch to display a new page container when scrolling to the bottom.

Benefits of technology

It improves the convenience of switching page containers, reduces the number of user operations, and improves the flexibility and user experience of page display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120354017A_ABST
    Figure CN120354017A_ABST
Patent Text Reader

Abstract

The invention provides an information display method and device, equipment and a medium, and relates to the technical field of page display, in particular to the technical field of intelligent recommendation and software application. According to the implementation scheme, the method comprises the steps of determining a target display area for displaying a display area of a first page container; determining a first information sequence corresponding to the first page container; determining a target sub-sequence from the first information sequence, wherein the quantity of target information included in the target sub-sequence is the minimum quantity capable of meeting the condition that the sum of display areas of one or more pieces of target information included in the target sub-sequence is not smaller than a target display area; displaying the target sub-sequence in the first page container; scrolling the first page container in response to the received instruction for indicating the first page container to switch the display content and the target sub-sequence not scrolled to the bottom; and switching to display the second page container in response to receiving an instruction for indicating the first page container to switch the display content and rolling the target sub-sequence to the bottom.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of page display technology, and more particularly to the fields of intelligent recommendation and software application technology. Specifically, the present disclosure relates to an information display method, apparatus, electronic device, computer-readable storage medium, and computer program product. Background Art

[0002] Artificial intelligence is a discipline that studies the use of computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level technologies and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include several major directions such as computer vision technology, speech recognition technology, natural language processing technology, and machine learning / deep learning, big data processing technology, and knowledge graph technology.

[0003] With the development of computer technology and big data technology, behaviors such as consumption, entertainment, learning, and travel in people's lives are closely related to big data. During the operation of a software platform, it is usually necessary to display the content searched by the user or actively recommend content to the user in the form of an information sequence.

[0004] The methods described in this section are not necessarily methods that have been previously envisioned or adopted. Unless otherwise specified, no method described in this section should be considered prior art solely because it is included in this section. Similarly, unless otherwise specified, the problems mentioned in this section should not be considered to have been recognized in any prior art. Summary of the Invention

[0005] The present disclosure provides an information display method, apparatus, electronic device, computer-readable storage medium, and computer program product.

[0006] According to one aspect of the present disclosure, there is provided an information display method, including: determining a target display area for a display area of a first page container; determining a first information sequence corresponding to the first page container; determining a target subsequence from the first information sequence, where the number of target information included in the target subsequence is the minimum number that can meet a target condition, and the target condition includes that the sum of the display areas of one or more target information included in the target subsequence is not less than the target display area; displaying the target subsequence in the first page container; in response to receiving an instruction indicating a switch of the display content of the first page container and the target subsequence not being scrolled to the bottom, scrolling the first page container; and in response to receiving an instruction indicating a switch of the display content of the first page container and the target subsequence having been scrolled to the bottom, switching to display a second page container.

[0007] According to another aspect of the present disclosure, there is provided an information display device, including: a first determination unit configured to determine a target display area of a display area for displaying a first page container; a second determination unit configured to determine a first information sequence corresponding to the first page container; a third determination unit configured to determine a target subsequence from the first information sequence, where the number of target information included in the target subsequence is the minimum number that can satisfy a target condition, and the target condition indicates that the sum of the display areas of one or more target information included in the target subsequence is not less than the target display area; a display unit configured to display the target subsequence in the first page container; a scrolling unit configured to scroll the first page container in response to receiving an instruction indicating a switch of the display content of the first page container and the target subsequence not being scrolled to the bottom; and a switching unit configured to switch to display a second page container in response to receiving an instruction indicating a switch of the display content of the first page container and the target subsequence being scrolled to the bottom.

[0008] According to another aspect of the present disclosure, there is provided an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; where the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the above information display method.

[0009] According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to cause the computer to execute the above information display method.

[0010] According to another aspect of the present disclosure, there is provided a computer program product, including a computer program, where the computer program can implement the above information display method when executed by a processor.

[0011] According to one or more embodiments of the present disclosure, the flexibility of page content display and switching can be improved.

[0012] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings exemplarily illustrate embodiments and form part of the specification, and are used together with the written description of the specification to explain the exemplary embodiments of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. In all the drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0014] Figure 1 FIG. shows a schematic diagram of an exemplary system in which various methods described herein can be implemented according to an exemplary embodiment of the present disclosure;

[0015] Figure 2 FIG. shows a flowchart of an information display method according to an exemplary embodiment of the present disclosure;

[0016] Figure 3A and Figure 3B FIG. shows a schematic diagram of an information display page according to an exemplary embodiment of the present disclosure;

[0017] Figure 4 FIG. shows a schematic diagram of an information display process according to an exemplary embodiment of the present disclosure;

[0018] Figure 5 FIG. shows a block diagram of the structure of an information display device according to an exemplary embodiment of the present disclosure;

[0019] Figure 6 FIG. shows a block diagram of the structure of an exemplary electronic device that can be used to implement the embodiments of the present disclosure. Detailed Embodiments

[0020] The following describes exemplary embodiments of the present disclosure with reference to the accompanying drawings. Various details of the embodiments of the present disclosure are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0021] In the present disclosure, unless otherwise specified, the terms "first", "second", etc. are used to describe various elements and are not intended to limit the positional relationship, timing relationship, or importance relationship of these elements. Such terms are only used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of the element, and in certain cases, based on the context description, they may also refer to different instances.

[0022] In the description of the various examples in this disclosure, the terms used are for the purpose of describing specific examples only and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one and all possible combinations of the listed items.

[0023] Embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0024] Figure 1 FIG. shows a schematic diagram of an exemplary system 100 in which the various methods and apparatuses described herein can be implemented according to an embodiment of the present disclosure. Referring Figure 1 , the system 100 includes one or more client devices 101, 102, 103, 104, 105 and 106, a server 120, and one or more communication networks 110 that couple the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105 and 106 can be configured to execute one or more applications.

[0025] In an embodiment of the present disclosure, the server 120 can run one or more services or software applications that enable the execution of an information display method.

[0026] In certain embodiments, the server 120 can also provide other services or software applications, which can include non-virtual environments and virtual environments. In certain embodiments, these services can be provided as web-based services or cloud services, for example, provided to users of the client devices 101, 102, 103, 104, 105 and / or 106 under a software as a service (SaaS) model.

[0027] In Figure 1 the configuration shown, the server 120 can include one or more components that implement the functions performed by the server 120. These components can include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating the client devices 101, 102, 103, 104, 105 and / or 106 can in turn utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that various different system configurations are possible, which can be different from the system 100. Therefore, Figure 1 is an example of a system for implementing the various methods described herein and is not intended to be limiting.

[0028] Users may use client devices 101, 102, 103, 104, 105, and / or 106 to send information display requests and perform interactive operations. The client devices may provide an interface that enables the users of the client devices to interact with the client devices. The client devices may also output information to the users via this interface. Although Figure 1 only six client devices are depicted, those skilled in the art will be able to understand that the present disclosure can support any number of client devices.

[0029] Client devices 101, 102, 103, 104, 105, and / or 106 may include various categories of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptop computers), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, gaming systems, thin clients, various messaging devices, sensors, or other sensing devices, etc. These computer devices may run various categories and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux, or Linux-like operating systems (such as GOOGLE Chrome OS); or include various mobile operating systems, such as MICROSOFT WindowsMobile OS, iOS, Windows Phone, Android. Portable handheld devices may include cellular phones, smart phones, tablets, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Gaming systems may include various handheld gaming devices, Internet-enabled gaming devices, etc. The client devices are capable of executing various different applications, such as various Internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and may use various communication protocols.

[0030] Network 110 may be any category of network well-known to those skilled in the art, which may support data communication using any one of a variety of available protocols (including but not limited to TCP / IP, SNA, IPX, etc.). By way of example only, one or more networks 110 may be a local area network (LAN), an Ethernet-based network, token ring, wide area network (WAN), the Internet, virtual network, virtual private network (VPN), intranet, extranet, blockchain network, public switched telephone network (PSTN), infrared network, wireless network (such as Bluetooth, WIFI), and / or any combination of these and / or other networks.

[0031] Server 120 may include one or more general-purpose computers, dedicated server computers (such as PC (Personal Computer) servers, UNIX servers, midrange servers), blade servers, mainframes, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running a virtual operating system, or other computing architectures involving virtualization (such as one or more flexible pools of logical storage devices that can be virtualized to maintain virtual storage devices for the server). In various embodiments, Server 120 may run one or more services or software applications that provide the functions described below.

[0032] The computing units in Server 120 may run one or more operating systems including any of the above operating systems and any commercially available server operating systems. Server 120 may also run any one of a variety of additional server applications and / or middleware applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, and the like.

[0033] In some embodiments, Server 120 may include one or more applications to analyze and combine data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.

[0034] In some embodiments, Server 120 may be a server of a distributed system, or a server incorporating a blockchain. Server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. A cloud server is a host product in the cloud computing service system, which addresses the defects of high management difficulty and weak business scalability existing in traditional physical hosts and virtual private server (VPS, Virtual Private Server) services.

[0035] System 100 may also include one or more databases 130. In some embodiments, these databases can be used to store data and other information. For example, one or more of the databases 130 can be used to store information such as audio files and video files. The databases 130 can reside in various locations. For example, the database used by the server 120 can be local to the server 120, or can be remote from the server 120 and can communicate with the server 120 via a network-based or dedicated connection. The databases 130 can be of different categories. In some embodiments, the database used by the server 120 can be, for example, a relational database. One or more of these databases can store, update, and retrieve data to and from the database in response to commands.

[0036] In some embodiments, one or more of the databases 130 can also be used by an application to store application data. The databases used by the application can be different categories of databases, such as key-value repositories, object repositories, or conventional repositories supported by a file system.

[0037] Figure 1 System 100 can be configured and operated in various ways to enable the application of the various methods and apparatuses described according to the present disclosure.

[0038] In current information display software, usually the entire information sequence is displayed to the user in a page container. When the length of the information sequence exceeds the height of the display area in the display screen panel, the user can scroll the page container to view the content in the information sequence. When it is necessary to switch to display a new page container, the user can be made to manually click on a component for switching the page container (such as a link or button that triggers the display of a new page container) to perform the switching, and the convenience of page display and switching is poor.

[0039] Based on this, the present disclosure provides an information display method. When the information sequence to be displayed corresponding to a page container is relatively long, a target subsequence with a limited number of information is selected from the information sequence for default display, and the height of the page container is adjusted by adjusting the amount of information displayed by default in the page container, so that the information display area is the minimum value that can cover the display area in the display screen, that is, the actual display area of the first page container is as close as possible to the area of the display screen. Without affecting the user's viewing of the full-screen page container, the height of the page container is reduced, facilitating the user to scroll the current page container or switch to display a new page container by performing the same content scrolling operation, and improving the convenience of page container switching.

[0040] Figure 2 Shows a flowchart of an information display method 200 according to an exemplary embodiment of the present disclosure. As Figure 2 shown, the method 200 includes:

[0041] Step S201: Determine the target display area for the display area of the first page container;

[0042] Step S202: Determine the first information sequence corresponding to the first page container;

[0043] Step S203: Determine the target subsequence from the first information sequence, where the number of target information included in the target subsequence is the minimum number that can meet the target condition, and the target condition includes that the sum of the display areas of one or more target information included in the target subsequence is not less than the target display area;

[0044] Step S204: Display the target subsequence in the first page container;

[0045] Step S205: In response to receiving an instruction to switch the display content of the first page container and the target subsequence has not scrolled to the bottom, scroll the first page container; and

[0046] Step S206: In response to receiving an instruction to switch the display content of the first page container and the target subsequence has scrolled to the bottom, switch to display the second page container.

[0047] By applying the above method 200, when the information sequence to be displayed corresponding to the page container is relatively long, a target subsequence with a limited number of information can be selected from the information sequence for default display, and the height of the page container can be adjusted by adjusting the amount of information displayed by default in the page container, so that the information display area corresponding to the first page container (i.e., the sum of the display areas of all target information included in the target subsequence) is the minimum value that can fill the display area on the display screen, that is, to make the actual display area of the first page container as close as possible to the area of the display screen, reduce the height of the page container without affecting the user's viewing of the full-screen page container, and facilitate the user to scroll the display content of the current page container or switch to display a new page container by performing the same operation of switching the display content, improving the convenience of page container switching.

[0048] In an actual application scenario, the area of the display screen panel for displaying the page container is limited, that is, it corresponds to a limited display area. Based on the display area of the display screen panel, the target display area in step S201 can be determined. In one example, the target display area for the display area of the first page container can correspond to the area of the information display area (less than or equal to the area of the display screen panel) for the information sequence applied to display the page container. For example, since the user interface may also involve display components such as a system status bar and a toolbar, the target display area should be the difference between the area of the display screen panel and the display areas of other display components.

[0049] In some examples, the content to be displayed to the user includes multiple page containers, and each page container corresponds to an information sequence to be displayed. In this case, if all the information sequences corresponding to each page container are rendered and displayed in each page container, the information display area corresponding to each page container is relatively large. When the target display area is limited, the page container may need to scroll multiple times on the display screen panel to be completely displayed. That is to say, when the user needs to scroll the current page container or switch to display a new page container by the same operation of switching the displayed content, multiple operations of switching the displayed content (for example, a long-distance touch and slide gesture needs to be performed on the touch screen) need to be executed so that the current page container can scroll to the bottom on the display screen panel, and then the switching display of the new page container can be triggered. The switching operation is relatively cumbersome, which is not conducive to the flexible display and switching of the page.

[0050] By applying the above steps S201 - S204, the height of the page container can be adjusted by adjusting the amount of information that is defaultly displayed in the page container, so that the information display area of the page container is the minimum value that can fill the display area on the display screen, that is, the actual display area of the page container is made as close as possible to the area of the display screen. Without affecting the user's view of the full-screen page container, the height of the page container is reduced so that the user can more conveniently trigger the switching display of the new page container, improving the convenience of page switching.

[0051] In some examples, the instruction for instructing the first page container to switch the displayed content can include a scrolling instruction for the page container, or it can also be an instruction for instructing the first page container to continue displaying the information that has not been displayed. In one example, method 200 is applied to a terminal including a display screen panel. The user can send an instruction for instructing the first page container to switch the displayed content through a touch and slide operation on the display screen panel, or can also input an instruction for instructing the first page container to switch the displayed content through a control device communicatively connected to the terminal. As long as it can be determined based on the user instruction that the displayed content of the first page container needs to be updated, the present disclosure does not limit the type and content of the instruction for the first page container.

[0052] According to some embodiments, the target subsequence includes the leading information of the first information sequence. Thus, the target subsequence for default display can be selected from the head of the first information sequence. In practical application scenarios, when the information in the first information sequence may be arranged in a certain order, by applying the above means, more valuable information can be selected from the head of the first information sequence for default display to ensure the information accuracy of the target subsequence.

[0053] In some examples, each piece of information in the first information sequence can be regarded as an information card component in the first page container. In this case, display attributes can be configured for each information card component to control the content default displayed in the first page container. As long as the display of each piece of information in the first information sequence in the first page container can be dynamically controlled, the present disclosure does not limit the way of configuring the attributes of each piece of information during the page rendering process.

[0054] According to some embodiments, determining the target subsequence from the first information sequence in step S203 includes: determining a candidate subsequence including a first quantity of candidate information from the first information sequence, where the candidate subsequence includes the leading information of the first information sequence, and the first quantity is determined based on a preset threshold of the target display area and the display area of a single piece of information; in response to determining that the candidate subsequence exceeds the initial visible area of the first page container, deleting one or more candidate information in the candidate subsequence that are not in the initial visible area, where the initial visible area is determined based on the target display area; and determining the target subsequence based on the candidate subsequence after the deletion operation. Thus, the first quantity can be determined based on the preset threshold of the target display area and the display area of a single piece of information, and then the candidate subsequence including the first quantity of candidate information can be determined. Based on the candidate subsequence, dynamic adjustment is performed to delete the information that exceeds the screen display area, without the need to traverse and calculate the entire first information sequence, improving the display efficiency.

[0055] In some examples, the preset threshold of the display area of a single piece of information can be the area threshold set for a single information card during the page rendering process. In some examples, the preset threshold of the display area of a single piece of information can also be a statistical value obtained based on the display areas of multiple historical pieces of information (for example, it can be an average value or a median value). By calculating based on the preset threshold of the target display area and the display area of a single piece of information, a candidate subsequence that may be close to the target subsequence can be determined simply and quickly, and the target subsequence can be determined more efficiently based on the candidate subsequence to improve the display efficiency.

[0056] According to some embodiments, the deleting of one or more candidate information that are not in the initial visible area in the candidate subsequence in response to determining that the candidate subsequence exceeds the initial visible area of the first page container includes: in response to determining that the candidate subsequence exceeds the initial visible area of the first page container, performing a deletion operation iteratively on the last bit information of the candidate subsequence until the current last bit information of the candidate subsequence is in the initial visible area or it is determined that the first page container has been scrolled to the display position of the current last bit information. Thereby, it is possible to perform iterative deletion in reverse order from the end of the candidate subsequence to more efficiently determine the target subsequence.

[0057] According to some embodiments, method 200 further includes: in response to determining that the sum of the display areas of the candidate subsequence is less than the target display area, adding the information in the first information sequence that is after the candidate subsequence to the end of the candidate subsequence. Thereby, it is possible to continue to supplement subsequent information when the candidate subsequence is not sufficient to fill the screen display area, and avoid too little display content in the page container by dynamically supplementing information, ensuring that the default display content of the page container can cover the display area of the display screen panel and ensuring the display effect and user experience.

[0058] In some examples, the above step of supplementing new information in the candidate subsequence can be iteratively executed until the current candidate subsequence can fill the screen display area. For example, when the last bit information of the candidate subsequence is partially in the initial visible area and partially exceeds the initial visible area, it means that the number of information included in the current candidate subsequence is the minimum number that can meet the target condition, and thus the current candidate subsequence can be directly determined as the target subsequence.

[0059] According to some embodiments, method 200 further includes: displaying a content expansion control at the bottom of the first page container; and in response to receiving an instruction to control the content expansion control, displaying the other information in the first information sequence except the target subsequence in the first page container. Thereby, it is possible to display a content expansion control when a single page container scrolls to the bottom, facilitating the user to continue browsing the remaining information sequence by operating the content expansion control and ensuring the user's browsing experience.

[0060] According to some embodiments, the first page container is triggered by a search request including a first search text. The first information sequence includes a plurality of search result entries corresponding to the first search text, and the second page container is used to display a plurality of search result entries corresponding to a recommended search text. Thus, when the user browses the search result page corresponding to the first search text (i.e., the first page container) by scrolling the page, the display height of the first page container can be adjusted by applying the above method 200, enabling the user to more conveniently trigger the display of the recommended content (the second page container corresponding to the recommended search text), realizing the lightweight activation of the recommended content and enhancing the click-through rate of the recommended content.

[0061] In some examples, the user can actively search on a web platform or a search software platform, and then trigger the display of the search result page by sending the first search text to the search engine. The first page container for displaying the search result entries can be implemented in a web page or in the display interface of the search software. In this case, the search engine can recall a plurality of search result entries (i.e., the first information sequence corresponding to the first page container) based on the first search text sent by the user, and then display the target subsequence that meets the target conditions in the first page container, enabling the user to switch the search result page (page container) based on a convenient page sliding operation.

[0062] According to some embodiments, method 200 further includes: displaying the recommended search text in the first page container; and in response to determining that the recommended search text has been displayed, rendering the second page container based on a plurality of search result entries corresponding to the recommended search text. Thus, the recommended content can be intuitively presented to the user in the first page container, enabling the user to intuitively view the recommended search text, and pre-rendering the second page container after the recommended search text is displayed, so as to enable more efficient and convenient switching display.

[0063] Figure 3A and Figure 3B shows a schematic diagram of an information display page according to an exemplary embodiment of the present disclosure. Figure 3A The solid line box in the upper part shows the first page container including a search box 310, an information display area (including information 321, information 322, and information 323), and a recommended search text display area 330. In this example, the number of information included in the information display area can be determined based on the above method 200 to obtain the first page container that can approximate the display area height of the display screen panel. In this example, Figure 3AThe solid box at the bottom shows a second page container including a search box 340, an information display area (including information 351, information 352, and information 353), and a recommended search text display area 360. As described above, the second page container can be pre-rendered based on the recommended search text already displayed in the first page container. When the user performs a scrolling operation in the first page container, the switching of the page container can be triggered when the first page container scrolls to the bottom, so as to obtain the display interface of the second page container as Figure 3B shown.

[0064] In some examples, each page container may further include display components such as a top status bar and a bottom menu bar. When the user triggers the switch to display a new page container, the container switching animation can be invoked in the current page container, and the page rendering and audio / video playback processes of the current page container can be paused. At the same time, the component rendering and audio / video playback processes of the new page container are started. Since the user may perform a reciprocating sliding gesture in the front-end interface to abort the page container switching process, the page container switching process may fail. However, to improve the page container switching efficiency, the new page container can be pre-rendered so as to more efficiently switch and display the new page container when the user invokes the page container switching process again.

[0065] According to some embodiments, it further includes: in response to receiving an instruction indicating the switching of the display content of the first page container and the target subsequence has scrolled to the bottom, updating the value of the page switching identifier to a first value indicating that the page container is switching, where, in step S205, in response to receiving an instruction indicating the switching of the display content of the first page container and the target subsequence has not scrolled to the bottom, scrolling the first page container includes: in response to receiving an instruction indicating the switching of the display content of the first page container and the value of the page switching identifier is not the first value, scrolling the first page container. Thus, information can be transmitted between the page scrolling response mechanism and the page switching response mechanism by using the page switching identifier, avoiding conflicts in gesture responses.

[0066] As described above, by applying the method 200 provided by the present disclosure, the user can implement the scrolling and switching operations of the page container based on the same interaction operation (sending the same instruction indicating the switching of the display content of the first page container). In this case, it is necessary to accurately identify and respond to the user's interaction operation. In some examples, the recognition of the user gesture and the response to the user gesture can be abstracted into different steps. The implementation processes of the page scrolling response mechanism and the page switching response mechanism will be described below based on the exemplary scenario of "the user sends an instruction indicating the switching of the display content of the page container through a touch and slide operation".

[0067] In this example, the recognition of the user's swipe gesture can be used as a common prerequisite step for both the page scrolling response mechanism and the page switching response mechanism, and the response operations of these two response mechanisms can be completed alternately. The timing of the page switching response is when the page container scrolls to the top or bottom of the information display area (in this example, the scrolling of the page container can be implemented using a WebView), and the effect of the page switching response is that the page container stops scrolling and starts the page container switching animation. The timing of the page scrolling response is when the page container has not scrolled to the top or bottom and the page container switching has not been responded to, and the effect of the page scrolling response is that the page container scrolls.

[0068] Figure 4 FIG. shows a schematic diagram of an information display process according to an exemplary embodiment of the present disclosure. As Figure 4 shown, the execution of the page scrolling response mechanism and the page switching response mechanism in the information display process includes the following steps:

[0069] Step S1: Recognize the user's swipe gesture.

[0070] In response to recognizing the user's swipe gesture, the page scrolling response mechanism can be implemented based on the following steps S11 - S13:

[0071] Step S11: Scroll the current container.

[0072] Step S12: Determine whether the page switching flag is 1 (in this example, 1 corresponds to the first value described above indicating that the page container is switching. It should be understood that the initial value of the page switching flag should be 0, indicating that the page container is not switching). If the determination result is yes, step S11 can be continued to continue scrolling the current container.

[0073] If the determination result of step S12 is no, then execute step S13: Stop scrolling the current container.

[0074] In response to recognizing the user's swipe gesture, the page switching response mechanism can be implemented based on the following steps S21 - S210:

[0075] Step S21: Determine whether the page switching flag is 1.

[0076] If the determination result of step S21 is no, then execute step S26: Determine whether the current container has scrolled to the bottom.

[0077] If the determination result of step S26 is no, then execute step S210: Do not process. That is, do not start the page container switching process.

[0078] If the judgment result of step S26 is yes, then execute step S27: page switching flag = 1, that is, update the value of the page switching flag to the first value indicating that the page container is switching.

[0079] Step S28: Record the starting response displacement. This step is used to record the displacement of the user's sliding gesture when the page switching process responds.

[0080] Step S29: Start the container switching response, for example, execute the container switching animation following the user's gesture.

[0081] When the container switching process has been started, that is, the steps in the container switching response mechanism can continue to be executed based on the user's sliding gesture:

[0082] In this case, the value of the page switching flag has been updated to 1, that is, the judgment result of step S21 is yes, and step S22 needs to be continued: Determine whether the current scrolling displacement is greater than the starting response displacement. Considering that the touch and slide gesture executed by the user may correspond to a relatively long sliding displacement, covering two page response processes of "scrolling the current page container to the bottom" and "triggering the switching display of a new page container", by recording the starting response displacement, the displacement starting point when the page container switching starts to respond can be recorded, and based on this, the true value of the user's sliding displacement corresponding to the page switching response mechanism can be determined more accurately to more accurately determine the response steps in the page display process.

[0083] In some examples, there are the following possibilities for the sliding gesture executed by the user: on the basis of touching and sliding up a certain distance (that is, the page switching response has been triggered at the point of the starting response displacement described above), then execute a downward sliding action, that is, the intention is to keep the front-end display content in the initial first page container. In this case, it is necessary to judge whether to terminate the page switching response based on the true value of the user's sliding displacement after the page switching response is triggered, that is, corresponding to steps S23 - S24 below.

[0084] If the judgment result of step S22 is yes, then execute step S23: page switching flag = 0.

[0085] Step S24: Terminate the container switching response.

[0086] If the judgment result of step S22 is no, then execute step S25: Continue the container switching response.

[0087] By using the page switching flag to transfer information between the page scrolling response mechanism and the page switching response mechanism, gesture response conflicts can be avoided and the correctness of page display can be ensured.

[0088] According to an aspect of the present disclosure, an information display device is further provided. Figure 5The structural block diagram of an information display device 500 according to an exemplary embodiment of the present disclosure is shown. As Figure 5 shown, the device 500 includes:

[0089] A first determination unit 501, configured to determine a target display area for a display area of a first page container;

[0090] A second determination unit 502, configured to determine a first information sequence corresponding to the first page container;

[0091] A third determination unit 503, configured to determine a target subsequence from the first information sequence, where the number of target information included in the target subsequence is the minimum number that can meet a target condition, and the target condition indicates that the sum of the display areas of one or more target information included in the target subsequence is not less than the target display area;

[0092] A display unit 504, configured to display the target subsequence in the first page container;

[0093] A scrolling unit 505, configured to, in response to receiving an instruction indicating a switch of the display content of the first page container and the target subsequence not being scrolled to the bottom, scroll the first page container; and

[0094] A switching unit 506, configured to, in response to receiving an instruction indicating a switch of the display content of the first page container and the target subsequence being scrolled to the bottom, switch to display a second page container.

[0095] According to some embodiments, the target subsequence includes the first and last information of the first information sequence.

[0096] According to some embodiments, the third determination unit 503 includes: a first determination subunit, configured to determine a candidate subsequence including a first number of candidate information from the first information sequence, where the candidate subsequence includes the first and last information of the first information sequence, and the first number is determined based on a preset threshold of the target display area and the display area of a single piece of information; a deletion subunit, configured to, in response to determining that the candidate subsequence exceeds the initial visible area of the first page container, delete one or more candidate information that are not in the initial visible area, where the initial visible area is determined based on the target display area; and a second determination subunit, configured to determine the target subsequence based on the candidate subsequence after the deletion operation.

[0097] According to some embodiments, the deletion subunit is configured to: in response to determining that the candidate subsequence exceeds the initial visible area of the first page container, iteratively perform a deletion operation on the last bit information of the candidate subsequence until the current last bit information of the candidate subsequence is within the initial visible area or it is determined that the first page container has been scrolled to the display position of the current last bit information.

[0098] According to some embodiments, the apparatus 500 further includes: an adding unit, configured to add the information in the first information sequence that is after the candidate subsequence to the end of the candidate subsequence in response to determining that the sum of the display areas of the candidate subsequences is less than the target display area.

[0099] According to some embodiments, the display unit 504 is further configured to: display a content expansion control at the bottom of the first page container; and in response to receiving an instruction to control the content expansion control, display the other information in the first information sequence except the target subsequence in the first page container.

[0100] According to some embodiments, the first page container is triggered by a search request including a first search text, the first information sequence includes a plurality of search result entries corresponding to the first search text, and the second page container is used to display a plurality of search result entries corresponding to a recommended search text.

[0101] According to some embodiments, the display unit 504 is further configured to display the recommended search text in the first page container, and the apparatus 500 further includes a rendering unit, configured to render the second page container based on a plurality of search result entries corresponding to the recommended search text in response to determining that the recommended search text has been displayed.

[0102] According to some embodiments, the apparatus 500 further includes: an updating unit, configured to update the value of the page switching identifier to a first value indicating that the page container is switching in response to receiving an instruction indicating that the first page container switches the displayed content and the target subsequence has scrolled to the bottom, where the scrolling unit 505 is configured to: in response to receiving an instruction indicating that the first page container switches the displayed content and the value of the page switching identifier is not the first value, scroll the first page container.

[0103] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, and disclosure of the user's personal information involved all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.

[0104] According to another aspect of the present disclosure, there is also provided an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the above information display method.

[0105] According to another aspect of the present disclosure, there is also provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the above information display method.

[0106] According to another aspect of the present disclosure, there is also provided a computer program product, including a computer program, wherein the computer program implements the above information display method when executed by a processor.

[0107] Reference Figure 6 will now describe a block diagram of an electronic device 600 that can be a server or a client of the present disclosure, which is an example of a hardware device applicable to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as, for example, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, for example, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0108] As Figure 6 shown, the device 600 includes a computing unit 601, which can execute various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0109] Multiple components in device 600 are connected to I / O interface 605, including: input unit 606, output unit 607, storage unit 608, and communication unit 609. The input unit 606 can be any type of device capable of inputting information into device 600. The input unit 606 can receive input digital or character information, and generate key signal inputs related to user settings and / or function controls of the electronic device, and can include, but are not limited to, a mouse, keyboard, touch screen, trackpad, trackball, joystick, microphone, and / or remote control. The output unit 607 can be any type of device capable of presenting information, and can include, but are not limited to, a display, speaker, video / audio output terminal, vibrator, and / or printer. The storage unit 608 can include, but are not limited to, magnetic disks and optical discs. The communication unit 609 allows device 600 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks, and can include, but are not limited to, a modem, network card, infrared communication device, wireless communication transceiver, and / or chipset, such as a Bluetooth™ device, 802.11 device, WiFi device, WiMax device, cellular communication device, and / or the like.

[0110] The computing unit 601 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 executes the various methods and processes described above, such as the information display method. For example, in some embodiments, the information display method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 608. In some embodiments, part or all of the computer program can be loaded and / or installed onto device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the information display method described above can be executed. Alternatively, in other embodiments, the computing unit 601 can be configured to execute the information display method by any other suitable means (e.g., by means of firmware).

[0111] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems-on-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which may be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.

[0112] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine, or entirely on the remote machine or server.

[0113] In the context of the present disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0114] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and a pointing device (e.g., a mouse or a trackball), by which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and the input received from the user can be in any form (including acoustic input, voice input, or tactile input).

[0115] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), the Internet, and blockchain networks.

[0116] A computer system can include a client and a server. The client and the server are generally far from each other and usually interact through a communication network. The client - server relationship is created by computer programs running on the respective computers and having a client - server relationship with each other. The server can be a cloud server, can also be a server of a distributed system, or a server incorporating blockchain.

[0117] It should be understood that various forms of the processes shown above can be used, re - ordering, adding, or deleting steps. For example, the steps recited in this disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this is not limited herein.

[0118] Although embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above methods, systems, and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but is only defined by the authorized claims and their equivalent scope. Various elements in the embodiments or examples may be omitted or replaced by their equivalent elements. In addition, the steps may be executed in an order different from that described in the present disclosure. Further, various elements in the embodiments or examples may be combined in various ways. Importantly, with the evolution of technology, many of the elements described herein may be replaced by equivalent elements that emerge after the present disclosure.

Claims

1. An information display method, comprising: Determining a target display area for a display area of a first page container; Determining a first information sequence corresponding to the first page container; Determining a target subsequence from the first information sequence, wherein the number of target information included in the target subsequence is the minimum number that can meet a target condition, and the target condition includes that the sum of the display areas of one or more target information included in the target subsequence is not less than the target display area; Displaying the target subsequence in the first page container; In response to receiving an instruction to switch the display content of the first page container and the target subsequence not being scrolled to the bottom, scrolling the first page container; and In response to receiving an instruction to switch the display content of the first page container and the target subsequence having been scrolled to the bottom, switching to display a second page container.

2. The method according to claim 1, wherein The target subsequence includes the first and last information of the first information sequence.

3. The method according to claim 2, wherein The determining the target subsequence from the first information sequence includes: Determining a candidate subsequence including a first number of candidate information from the first information sequence, wherein the candidate subsequence includes the first and last information of the first information sequence, and the first number is determined based on a preset threshold of the target display area and the display area of a single piece of information; In response to determining that the candidate subsequence exceeds the initial visible area of the first page container, deleting one or more candidate information in the candidate subsequence that are not in the initial visible area, wherein the initial visible area is determined based on the target display area; and Based on the candidate subsequence after the deletion operation, determining the target subsequence.

4. The method according to claim 3, wherein, The responding to determining that the candidate subsequence exceeds the initial visible area of the first page container and deleting one or more candidate information in the candidate subsequence that are not in the initial visible area includes: In response to determining that the candidate subsequence exceeds the initial visible area of the first page container, iteratively performing a deletion operation on the last piece of information of the candidate subsequence until the current last piece of information of the candidate subsequence is in the initial visible area or it is determined that the first page container has been scrolled to the display position of the current last piece of information.

5. The method according to claim 3 or 4, further comprising: In response to determining that the sum of the display areas of the candidate subsequence is less than the target display area, adding the information located after the candidate subsequence in the first information sequence to the end of the candidate subsequence.

6. The method according to any one of claims 1-5, further comprising: Displaying a content expansion control at the bottom of the first page container; And In response to receiving an instruction to control the content expansion control, displaying the other information in the first information sequence except the target subsequence in the first page container.

7. The method according to any one of claims 1 to 6, wherein, The first page container is triggered by a search request including a first search text, the first information sequence includes a plurality of search result entries corresponding to the first search text, and the second page container is used to display a plurality of search result entries corresponding to a recommended search text.

8. The method according to claim 7, further comprising: displaying the recommended search text in the first page container; and in response to determining that the recommended search text has been displayed, rendering the second page container based on a plurality of search result entries corresponding to the recommended search text.

9. The method according to any one of claims 1-8, further comprising: in response to receiving an instruction indicating a change in the displayed content of the first page container and the target subsequence having scrolled to the bottom, updating the value of the page switch flag to a first value indicating that the page container is being switched, wherein, in response to receiving an instruction indicating a change in the displayed content of the first page container and the target subsequence not having scrolled to the bottom, scrolling the first page container comprises: in response to receiving an instruction indicating a change in the displayed content of the first page container and the value of the page switch flag not being the first value, scrolling the first page container.

10. An information display device, comprising: a first determination unit configured to determine a target display area of a display area for displaying a first page container; a second determination unit configured to determine a first information sequence corresponding to the first page container; a third determination unit configured to determine a target subsequence from the first information sequence, wherein the number of target information included in the target subsequence is the minimum number capable of satisfying a target condition, and the target condition indicates that the sum of the display areas of one or more target information included in the target subsequence is not less than the target display area; a display unit configured to display the target subsequence in the first page container; a scrolling unit configured to scroll the first page container in response to receiving an instruction indicating a change in the displayed content of the first page container and the target subsequence not having scrolled to the bottom; and a switching unit configured to switch to display a second page container in response to receiving an instruction indicating a change in the displayed content of the first page container and the target subsequence having scrolled to the bottom.

11. An electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, enable the at least one processor to execute the method according to any one of claims 1-9.

12. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are for causing a computer to execute the method according to any one of claims 1-9.

13. A computer program product comprising a computer program, wherein, The computer program, when executed by a processor, implements the method according to any one of claims 1-9.

Citation Information

Patent Citations

  • Data request method and device

    CN111787043A

  • Data item display method, device and system, and computer-readable storage medium

    CN111989668A

  • Page jumping method and device, electronic equipment and readable storage medium

    CN113391870A

  • Page request method, page access system, electronic equipment and storage medium

    CN113792236A

  • Page control method and device, electronic equipment and storage medium

    CN116931800A