Page jump method, device and equipment, and storage medium

By creating a transparent page and adjusting its size and position before the page redirection, the problem of long page redirection time was solved, achieving fast page redirection and a good user experience.

CN122240196APending Publication Date: 2026-06-19TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF -1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2024-12-18
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

Current technologies often result in long page transition times, which negatively impacts the user experience.

Method used

Create a transparent page before the page redirects, adjust its size and position during the redirect to match the target page, and then switch to visible mode for display.

Benefits of technology

It enables fast page navigation, reduces latency, and achieves the effect of seeing the page immediately upon clicking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122240196A_ABST
    Figure CN122240196A_ABST
Patent Text Reader

Abstract

This application provides a page navigation method, apparatus, device, and storage medium, relating to the field of computer technology. The method includes: responding to an operation triggered by a first object to open a first page, displaying the first page; creating a transparent page of a second page on the first page; setting the display mode of the transparent page of the second page to an invisible mode; the first page includes a first view; the second page is a navigation page for the first page; and the area of ​​the transparent page of the second page is smaller than the area of ​​the second page. Responding to an operation triggered by the first object to navigate through the first view, navigation to the second page is performed; during the navigation to the second page, the size and position of the transparent page of the second page are adjusted so that the size and position of the adjusted transparent page are the same as the size and position of the second page, respectively; and the display mode of the adjusted transparent page is set to a visible mode to display the second page. This improves the speed of page navigation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a page redirection method, apparatus, device, and storage medium. Background Technology

[0002] Currently, page navigation often involves page transitions during application use. In existing technology, if rendering the new page takes a long time, the page content is typically divided into modules. Only a few essential modules are loaded after the transition, and the remaining modules are loaded as needed after the transition is complete, ultimately displaying the complete page. However, this method can result in lengthy page transition times in some applications. Summary of the Invention

[0003] This application provides a page redirection method, apparatus, device, and storage medium to solve the problem of long page redirection time and improve page redirection speed.

[0004] In a first aspect, embodiments of this application provide a page redirection method, including:

[0005] In response to the first object triggering the operation to open the first page, display the first page;

[0006] Create a transparent page of the second page on the first page, and set the display mode of the transparent page of the second page to invisible mode. The first page includes a first view, and the second page is a jump page of the first page. The area of ​​the transparent page of the second page is smaller than the area of ​​the second page.

[0007] In response to the first object triggering a page jump through the first view, the system jumps to the second page. During the jump to the second page, the size and position of the transparent page of the second page are adjusted so that the size and position of the adjusted transparent page are the same as the size and position of the second page. The display mode of the adjusted transparent page is set to visible mode to display the second page.

[0008] Secondly, embodiments of this application provide a page redirection device, comprising:

[0009] The display module is used to display the first page in response to the first object triggering the operation of opening the first page;

[0010] The processing module is used to create a transparent page of the second page on the first page, and set the display mode of the transparent page of the second page to an invisible mode. The first page includes a first view, the second page is a jump page of the first page, and the area of ​​the transparent page of the second page is smaller than the area of ​​the second page.

[0011] The page navigation module is used to respond to the operation of the first object triggering page navigation through the first view, and to navigate to the second page. During the navigation to the second page, the size and position of the transparent page of the second page are adjusted so that the size and position of the adjusted transparent page are the same as the size and position of the second page, and the display mode of the adjusted transparent page is set to visible mode to display the second page.

[0012] In one embodiment, the processing module is used to:

[0013] Create a proxy activity component and create a target screen area for the proxy activity component, the area of ​​the target screen area being smaller than the area of ​​the second page;

[0014] The target screen area is determined as the transparent page of the second page;

[0015] or,

[0016] Drive the lifecycle of a pre-created proxy activity component, which pre-creates a target screen area, the area of ​​which is smaller than the area of ​​the second page;

[0017] The target screen area is determined as the transparent page of the second page.

[0018] In one embodiment, the processing module is used to:

[0019] Set the display mode of the view managed by the agent activity component to invisible mode.

[0020] In one embodiment, the page redirection module is used for:

[0021] During the process of navigating to the second page, the size and position of the target screen area are adjusted.

[0022] In one embodiment, the processing module is used to:

[0023] If it is determined that the current application's view does not depend on the functionality implemented on the target screen area, then a proxy activity component is created, or the lifecycle of a pre-created proxy activity component is driven, which is only used to create the view;

[0024] The views created by the agent activity component are combined into a transparent page of the second page.

[0025] In one embodiment, the page redirection module is used for:

[0026] Recycle the active components on the page before the redirect, and create the active components on the page after the redirect;

[0027] After the startup state of the lifecycle of the active component on the page after navigation is executed, the proxy active component is added to the active component on the page after navigation, and the view content created by the proxy active component is transferred to the screen area of ​​the active component on the page after navigation, so that the active component on the page after navigation controls the lifecycle of the proxy active component and the visibility state of the view created by the proxy active component.

[0028] In one embodiment, the page redirection module is used for:

[0029] Obtain the dimensions of the transparent page of the second page and the coordinates of its four vertices, as well as the dimensions of the second page and the coordinates of its four vertices;

[0030] Based on the coordinates of the four vertices of the transparent page of the second page and the coordinates of the four vertices of the second page, the position of the transparent page of the second page is adjusted to obtain the position-adjusted transparent page, wherein one vertex of the position-adjusted transparent page is aligned with one vertex of the second page.

[0031] Based on the size of the transparent page of the second page and the size of the second page, the size of the transparent page after the position adjustment is adjusted to obtain the adjusted transparent page.

[0032] In one embodiment, the page redirection module is used for:

[0033] Select a first target vertex from the four vertices of the transparent page of the second page, and determine the vertex of the four vertices of the second page that corresponds to the first target vertex as the second target vertex;

[0034] Based on the coordinates of the first target vertex and the coordinates of the second target vertex, the first target vertex is moved to a position aligned with the second target vertex.

[0035] In one embodiment, the page view distribution of the transparent page of the second page is the same as the page view distribution of the second page.

[0036] Thirdly, embodiments of this application provide an electronic device, including: a processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to perform the method of the first aspect.

[0037] Fourthly, embodiments of this application provide a computer-readable storage medium for storing a computer program that causes a computer to perform the method of the first aspect.

[0038] Fifthly, embodiments of this application provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform the method of the first aspect.

[0039] In summary, in this embodiment, the terminal device responds to an operation triggered by a first object to open a first page, displays the first page, creates a transparent second page on the first page, and sets the display mode of the transparent second page to invisible mode. The first page includes a first view, and the second page is a jump page to the first page. The area of ​​the transparent second page is smaller than the area of ​​the second page. Responding to an operation triggered by the first object through the first view, the user jumps to the second page. During the jump to the second page, the size and position of the transparent second page are adjusted so that the size and position of the adjusted transparent page are the same as those of the second page. The display mode of the adjusted transparent page is then set to visible mode to display the second page. Since the transparent second page is created before the page jump, only the size and position of the transparent second page need to be adjusted during the jump to display the second page. Therefore, the content of the jump page can be displayed in a shorter time, improving the page jump speed and achieving a page jump with less delay, achieving the effect of "click to see".

[0040] Furthermore, in this embodiment of the application, when creating the transparent page of the second page, the created proxy activity component is only used to create the view, and it is not necessary to add the created view to the Window, which can reduce the complexity of the proxy activity component. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 This is a schematic diagram illustrating the composition of an Activity-held page.

[0043] Figure 2 This is a schematic diagram illustrating an application scenario of a page redirection method provided in an embodiment of this application.

[0044] Figure 3 This is a schematic diagram of the composition structure of the page redirection device provided in the embodiments of this application;

[0045] Figure 4 A flowchart illustrating a page redirection method provided in this application embodiment;

[0046] Figure 5 A schematic diagram of a transparent page of a second page created on a first page, provided as an embodiment of this application;

[0047] Figure 6 A schematic diagram illustrating the workflow of an agent activity component provided in an embodiment of this application;

[0048] Figure 7 A schematic diagram of the lifecycle of an agent activity component provided in an embodiment of this application;

[0049] Figure 8 This is a schematic diagram illustrating the transfer of view content after page navigation and the transfer of lifecycle control of proxy activity components, provided as an embodiment of this application.

[0050] Figure 9 This is a schematic diagram illustrating the resizing and repositioning of a transparent page of a second page during page navigation, as provided in an embodiment of this application.

[0051] Figure 10 A flowchart illustrating a page redirection method provided in this application embodiment;

[0052] Figure 11 A flowchart illustrating a page redirection method provided in this application embodiment;

[0053] Figure 12 A flowchart illustrating a page redirection method provided in this application embodiment;

[0054] Figure 13 This is a schematic diagram of the structure of a page navigation device provided in an embodiment of this application;

[0055] Figure 14 This is a schematic block diagram of the electronic device provided in the embodiments of this application. Detailed Implementation

[0056] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0057] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0058] Before introducing the technical solutions of the embodiments of this application, the relevant knowledge of the embodiments of this application will be introduced below:

[0059] 1. Responding to indicates the conditions or states on which the operation is performed depends. When the conditions or states on which the operation is performed are met, one or more operations may be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.

[0060] 2. Activity: The main component for page navigation in Android applications is the Activity. The Activity is created by the application (APP), and its lifecycle is controlled by the system. The application displays the Activity when it is launched (Resumed) and hides it when it is paused (Paused).

[0061] 3. A virtual framework refers to an application implementing its own proxy activity component (FakeActivity). Its lifecycle is controlled by the application itself, and may or may not be related to the system-controlled lifecycle. Code originally written within the Activity framework can be seamlessly switched to execution within FakeActivity.

[0062] 4. Transparent Pages: The page displayed when an Activity is launched (Resumed) is hosted by a View. Figure 1This is a schematic diagram illustrating the composition of an Activity-held page, such as... Figure 1 As shown, a Window represents an area on the device screen; a View is an element in the application that can be displayed and interacted with, organized in a tree structure to constitute all the visible elements in the entire application; Views are created by the developer and managed by the Activity, which adds the View to its own Window, making the page visible. A transparent page refers to... Figure 1 The root view (RootView) can be seen when the opacity of the root component of the page and other views held by the root view are set to 0 or the visibility attribute is set to Gone, causing the page to become invisible.

[0063] 5. A server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0064] In related technologies, page transitions in some applications can be time-consuming. To address this issue, this application provides an embodiment that prepares a transparent second page (the transition page) before the actual page transition. In response to a page transition triggered by a first object, the user transitions to the second page. During this transition, the size and position of the transparent second page are adjusted to match those of the second page. The adjusted transparent page is then set to a visible mode to display the second page. This allows the content of the transition page to be displayed quickly, improving page transition speed and achieving a page transition with minimal latency, resulting in a click-to-see effect.

[0065] Next, examples of application scenarios involved in the embodiments of this application will be provided. The page redirection method provided in the embodiments of this application can be applied to at least the following application scenarios, which will be described below in conjunction with the accompanying drawings.

[0066] For example, Figure 2 This is a schematic diagram illustrating an application scenario of a page redirection method provided in an embodiment of this application, such as... Figure 2 As shown, this application scenario involves a terminal device 110 and a server 120, and the terminal device 110 can communicate with the server 120.

[0067] In some possible ways, Figure 2 The application scenarios shown can also include: base stations, core network side equipment, etc., in addition, Figure 2An exemplary terminal device and a server are shown, but in practice, other numbers of terminal devices and servers may be included, and this application does not limit this.

[0068] In some possible ways, Figure 2 The server 120 in this application can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. This application does not impose any limitations on these aspects.

[0069] In some possible implementations, such as Figure 2 The terminal device 110 shown can install and run various applications. When any of these applications is running on the terminal device 110, it can interact with the server 120.

[0070] Optionally, in this embodiment, the terminal device 110 can be a device with rich human-computer interaction methods, internet access capabilities, typically running various operating systems, and possessing strong processing capabilities. The terminal device 110 can be a smartphone, smart TV, tablet computer, vehicle terminal, etc., but is not limited to these.

[0071] In one possible implementation, the page redirection method provided in the embodiments of this application can be executed by the terminal device 110.

[0072] For example, when an object opens the first page of an application and clicks on the first view of the first page to enter the second page, a page jump is required. Since creating the second page takes a long time, it will take a long time for the user to actually enter the second page and see its content, affecting the user experience. At this time, the page jump method provided in this application embodiment can be used. The terminal device responds to the operation of the first object triggering the opening of the first page, displays the first page, creates a transparent page of the second page on the first page, and sets the display mode of the transparent page of the second page to invisible mode. The first page includes a first view, and the second page is the jump page of the first page. The area of ​​the transparent page of the second page is smaller than the area of ​​the second page. In response to the operation of the first object triggering the page jump through the first view, the user jumps to the second page. During the jump to the second page, the size and position of the transparent page of the second page are adjusted so that the size and position of the adjusted transparent page are the same as the size and position of the second page, and the display mode of the adjusted transparent page is set to visible mode to display the second page. Therefore, the content of the redirected page can be displayed in a shorter time, improving the page redirection speed and achieving page redirection with less delay, so that the content can be seen immediately upon clicking.

[0073] Figure 3 This is a schematic diagram of the composition of the page navigation device provided in the embodiments of this application. It can be understood that... Figure 3 The structure shown is merely an exemplary one of the page navigation device, not the entire structure; it can be implemented as needed. Figure 3 The diagram shows part or all of the structure. For example... Figure 3 As shown, the page navigation device provided in this application embodiment may include at least one processor 201, a memory 202, a user interface 203, and at least one network interface 204. The various components in the page navigation device are coupled together via a bus system 205. It can be understood that the bus system 205 is used to implement communication between these components. In addition to a data bus, the bus system 205 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 3 The general labeled all buses as Bus System 205.

[0074] The user interface 203 may include a monitor, keyboard, mouse, trackball, click wheel, buttons, touchpad, or touch screen.

[0075] It is understood that memory 202 can be volatile memory or non-volatile memory, or both. In this embodiment, memory 202 is capable of storing data to support terminal operation. Examples of this data include any computer programs used to operate on the terminal, such as operating systems and applications. The operating system includes various system programs, such as framework layers, core library layers, driver layers, etc., used to implement various basic services and handle hardware-based tasks. Applications can include various applications.

[0076] In some embodiments, the page redirection device provided in this application can be implemented using a combination of hardware and software. For example, the page redirection device provided in this application can be a processor in the form of a hardware decoding processor, which is programmed to execute the page redirection method provided in this application. For instance, the processor in the form of a hardware decoding processor can employ one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0077] As an example of the page jump device provided in this application embodiment being implemented using a combination of hardware and software, the page jump device provided in this application embodiment can be directly embodied as a combination of software modules executed by processor 201. The software modules can be located in a storage medium, which is located in memory 202. Processor 201 reads the executable instructions included in the software modules in memory 202 and combines them with necessary hardware (e.g., including processor 201 and other components connected to bus 205) to complete the page jump method provided in this application embodiment.

[0078] As an example, processor 201 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., wherein the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0079] As an example of the page jump device provided in this application embodiment being implemented in hardware, the device provided in this application embodiment can be directly executed by a processor 201 in the form of a hardware decoding processor. For example, it can be executed by one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components to implement the page jump method provided in this application embodiment.

[0080] The memory 202 in this embodiment is used to store various types of data to support the operation of the page jump device. Examples of such data include: any executable instructions for operation on the page jump device, such as executable instructions, and a program implementing the page jump method of this embodiment may be included in the executable instructions.

[0081] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of the present invention will now be described with reference to the accompanying drawings.

[0082] Figure 4 This flowchart illustrates a page redirection method provided in an embodiment of this application. This method can be executed by a page redirection device, which can be implemented through software and / or hardware. The page redirection device can be a terminal device. Figure 4 As shown, the method in this embodiment may include:

[0083] S101. In response to the first object triggering the operation to open the first page, display the first page.

[0084] Specifically, in this embodiment, the execution subject of the page navigation method is a terminal device, the first object is the user of the terminal device, and the first page is a page of an application installed and running on the terminal device. This page can be the homepage of the application or another page of the application. For example, if the first page is the homepage of an application, the operation triggered by the first object to open the first page can be that the first object clicks the icon of the application, and the terminal device responds to this operation by displaying the first page. Alternatively, if the first page is another page of the application, not the homepage, the operation triggered by the first object to open the first page can be that the first object clicks an icon on the previous page of the first page, and the terminal device responds to this operation by displaying the first page, where the first page is a navigation page from the previous page of the first page.

[0085] S102. Create a transparent page for the second page on the first page, and set the display mode of the transparent page for the second page to invisible mode. The first page includes a first view, and the second page is a jump page to the first page. The area of ​​the transparent page for the second page is smaller than the area of ​​the second page.

[0086] Specifically, while displaying the first page, the terminal device simultaneously creates a transparent second page on the first page and sets the display mode of the transparent second page to invisible mode. Essentially, the transparent second page is created before the first object enters the second page. The first page includes a first view, the second page is a transition page from the first page, and the area of ​​the transparent second page is smaller than the area of ​​the second page.

[0087] Figure 5 A schematic diagram of a transparent page for a second page created on a first page, provided as an embodiment of this application, is shown below. Figure 5 As shown, the first page 21 is a page of an application installed and running on the terminal device. After the first object clicks the "Discover" icon at the bottom of the page, the terminal device responds to the operation and displays the first page 21. The first page includes multiple views, including a first view. After the first object clicks the first view, the page jumps to the second page. Specifically, when the terminal device responds to the first object's action of opening the first page 21 and displays the first page 21, it creates a transparent page 22 of the second page (e.g., ...) on the first page. Figure 5 The page within the dashed box is a transparent page. Set the display mode of the second transparent page 22 to invisible mode, as shown below. Figure 5As shown, the area of ​​the transparent page 22 of the second page is smaller than the area of ​​the second page itself. The area of ​​the second page itself is the same as the area of ​​the first page 21. Since the display mode of the transparent page 22 of the second page is set to invisible mode, the first object on the first page can only see the first page displayed normally.

[0088] In one embodiment, as one possible implementation, creating a transparent second page on the first page in S102 can specifically be as follows:

[0089] S1021. Create a proxy activity component and create a target screen area for the proxy activity component. The area of ​​the target screen area is smaller than the area of ​​the second page.

[0090] S1022. Determine the target screen area as the transparent page of the second page.

[0091] Specifically, the fake activity component (FakeActivity) is implemented by the application itself. Its lifecycle is controlled by the application, and may or may not be related to the system-controlled lifecycle. Code originally written within the Activity framework can be seamlessly switched to execute within the fake activity component. When creating the fake activity component, a target screen area (Window) is also created for it. A Window represents a region on the screen; only views added to a Window can actually be displayed. The purpose of creating a Window is primarily to simulate the process of a real Activity loading views onto a Window for display, making the view preparation more complete. Without a Window, some functions that depend on the view being displayed will be unusable, leading to incomplete functionality of pre-created pages. For example, the surface used for playing videos only works correctly when the view is actually displayed. A Window represents a region on the screen, with underlying storage space proportional to its size. To minimize the memory footprint of pre-prepared transparent pages, the Window of the fake activity component should be as small as possible, adjusting to the actual screen size during navigation. By setting the area of ​​the transparent page of the second page to be smaller than the area of ​​the second page, the memory usage of the transparent page of the second page prepared in advance can be reduced.

[0092] As another feasible approach, in S102, a transparent page for the second page is created from the first page, which can be specifically:

[0093] S1021': Drive the lifecycle of the pre-created proxy activity component. The proxy activity component pre-creates a target screen area, the area of ​​which is smaller than the area of ​​the second page.

[0094] S1022', Determine the target screen area as the transparent page of the second page.

[0095] Specifically, proxy activity components can be pre-created, with page code written within them. When used, the lifecycle of the proxy activity component is driven. The lifecycle of the proxy activity component is exactly the same as that of the Activity. The lifecycle of the proxy activity component can be driven by the application, such as the application to which the first page belongs. Figure 6 This is a schematic diagram of the workflow of an agent activity component provided in an embodiment of this application, such as... Figure 6 As shown, the workflow of the proxy activity component mainly includes lifecycle-driven operations, adding the view to the target screen area, and setting the view's display mode to invisible mode. For example, Figure 7 This is a schematic diagram of the lifecycle of a proxy activity component provided in an embodiment of this application, such as... Figure 7 As shown, the lifecycle of an agent activity component can include creation, start, startup, pause, stop, and destruction.

[0096] Accordingly, in one embodiment, setting the display mode of the transparent page of the second page to an invisible mode in S102 can specifically be: setting the display mode of the view managed by the proxy activity component to an invisible mode. Specifically, the transparency of the view managed by the proxy activity component can be set to transparent or the view can be set to invisible.

[0097] In the above embodiments, when creating the transparent page of the second page, the Window of the proxy activity component is a mandatory item. Optionally, in one embodiment, the Window of the proxy activity component may not be a mandatory item, that is, the application's view does not rely on the target screen area for its functionality. When creating the transparent page of the second page in advance, only the view needs to be prepared; it is not necessary to add the view to the Window. In this case, as another feasible approach, creating the transparent page of the second page in S102 on the first page can specifically be as follows:

[0098] If it is determined that the current application's view does not depend on the functionality implemented on the target screen area, a proxy activity component is created. Alternatively, the lifecycle of a pre-created proxy activity component is driven. The proxy activity component is only used to create views, and the views created by the proxy activity component are combined into a transparent page of the second page. In this embodiment, the created proxy activity component is only used to create views and does not need to be added to the Window, which reduces the complexity of the proxy activity component.

[0099] S103. In response to the first object triggering a page jump through the first view, jump to the second page. During the jump to the second page, adjust the size and position of the transparent page of the second page so that the size and position of the adjusted transparent page are the same as the size and position of the second page, and set the display mode of the adjusted transparent page to the visible mode to display the second page.

[0100] Specifically, such as Figure 5 As shown, the operation of triggering page navigation through the first view can be that the first object clicks the first view, and the terminal device responds to this operation by navigating to the second page. Since the transparent page of the second page is created before the page navigation, during the navigation process, the size and position of the transparent page of the second page are adjusted so that the size and position of the adjusted transparent page are the same as those of the second page, and the display mode of the adjusted transparent page is set to visible mode to display the second page. Therefore, during the page navigation process, only the size and position of the transparent page of the second page created before the page navigation need to be adjusted, thereby displaying the content of the navigation page in a shorter time, improving the page navigation speed, achieving a page navigation with less latency, and achieving the effect of being visible immediately upon clicking.

[0101] In one embodiment, as an implementable method, during the process of navigating to the second page in S103, the size and position of the transparent page of the second page are adjusted. Specifically, this can be done as follows:

[0102] During the transition to the second page, the size and position of the target screen area are adjusted.

[0103] In one embodiment, the jump to the second page in S103 can specifically be as follows:

[0104] S1031. Recycle the active components of the page before the jump, and create the active components of the page after the jump.

[0105] S1032. After the startup state of the lifecycle of the active component on the redirected page is executed, the proxy active component is added to the active component on the redirected page, and the view content created by the proxy active component is transferred to the screen area of ​​the active component on the redirected page, so that the active component on the redirected page can control the lifecycle of the proxy active component and the visibility state of the view created by the proxy active component.

[0106] Specifically, the first object triggers a page navigation operation through the first view, such as clicking the first view to trigger a page navigation. When the terminal device detects the page navigation, it reclaims the active component of the page before the navigation (the first page) and simultaneously creates an active component for the page after the navigation (the second page). After the onResume lifecycle event of the active component on the second page is executed, a proxy active component is added to the active component of the second page. The subsequent lifecycle of the proxy active component is controlled by the active component of the second page, which in turn is controlled by the Android system. Furthermore, the view content created by the proxy active component is transferred to the screen area of ​​the active component of the second page, allowing the active component of the second page to control the visibility of the view created by the proxy active component. Figure 8 This application provides a schematic diagram illustrating the transfer of view content after page navigation and the transfer of lifecycle control of a proxy activity component, as shown in the embodiments of this application. Figure 8 As shown, when a page jumps, after the onResume state of the lifecycle of the active component on the next page is executed, the terminal device adds a proxy active component to the active component of the next page. The lifecycle of the proxy active component is controlled by the active component of the next page. The terminal device transfers the view content created by the proxy active component to the screen area of ​​the active component of the next page. Thus, the active component of the next page controls the visibility of the view created by the proxy active component.

[0107] The following details the specific implementation of adjusting the size and position of the transparent page of the second page. In one feasible embodiment, adjusting the size and position of the transparent page of the second page in S103 can specifically be as follows:

[0108] S1031. Obtain the size of the transparent page of the second page and the coordinates of its four vertices.

[0109] Specifically, the transparent page of the second page is rectangular, and the second page itself is also rectangular. First, the dimensions and coordinates of the four vertices of the transparent page are obtained. The dimensions of the transparent page can include its length and width. The coordinates of the four vertices of the transparent page are the coordinates of the four vertices of the corresponding rectangular page. These dimensions and coordinates can be pre-stored and can be directly retrieved.

[0110] S1032. Based on the coordinates of the four vertices of the transparent page of the second page and the coordinates of the four vertices of the second page, the position of the transparent page of the second page is adjusted to obtain the position-adjusted transparent page, and one vertex of the position-adjusted transparent page is aligned with one vertex of the second page.

[0111] Optionally, in one implementable method, in S1032, the position of the transparent page of the second page is adjusted based on the coordinates of the four vertices of the transparent page of the second page and the coordinates of the four vertices of the second page. Specifically, this can be:

[0112] S10331. Select a first target vertex from the four vertices of the transparent page of the second page, and determine the vertex corresponding to the first target vertex among the four vertices of the second page as the second target vertex.

[0113] S10332. Based on the coordinates of the first target vertex and the second target vertex, move the first target vertex to a position aligned with the second target vertex.

[0114] Specifically, for example, the coordinates of the first target vertex are (x1, y1) and the coordinates of the second target vertex are (x2, y2). After shifting the first target vertex by (x2-x1, y2-y1), it is aligned (i.e. coincident) with the second target vertex.

[0115] S1033. Based on the size of the transparent page of the second page and the size of the second page, adjust the size of the transparent page after the position adjustment to obtain the adjusted transparent page.

[0116] Specifically, the transparent page of the second page can be scaled based on the ratio of the size of the second page to the size of the transparent page of the second page. For example, if the ratio of the size of the second page to the size of the transparent page of the second page is K, then the transparent page of the second page is enlarged by a factor of K, and the size of the transparent page of the second page is the same as that of the second page, thus obtaining the adjusted transparent page.

[0117] Figure 9 This application provides an embodiment of a schematic diagram illustrating the resizing and repositioning of a transparent page on a second page during page navigation. Figure 9 As shown, the first object triggers a page navigation operation through the first view, such as clicking... Figure 9 The first view shown triggers a page jump. In response to this operation, the terminal device adjusts the size and position of the transparent page of the second page during the page jump. Specifically, it performs displacement and scaling to obtain the adjusted transparent page.

[0118] Optionally, in one embodiment, the page view distribution of the transparent page of the second page is the same as the page view distribution of the second page.

[0119] The page navigation method provided in this embodiment involves a terminal device responding to an operation triggered by a first object to open a first page, displaying the first page, creating a transparent second page on the first page, and setting the display mode of the transparent second page to invisible mode. The first page includes a first view, and the second page is a navigation page for the first page. The area of ​​the transparent second page is smaller than the area of ​​the second page. Responding to an operation triggered by the first object through the first view, navigation occurs to the second page. During the navigation to the second page, the size and position of the transparent second page are adjusted so that the size and position of the adjusted transparent page are the same as those of the second page, and the display mode of the adjusted transparent page is set to visible mode to display the second page. Since the transparent second page is created before the page navigation, only the size and position of the transparent second page need to be adjusted during the navigation to display the second page. Therefore, the content of the navigation page can be displayed in a shorter time, improving the page navigation speed and achieving a page navigation with minimal delay, achieving the effect of "click to see".

[0120] The following is combined with Figure 10 and Figure 11 The process of page redirection is explained in detail using two specific implementation examples.

[0121] Figure 10 This flowchart illustrates a page redirection method provided in an embodiment of this application. This method can be executed by a page redirection device, which can be implemented through software and / or hardware. The page redirection device can be a terminal device. Figure 10 As shown, the method in this embodiment may include:

[0122] S201. In response to the first object triggering the operation to open the first page, display the first page.

[0123] Specifically, the execution subject of the page jump method in this embodiment is the terminal device, the first object is the user of the terminal device, and the first page is a page of a certain application installed and running on the terminal device. This page can be the homepage of the application or other pages of the application.

[0124] S202. Drive the lifecycle of the pre-created proxy activity component. The proxy activity component pre-creates a target screen area. The area of ​​the target screen area is smaller than the area of ​​the second page. The target screen area is determined as the transparent page of the second page, and the display mode of the transparent page of the second page is set to invisible mode. The second page is the jump page of the first page, and the first page includes the first view.

[0125] Specifically, proxy activity components can be pre-created, with page code written within them. When used, the lifecycle of the proxy activity component is driven. The lifecycle of the proxy activity component is identical to that of an Activity, and it can be driven by the application itself, such as the application to which the first page belongs. Figure 6 As shown, the workflow of the proxy activity component mainly includes lifecycle-driven operations, adding the view to the target screen area, and setting the view's display mode to invisible mode. For example, as... Figure 7 As shown, the lifecycle of a fake activity component can include creation, start, launch, pause, stop, and destruction. Fake Activities are implemented by the application itself, and their lifecycle is controlled by the application. This lifecycle can be related to or independent of the system-controlled lifecycle. Code written within the Activity framework can be seamlessly switched to execute within the fake activity component. When creating a fake activity component, a target screen area (Window) is also created for it. A Window represents a region on the screen; only views added to a Window can be actually displayed. The purpose of creating a Window is primarily to simulate the process of a real Activity loading views onto a Window for display, making the view preparation more complete. Without a Window, some functions that depend on the view being displayed will be unusable, leading to incomplete functionality of pre-created pages. For example, the surface used for playing videos only works correctly when the view is actually displayed. A Window represents a region on the screen, with underlying storage space proportional to its area. To minimize the memory footprint of pre-prepared transparent pages, the Window area of ​​the fake activity component should be as small as possible, adjusting to the actual screen size during navigation. By setting the area of ​​the transparent page of the second page to be smaller than the area of ​​the second page, the memory usage of the transparent page of the second page prepared in advance can be reduced.

[0126] Accordingly, in one embodiment, setting the display mode of the transparent page of the second page to an invisible mode in S202 can specifically be: setting the display mode of the view managed by the proxy activity component to an invisible mode. Specifically, the transparency of the view managed by the proxy activity component can be set to transparent or the view can be set to invisible.

[0127] S203. In response to the first object triggering a page jump through the first view, jump to the second page. During the jump to the second page, adjust the size and position of the transparent page of the second page so that the size and position of the adjusted transparent page are the same as the size and position of the second page, and set the display mode of the adjusted transparent page to the visible mode to display the second page.

[0128] Specifically, such as Figure 5 As shown, the operation of triggering page navigation through the first view can be that the first object clicks the first view, and the terminal device responds to this operation by navigating to the second page. Since the transparent page of the second page is created before the page navigation, during the navigation process, the size and position of the transparent page of the second page are adjusted so that the size and position of the adjusted transparent page are the same as those of the second page, and the display mode of the adjusted transparent page is set to visible mode to display the second page. Therefore, during the page navigation process, only the size and position of the transparent page of the second page created before the page navigation need to be adjusted, thereby displaying the content of the navigation page in a shorter time, improving the page navigation speed, achieving a page navigation with less latency, and achieving the effect of being visible immediately upon clicking.

[0129] In one embodiment, during the transition to the second page in S203, the size and position of the transparent page of the second page are adjusted. Specifically, this can be as follows:

[0130] During the transition to the second page, the size and position of the target screen area are adjusted.

[0131] In one embodiment, the jump to the second page in S203 can specifically be as follows:

[0132] S2031. Recycle the active components of the page before the redirection, and create the active components of the page after the redirection.

[0133] S2032. After the startup state of the lifecycle of the active component on the redirected page is executed, the proxy active component is added to the active component on the redirected page, and the view content created by the proxy active component is transferred to the screen area of ​​the active component on the redirected page, so that the active component on the redirected page can control the lifecycle of the proxy active component and the visibility state of the view created by the proxy active component.

[0134] Specifically, the first object triggers a page navigation operation through the first view, such as clicking the first view to trigger a page navigation. When the terminal device detects the page navigation, it reclaims the active component of the page before the navigation (the first page) and simultaneously creates an active component for the page after the navigation (the second page). After the onResume lifecycle event of the active component on the second page is executed, a proxy active component is added to the active component of the second page. The subsequent lifecycle of the proxy active component is controlled by the active component of the second page, which in turn is controlled by the Android system. Furthermore, the view content created by the proxy active component is transferred to the screen area of ​​the active component of the second page, allowing the active component of the second page to control the visibility of the view created by the proxy active component.

[0135] Specifically, for details on how to adjust the size and position of the transparent page of the second page, please refer to [link to relevant documentation]. Figure 4 The descriptions in the illustrated embodiments will not be repeated here.

[0136] The page navigation method provided in this embodiment creates the transparent second page before navigation. During the navigation to the second page, only the size and position of the transparent second page need to be adjusted to display the second page. As a result, the content of the navigation page can be displayed in a short time, improving the speed of page navigation and achieving page navigation with less delay, so that the content can be seen immediately upon clicking.

[0137] Figure 11 This flowchart illustrates a page redirection method provided in an embodiment of this application. This method can be executed by a page redirection device, which can be implemented through software and / or hardware. The page redirection device can be a terminal device. Figure 11 As shown, the method in this embodiment may include:

[0138] S301. In response to the first object triggering the operation to open the first page, display the first page.

[0139] Specifically, the execution subject of the page jump method in this embodiment is the terminal device, the first object is the user of the terminal device, and the first page is a page of a certain application installed and running on the terminal device. This page can be the homepage of the application or other pages of the application.

[0140] S302. If it is determined that the current application's view does not depend on the functionality implemented on the target screen area, then create a proxy activity component, or drive the lifecycle of a pre-created proxy activity component. The proxy activity component is only used to create views, and the views created by the proxy activity component are combined into a transparent page of the second page.

[0141] In this embodiment, compared to Figure 10 In the illustrated embodiment, the created proxy activity component is only used to create views, and there is no need to add the created views to the Window, which can reduce the complexity of the proxy activity component.

[0142] S303. In response to the first object triggering a page jump through the first view, jump to the second page. During the jump to the second page, adjust the size and position of the transparent page of the second page so that the size and position of the adjusted transparent page are the same as the size and position of the second page, and set the display mode of the adjusted transparent page to the visible mode to display the second page.

[0143] Specifically, such as Figure 5 As shown, the operation of triggering page jump through the first view can be that the first object clicks the first view, and the terminal device responds to the operation and jumps to the second page. Since the transparent page of the second page is created before the page jump, during the jump to the second page, the size and position of the transparent page of the second page are adjusted so that the size and position of the adjusted transparent page are the same as the size and position of the second page, and the display mode of the adjusted transparent page is set to visible mode to display the second page.

[0144] In one embodiment, the jump to the second page in S303 can specifically be as follows:

[0145] S3031. Recycle the active components of the page before the jump, and create the active components of the page after the jump.

[0146] S3032. After the startup state of the lifecycle of the active component on the redirected page is executed, the proxy active component is added to the active component on the redirected page, and the view content created by the proxy active component is transferred to the screen area of ​​the active component on the redirected page, so that the active component on the redirected page can control the lifecycle of the proxy active component and the visibility state of the view created by the proxy active component.

[0147] Specifically, the first object triggers a page navigation operation through the first view, such as clicking the first view to trigger a page navigation. When the terminal device detects the page navigation, it reclaims the active component of the page before the navigation (the first page) and simultaneously creates an active component for the page after the navigation (the second page). After the onResume lifecycle event of the active component on the second page is executed, a proxy active component is added to the active component of the second page. The subsequent lifecycle of the proxy active component is controlled by the active component of the second page, which in turn is controlled by the Android system. Furthermore, the view content created by the proxy active component is transferred to the screen area of ​​the active component of the second page, allowing the active component of the second page to control the visibility of the view created by the proxy active component.

[0148] Specifically, for details on how to adjust the size and position of the transparent page of the second page, please refer to [link to relevant documentation]. Figure 4 The descriptions in the illustrated embodiments will not be repeated here.

[0149] The page navigation method provided in this embodiment, since the transparent second page is created before the navigation, only requires adjusting the size and position of the transparent second page during the navigation process to display the second page. This allows the content of the navigation page to be displayed in a shorter time, improving navigation speed and achieving a page navigation with minimal latency, resulting in a click-to-see effect. Furthermore, since the proxy activity component created when creating the transparent second page is only used to create the view, it is not necessary to add the created view to the Window, reducing the complexity of the proxy activity component. This method is suitable for scenarios where the application's view does not rely on the on-screen display of the target screen area for functionality.

[0150] Figure 12 This flowchart illustrates a page redirection method provided in an embodiment of this application. This method can be executed by a page redirection device, which can be implemented through software and / or hardware. The page redirection device can be a terminal device. Figure 12 As shown, the method in this embodiment may include:

[0151] S401. In response to the operation of opening the first page triggered by the first object, display the first page.

[0152] Specifically, the execution subject of the page jump method in this embodiment is the terminal device, the first object is the user of the terminal device, and the first page is a page of a certain application installed and running on the terminal device. This page can be the homepage of the application or other pages of the application.

[0153] S402. Create a preset part module for the second page on the first page. The second page is a jump page to the first page. The first page includes the first view.

[0154] Specifically Figure 1 A diagram illustrating the composition of a page held by an Activity, as shown below. Figure 1 As shown, the Activity holds pages including view group A, view group B, and view group C. In this embodiment, for example, the preset part module can be any one of view group A, view group B, and view group C. For example, if the preset part module is view group A, then view group A is created in the composition of the second page on the first page.

[0155] S403. In response to the operation of the first object triggering page jump through the first view, jump to the second page. When the jump to the second page is completed, reclaim the active component of the page before the jump, and create the active component of the page after the jump. After the startup state of the life cycle of the active component of the page after the jump is executed, add the preset part of the second page that has been created to the active component of the page after the jump.

[0156] In this embodiment, by creating a preset part of the second page in advance before the page jump, and adding the preset part of the second page to the active components of the page after the jump is completed, the page jump time can be reduced, the content of the jump page can be displayed in a shorter time, and the page jump speed can be improved.

[0157] Figure 13 This is a schematic diagram of the structure of a page navigation device provided in an embodiment of this application, as shown below. Figure 13 As shown, the page redirection device may include: a display module 11, a processing module 12, and a page redirection module 13.

[0158] Among them, the display module 11 is used to display the first page in response to the first object triggering the operation of opening the first page;

[0159] The processing module 12 is used to create a transparent page of the second page on the first page, and set the display mode of the transparent page of the second page to invisible mode. The first page includes a first view, the second page is a jump page of the first page, and the area of ​​the transparent page of the second page is smaller than the area of ​​the second page.

[0160] The page jump module 13 is used to respond to the operation of the first object triggering page jump through the first view, jump to the second page, and during the jump to the second page, adjust the size and position of the transparent page of the second page so that the size and position of the adjusted transparent page are the same as the size and position of the second page, and set the display mode of the adjusted transparent page to the visible mode to display the second page.

[0161] In one embodiment, the processing module 12 is used to:

[0162] Create a proxy activity component and create a target screen area for the proxy activity component, the area of ​​which is smaller than the area of ​​the second page;

[0163] Define the target screen area as the transparent page of the second page;

[0164] or,

[0165] Drive the lifecycle of a pre-created proxy activity component. The proxy activity component pre-creates a target screen area, the area of ​​which is smaller than the area of ​​the second page.

[0166] Define the target screen area as the transparent page of the second page.

[0167] In one embodiment, the processing module 12 is used to:

[0168] Set the display mode of the view managed by the agent activity component to invisible mode.

[0169] In one embodiment, the page redirection module 13 is used to:

[0170] During the transition to the second page, the size and position of the target screen area are adjusted.

[0171] In one embodiment, the processing module 12 is used to:

[0172] If it is determined that the current application's view does not depend on the functionality implemented on the target screen area, then a proxy activity component is created, or the lifecycle of a pre-created proxy activity component is driven, which is only used to create the view.

[0173] The views created by the agent activity component are combined into a transparent page for the second page.

[0174] In one embodiment, the page redirection module 13 is used to:

[0175] Recycle the active components on the page before the redirect, and create the active components on the page after the redirect;

[0176] After the startup state of the lifecycle of the active component on the redirected page is executed, the proxy active component is added to the active component on the redirected page, and the view content created by the proxy active component is transferred to the screen area of ​​the active component on the redirected page, so that the active component on the redirected page can control the lifecycle of the proxy active component and the visibility state of the view created by the proxy active component.

[0177] In one embodiment, the page redirection module 13 is used to:

[0178] Get the dimensions and coordinates of the four vertices of the transparent page of the second page;

[0179] Based on the coordinates of the four vertices of the transparent page of the second page and the coordinates of the four vertices of the second page, the position of the transparent page of the second page is adjusted to obtain the position-adjusted transparent page. One vertex of the position-adjusted transparent page is aligned with one vertex of the second page.

[0180] Based on the dimensions of the transparent page on the second page and the dimensions of the second page, the size of the transparent page after the position adjustment is adjusted to obtain the adjusted transparent page.

[0181] In one embodiment, the page redirection module 13 is used to:

[0182] Select a first target vertex from the four vertices of the transparent page of the second page, and determine the vertex corresponding to the first target vertex from the four vertices of the second page as the second target vertex;

[0183] Based on the coordinates of the first target vertex and the second target vertex, the first target vertex is moved to a position aligned with the second target vertex.

[0184] In one embodiment, the page view distribution of the transparent page of the second page is the same as the page view distribution of the second page.

[0185] It should be understood that the device embodiments and method embodiments can correspond to each other, and similar descriptions can be found in the method embodiments. To avoid repetition, further details are omitted here. Specifically, Figure 13 The apparatus shown can execute the method embodiment corresponding to the electronic device, and the foregoing and other operations and / or functions of each module in the apparatus are for implementing the method embodiment corresponding to the electronic device, which will not be described in detail here for the sake of brevity.

[0186] The page navigation device of this application embodiment has been described above from the perspective of functional modules in conjunction with the accompanying drawings. It should be understood that this functional module can be implemented in hardware, in software instructions, or in a combination of hardware and software modules. Specifically, the steps of the method embodiments in this application can be completed by integrated logic circuits in the processor's hardware and / or by software instructions. The steps of the method disclosed in this application embodiment can be directly manifested as execution by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. Optionally, the software module can be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps in the above method embodiments.

[0187] Figure 14 This is a schematic block diagram of the electronic device provided in the embodiments of this application.

[0188] like Figure 14 As shown, the electronic device may include:

[0189] The system includes a memory 710 and a processor 720. The memory 710 stores computer programs and transfers the program code to the processor 720. In other words, the processor 720 can retrieve and run the computer program from the memory 710 to implement the methods described in the embodiments of this application.

[0190] For example, the processor 720 can be used to execute the above-described method embodiments according to instructions in the computer program.

[0191] In some embodiments of this application, the processor 720 may include, but is not limited to:

[0192] General-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0193] In some embodiments of this application, the memory 710 includes, but is not limited to:

[0194] Volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).

[0195] In some embodiments of this application, the computer program may be divided into one or more modules, which are stored in the memory 710 and executed by the processor 720 to complete the method provided in this application. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the electronic device.

[0196] like Figure 14 As shown, the electronic device may further include:

[0197] Transceiver 730, which can be connected to processor 720 or memory 710.

[0198] The processor 720 can control the transceiver 730 to communicate with other devices; specifically, it can send information or data to other devices or receive information or data sent by other devices. The transceiver 730 may include a transmitter and a receiver. The transceiver 730 may further include antennas, and the number of antennas may be one or more.

[0199] It should be understood that the various components in the electronic device are connected through a bus system, which includes a data bus, a power bus, a control bus, and a status signal bus.

[0200] This application also provides a computer storage medium storing a computer program thereon, which, when executed by a computer, enables the computer to perform the methods of the above-described method embodiments. Alternatively, this application also provides a computer program product containing instructions that, when executed by a computer, cause the computer to perform the methods of the above-described method embodiments.

[0201] When implemented using software, it can be implemented entirely or partially as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0202] Those skilled in the art will recognize that the modules and algorithm steps of the various examples 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 implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of the embodiments of this application.

[0203] In the embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or modules may be electrical, mechanical, or other forms.

[0204] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. For example, the functional modules in the various embodiments of this application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0205] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the embodiments of this application should be included within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.

Claims

1. A page redirection method, characterized in that, include: In response to the first object triggering the operation to open the first page, display the first page; Create a transparent page of the second page on the first page, and set the display mode of the transparent page of the second page to invisible mode. The first page includes a first view, and the second page is a jump page of the first page. The area of ​​the transparent page of the second page is smaller than the area of ​​the second page. In response to the first object triggering a page jump through the first view, the system jumps to the second page. During the jump to the second page, the size and position of the transparent page of the second page are adjusted so that the size and position of the adjusted transparent page are the same as the size and position of the second page. The display mode of the adjusted transparent page is set to visible mode to display the second page.

2. The method according to claim 1, characterized in that, Creating a transparent second page on the first page includes: Create a proxy activity component and create a target screen area for the proxy activity component, the area of ​​the target screen area being smaller than the area of ​​the second page; The target screen area is determined as the transparent page of the second page; or, Drive the lifecycle of a pre-created proxy activity component, which pre-creates a target screen area, the area of ​​which is smaller than the area of ​​the second page; The target screen area is determined as the transparent page of the second page.

3. The method according to claim 2, characterized in that, Setting the display mode of the transparent page of the second page to invisible mode includes: Set the display mode of the view managed by the agent activity component to invisible mode.

4. The method according to claim 2, characterized in that, During the process of navigating to the second page, the size and position of the transparent page of the second page are adjusted, including: During the process of navigating to the second page, the size and position of the target screen area are adjusted.

5. The method according to claim 1, characterized in that, Creating a transparent second page on the first page includes: If it is determined that the current application's view does not depend on the functionality implemented on the target screen area, then a proxy activity component is created, or the lifecycle of a pre-created proxy activity component is driven, which is only used to create the view; The views created by the agent activity component are combined into a transparent page of the second page.

6. The method according to claim 2 or 5, characterized in that, The jump to the second page includes: Recycle the active components on the page before the redirect, and create the active components on the page after the redirect; After the startup state of the lifecycle of the active component on the page after navigation is executed, the proxy active component is added to the active component on the page after navigation, and the view content created by the proxy active component is transferred to the screen area of ​​the active component on the page after navigation, so that the active component on the page after navigation controls the lifecycle of the proxy active component and the visibility state of the view created by the proxy active component.

7. The method according to claim 1, characterized in that, The process of adjusting the size and position of the transparent page of the second page includes: Obtain the dimensions of the transparent page of the second page and the coordinates of its four vertices, as well as the dimensions of the second page and the coordinates of its four vertices; Based on the coordinates of the four vertices of the transparent page of the second page and the coordinates of the four vertices of the second page, the position of the transparent page of the second page is adjusted to obtain the position-adjusted transparent page, wherein one vertex of the position-adjusted transparent page is aligned with one vertex of the second page. Based on the size of the transparent page of the second page and the size of the second page, the size of the transparent page after the position adjustment is adjusted to obtain the adjusted transparent page.

8. The method according to claim 7, characterized in that, The step of adjusting the position of the transparent page of the second page based on the coordinates of the four vertices of the transparent page of the second page and the coordinates of the four vertices of the second page includes: Select a first target vertex from the four vertices of the transparent page of the second page, and determine the vertex of the four vertices of the second page that corresponds to the first target vertex as the second target vertex; Based on the coordinates of the first target vertex and the coordinates of the second target vertex, the first target vertex is moved to a position aligned with the second target vertex.

9. The method according to claim 1, characterized in that, The page view distribution of the transparent page of the second page is the same as that of the second page.

10. A page navigation device, characterized in that, include: The display module is used to display the first page in response to the first object triggering the operation of opening the first page; The processing module is used to create a transparent page of the second page on the first page, and set the display mode of the transparent page of the second page to an invisible mode. The first page includes a first view, the second page is a jump page of the first page, and the area of ​​the transparent page of the second page is smaller than the area of ​​the second page. The page navigation module is used to respond to the operation of the first object triggering page navigation through the first view, and to navigate to the second page. During the navigation to the second page, the size and position of the transparent page of the second page are adjusted so that the size and position of the adjusted transparent page are the same as the size and position of the second page, and the display mode of the adjusted transparent page is set to visible mode to display the second page.

11. An electronic device, characterized in that, include: A processor and a memory, the memory being used to store a computer program, the processor being used to invoke and run the computer program stored in the memory to perform the method of any one of claims 1-9.

12. A computer-readable storage medium, characterized in that, Includes instructions that, when executed on a computer program, cause the computer to perform the method as described in any one of claims 1-9.

13. A computer program product containing instructions, characterized in that, When the instructions are executed on a computer, the computer performs the method according to any one of claims 1-9.