CN110780831A - View switching method and device, computer equipment and storage medium - Google Patents

View switching method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110780831A
CN110780831A CN201910905917.9A CN201910905917A CN110780831A CN 110780831 A CN110780831 A CN 110780831A CN 201910905917 A CN201910905917 A CN 201910905917A CN 110780831 A CN110780831 A CN 110780831A
Authority
CN
China
Prior art keywords
view
controller
reuse
container
switching operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910905917.9A
Other languages
Chinese (zh)
Other versions
CN110780831B (en
Inventor
陈卓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Kunying Technology Co ltd
Original Assignee
Yi - Lizi Network Technology (china) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yi - Lizi Network Technology (china) Co Ltd filed Critical Yi - Lizi Network Technology (china) Co Ltd
Priority to CN201910905917.9A priority Critical patent/CN110780831B/en
Publication of CN110780831A publication Critical patent/CN110780831A/en
Application granted granted Critical
Publication of CN110780831B publication Critical patent/CN110780831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a view switching method, a view switching device, computer equipment and a storage medium, wherein a first view switching operation generated in an application interface is monitored; if the first view switching operation is monitored, searching a first controller waiting for reuse from a reuse view container, and placing the searched first controller into a visible view container; acquiring data to be displayed corresponding to the first view switching operation through a first controller in the visible view container; and displaying a corresponding target view in the application interface according to the acquired data needing to be displayed. By creating the reuse view container and repeatedly using the controllers in the reuse view container for display, the memory burst caused by creating a plurality of controllers in the traditional technology is avoided, and the technical problem of unsmooth running of the application program is solved.

Description

View switching method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for switching views, a computer device, and a storage medium.
Background
Applications run in electronic devices and implement various functions by displaying views on the screen of the electronic device or graphical interfaces for users to trigger operational events. The running application often holds several views simultaneously, and the view displayed on the screen jumps from the current view to another corresponding view according to the switching operation triggered by the user, and also jumps back to the current view or the next view according to the switching operation triggered again by the user.
In the conventional technology, when an application running needs to display multiple views in one interface, a corresponding number of multiple controllers need to be created, which inevitably causes memory explosion, thereby causing the application program to run unsmooth.
Disclosure of Invention
Based on this, it is necessary to provide a view switching method, apparatus, computer device and storage medium for solving the technical problem in the conventional technology that the creation of multiple controllers in one interface causes memory explosion and causes the application program to run unsmooth.
A method of view switching, the method comprising:
monitoring a first view switching operation in an application interface;
if the first view switching operation is monitored, searching a first controller waiting for reuse from a reuse view container, and placing the searched first controller into a visible view container;
acquiring data to be displayed corresponding to the first view switching operation through a first controller in the visible view container;
and displaying a corresponding target view in the application interface according to the acquired data needing to be displayed.
In one embodiment, the searching for the first controller waiting for reuse from the reuse view container and placing the searched first controller into the visible view container includes:
determining whether a first controller waiting for reuse exists in the reuse view container;
and if the first controller waiting for reuse exists, searching the first controller waiting for reuse from the reuse view container, and placing the searched first controller into the visible view container.
In one embodiment, after the determining whether the reuse view container has a first controller waiting for reuse, the method further comprises:
if no first controller waiting for reuse exists, creating a second controller and putting the second controller into the visible view container;
and acquiring data to be displayed corresponding to the first view switching operation through a second controller in the visible view container.
In one embodiment, after the placing the located first controller into the visible view container, the method further includes:
and deleting the searched first controller waiting for reuse from the reuse view container.
In one embodiment, after the displaying the corresponding target view in the application interface according to the acquired data required to be displayed, the method further includes:
monitoring a second view switching operation occurring in the application interface;
judging whether the target view partially appears in the application interface;
and if the second view switching operation is monitored and the target view part appears in the application interface, keeping the first controller in the visible view container.
In one embodiment, the method further comprises:
and if the second view switching operation is monitored and the target view disappears in the application interface, deleting the first controller from the visible view container.
In one embodiment, the method further comprises:
replacing the first controller in the reuse view container while the first controller is deleted from the visible view container.
A view switching apparatus, the apparatus comprising:
the switching operation monitoring module is used for monitoring first view switching operation generated in the application interface;
the controller searching module is used for searching a first controller waiting for reuse from the reuse view container if the first view switching operation is monitored, and placing the searched first controller into the visible view container;
the display data acquisition module is used for acquiring data to be displayed corresponding to the first view switching operation through a first controller in the visible view container;
and the target view display module is used for displaying the corresponding target view in the application interface according to the acquired data needing to be displayed.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any of the above embodiments when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any of the above embodiments.
The view switching method, the view switching device, the computer equipment and the storage medium monitor the first view switching operation generated in the application interface; if the first view switching operation is monitored, searching a first controller waiting for reuse from a reuse view container, and placing the searched first controller into a visible view container; acquiring data to be displayed corresponding to the first view switching operation through a first controller in the visible view container; and displaying a corresponding target view in the application interface according to the acquired data needing to be displayed. By creating the reuse view container and repeatedly using the controllers in the reuse view container for display, the memory burst caused by creating a plurality of controllers in the traditional technology is avoided, and the technical problem of unsmooth running of the application program is solved.
Drawings
FIG. 1 is a diagram of an application environment of a view switching method according to an embodiment;
FIG. 2 is a flow chart illustrating a method for view switching according to an embodiment;
FIG. 3 is a flow chart illustrating a method for view switching according to an embodiment;
FIG. 4 is a flowchart illustrating a method for view switching according to one embodiment;
FIG. 5 is a flowchart illustrating a method for view switching according to an embodiment;
FIG. 6 is a flowchart illustrating a method for view switching according to one embodiment;
FIG. 7 is a block diagram showing the structure of a view switching apparatus according to an embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The application provides a view switching method which can be applied to the application environment shown in fig. 1. The terminal 110 performs data interaction with the server 120 through a network, and the data interaction mode between the terminal 110 and the server 120 is not limited in the present application. The terminal 110 runs an application program and displays an interface of the application program, and a plurality of views are required to be displayed in the interface, and the views respectively correspond to corresponding controllers. The terminal 110 monitors a first view switching operation occurring in the application interface; and if the first view switching operation is monitored, searching the first controller waiting for reuse from the reuse view container, and placing the searched first controller into the visible view container. Through the first controller in the visible view container, the terminal 110 obtains data to be displayed corresponding to the first view switching operation; and displaying the corresponding target view in the application interface according to the acquired data needing to be displayed. The terminal 110 may obtain data to be displayed from the local cache, or may obtain data to be displayed from the server 120. Specifically, a view switching request is initiated to the server 120 through the first view switching operation terminal 110, the server 120 receives the view switching request, the view switching request carries display requirement information corresponding to the first view switching operation, and data to be displayed corresponding to the first view switching operation is returned to the terminal 110 through the first controller server 120 in the visible view container according to the display requirement information, wherein the terminal 110 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 120 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 2, a view switching method is provided, which is described by taking the method as an example applied to the terminal in fig. 1, and includes the following steps:
s210, monitoring first view switching operation in the application interface.
In which a running application needs to display multiple views in the current application interface. The first view switching operation is an operation triggered by a view that the user desires to show in the application interface and is not currently displayed. The first view switching operation may be an operation of triggering a corresponding button in the application interface, or a triggering operation such as a left-right slide or an up-down slide that is issued on the application interface. Specifically, whether a trigger operation occurs in the application interface is monitored, and if the trigger operation occurs in the application interface, whether the trigger operation is a first view switching operation is determined, that is, the first view switching operation occurring in the application interface is monitored.
S220, if the first view switching operation is monitored, searching a first controller waiting for reuse from the reuse view container, and placing the searched first controller into the visible view container.
The reuse view container refers to a view container for accommodating a controller waiting for reuse, and a view corresponding to the controller in the reuse view container is not currently shown in the application interface. And controlling a target view which is expected to be displayed in the application interface by the user through the first controller, and acquiring data corresponding to the target view from the server or the local cache. The visible view container refers to a view container for accommodating a controller corresponding to a current visible view in an application interface.
Specifically, the running application needs to display multiple views in the current application interface without creating corresponding multiple controllers. But when the first view switching operation in the application interface is monitored, the first controller waiting for reuse is sought to be searched from the reuse view container created in advance. The first controller found from the reuse view container is placed in the visible view container. In this embodiment, because a plurality of controllers corresponding to a plurality of views are not created, the consumption of memory is reduced, and the running smoothness of the application program is improved.
And S230, acquiring data needing to be displayed corresponding to the first view switching operation through a first controller in the visible view container.
The controller controls one view displayed in the application interface, and the content of the view to be shown by the controller is determined by the property of the control triggered when the user sends out the first view switching operation. Specifically, a user triggers a certain control of the application program interface to trigger a first view switching operation, the terminal may send a view switching request to the server according to the attribute of the triggered control, and the first view switching operation corresponds to the triggered control, so that the view switching request carries display requirement information corresponding to the first view switching operation. Through the first controller in the visible view container, the server searches the data to be displayed corresponding to the first view switching operation according to the display requirement information, and returns the data to be displayed corresponding to the first view switching operation to the terminal, so that the terminal acquires the data to be displayed corresponding to the first view switching operation. Or when the user triggers a certain control of the application program interface to trigger the first view switching operation, the terminal can acquire the data to be displayed corresponding to the first view switching operation from the local cache through the first controller in the visible view container.
And S240, displaying the corresponding target view in the application interface according to the acquired data needing to be displayed.
The data to be displayed refers to content data corresponding to a target view which a user desires to show in the application interface. Specifically, the terminal acquires data to be displayed corresponding to the first view switching operation, and displays a corresponding target view in an application interface according to the data to be displayed, so as to achieve the purpose of interacting with a user.
In the embodiment, a first view switching operation occurring in an application interface is monitored; if the first view switching operation is monitored, searching a first controller waiting for reuse from the reuse view container, and placing the searched first controller into the visible view container; acquiring data to be displayed corresponding to the first view switching operation through a first controller in the visible view container; and displaying the corresponding target view in the application interface according to the acquired data needing to be displayed. By creating the reuse view container and repeatedly using the controllers in the reuse view container for display, the memory burst caused by creating a plurality of controllers in the traditional technology is avoided, and the technical problem of unsmooth running of the application program is solved.
In one embodiment, as shown in fig. 3, if a first controller waiting for reuse is searched from the reuse view container and the searched first controller is placed in the visible view container, the method includes:
s310, judging whether a first controller waiting for reuse exists in the reuse view container;
s320, if the first controller waiting for reuse exists, searching the first controller waiting for reuse from the reuse view container, and placing the searched first controller into the visible view container.
Specifically, the running application program needs to display a plurality of views in the current application interface, and one view corresponds to one controller, so as to avoid memory explosion caused by creating the controller, and in this embodiment, a reuse view container is created in advance. When monitoring that the application interface has a first view switching operation, judging whether the reuse view container has a first controller, if so, indicating that the first controller can be reused, namely, the reuse view container has a first controller waiting for reuse, and then, monitoring that the first view switching operation does not need to create a new controller, but putting the first controller searched from the reuse view container into a visible view container so as to be used for displaying a corresponding target view in the application interface.
In one embodiment, as shown in fig. 4, after determining whether there is a first controller waiting for reuse in the reuse view container, the method further comprises:
and S410, if no first controller waiting for reuse exists, creating a second controller and putting the second controller into the visible view container.
Specifically, when monitoring that the application interface generates a first view switching operation, judging whether the reuse view container has a first controller, and if not, indicating that no reusable first controller exists. A second controller is created and placed within the visible view container. The view content to be displayed by the second controller is also determined by the attribute of the control triggered when the user sends out the first view switching operation.
And S420, acquiring data needing to be displayed corresponding to the first view switching operation through a second controller in the visible view container.
Specifically, a user triggers a certain control of an application program interface to trigger a first view switching operation, the first view switching operation corresponds to the triggered control, and a terminal can send a view switching request to a server according to the attribute of the triggered control, where the view switching request carries display requirement information corresponding to the first view switching operation. And searching the data to be displayed corresponding to the first view switching operation by the server according to the display requirement information through a second controller in the visible view container, and returning the data to be displayed corresponding to the first view switching operation to the terminal, so that the terminal acquires the data to be displayed corresponding to the first view switching operation. Or, the terminal may obtain, from the local cache, data to be displayed corresponding to the first view switching operation through the second controller in the visible view container.
In this embodiment, if the reuse view container does not have the first controller, the second controller is created and placed in the visible view container, so as to achieve the purpose of interacting with the user. It will be appreciated that when the user again triggers the application interface to switch views, i.e., the second controller is not required to control the view presented by the application interface, the second controller may be placed from the visible view container into the reuse view container to await reuse.
In one embodiment, after placing the found first controller into the visible view container, the method further comprises: and deleting the searched first controller waiting for reuse from the reuse view container.
Specifically, to free memory, after the first controller in the reuse view container is placed into the visible view container, the first controller may be deleted from the reuse view container instead of staying in memory.
In an embodiment, as shown in fig. 5, after displaying a corresponding target view in an application interface according to the acquired data that needs to be displayed, the method further includes the following steps:
s510, monitoring second view switching operation in the application interface;
s520, judging whether a target view partially appears in the application interface;
and S530, if the second view switching operation is monitored and the target view part appears in the application interface, keeping the first controller in the visible view container.
Specifically, when a new target view needs to be presented in the application interface, the user may trigger a second view switching operation in the application interface. When the second view switching operation is triggered, the second view switching operation may last for a period of time, and the original target view may still be partially retained in the application interface during the period of time. For example, when the user slides the application interface left and right or up and down, part of the original target view and part of the new target view appear in the application interface. The visible view container does not delete the first controller but retains the first controller for a period of time during which the second view switching operation continues. When the user needs to view the original target view, the application program interface can quickly display the original target view.
In one embodiment, the method further comprises: and if the second view switching operation is monitored and the target view disappears in the application interface, deleting the first controller from the visible view container.
Specifically, when a new target view needs to be presented in the application interface, the user may trigger a second view switching operation in the application interface. When the second view switching operation is triggered, the original target view disappears in the application interface, which indicates that the application interface does not need to display the original target view, and the first controller for controlling the display of the original target view can be deleted from the visible view container, so that the memory occupied by the controller is reduced.
In one embodiment, the method further comprises: the first controller is replaced in the reuse view container to await reuse while the first controller is removed from the visible view container.
Specifically, if the second view switching operation is monitored, and the original target view disappears in the application interface, the first controller controlling the display of the original target view is deleted from the visible view container, and meanwhile, the first controller is placed into the reuse view container again from the visible view container to wait for reuse. The controller in the visible view container and the controller in the reuse view container are not overlapped, the controller for deleting the visible view container can reduce the memory occupied by the controller, and the controller for replacing the visible view container into the reuse view container reduces the memory burst caused by creating the controller.
In one embodiment, a segment control (UISegmentedControl) is taken as an example to describe the view switching method provided by the present application. A segmented control will typically involve multiple controllers, and the multiple controllers are structurally similar, by creating two view containers, one for the visible view container and one for the reused view container. As shown in fig. 6, the method comprises the steps of:
and S602, monitoring a first view switching operation in the application interface.
S604, judging whether a first controller waiting for reuse exists in the reuse view container;
s606, if the first view switching operation is monitored and the first controller waiting for reuse exists, the first controller waiting for reuse is searched from the reuse view container, and the searched first controller is placed into the visible view container.
And S608, deleting the searched first controller waiting for reuse from the reuse view container.
S610, acquiring data needing to be displayed corresponding to the first view switching operation through a first controller in the visible view container.
And S612, displaying the corresponding target view in the application interface according to the acquired data needing to be displayed.
S614, monitoring second view switching operation in the application interface;
s616, judging whether the target view partially appears in the application interface;
and S618, if the second view switching operation is monitored, and the target view part appears in the application interface, keeping the first controller in the visible view container.
And S620, if the second view switching operation is monitored, and the target view disappears in the application interface, deleting the first controller from the visible view container.
S622, the first controller is placed into the reuse view container again to wait for reuse while the first controller is deleted from the visible view container.
S624, if the first view switching operation is monitored, but the reuse view container does not have the first controller, creating a second controller and putting the second controller into the visible view container;
and S626, acquiring data needing to be displayed corresponding to the first view switching operation through a second controller in the visible view container.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in FIG. 7, a view switching apparatus 700 is provided. The device includes:
a switching operation monitoring module 710, configured to monitor a first view switching operation occurring in an application interface;
a controller searching module 710, configured to search, if a first view switching operation is monitored, a first controller to be reused from the reuse view container, and place the searched first controller in the visible view container;
a display data obtaining module 730, configured to obtain, through a first controller in the visible view container, data to be displayed corresponding to the first view switching operation;
and the target view display module 740 is configured to display a corresponding target view in the application interface according to the acquired data to be displayed.
In one embodiment, the controller lookup module 710 is further configured to determine whether there is a first controller waiting for reuse in the reuse view container; and if the first view switching operation is monitored and the first controller waiting for reuse exists, searching the first controller waiting for reuse from the reuse view container, and placing the searched first controller into the visible view container.
In one embodiment, the apparatus further comprises a controller creation module for creating a second controller and placing into the visible view container if the first view switching operation is monitored but there is no first controller in the reuse view container;
the display data obtaining module 730 is further configured to obtain data to be displayed corresponding to the first view switching operation through the second controller in the visible view container.
In one embodiment, the apparatus further comprises a first deletion module for deleting the found first controller waiting for reuse from the reuse view container.
In one embodiment, the switching operation monitoring module 710 is further configured to monitor a second view switching operation occurring in the application interface;
the judging module is used for judging whether the target view partially appears in the application interface;
and the controller reserving module is used for reserving the first controller in the visible view container if the second view switching operation is monitored and the target view part appears in the application interface.
In one embodiment, the apparatus further comprises a second deletion module configured to delete the first controller from the visible view container if the second view switching operation is monitored and the target view disappears in the application interface.
In one embodiment, the apparatus further comprises a replace module to replace the first controller in the reuse view container to await reuse while the first controller is removed from the visible view container.
For the specific definition of the view switching device, reference may be made to the above definition of the view switching method, which is not described herein again. The various modules in the view switching apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a view switching method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method steps of the above embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the method steps of the above-mentioned embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of view switching, the method comprising:
monitoring a first view switching operation in an application interface;
if the first view switching operation is monitored, searching a first controller waiting for reuse from a reuse view container, and placing the searched first controller into a visible view container;
acquiring data to be displayed corresponding to the first view switching operation through a first controller in the visible view container;
and displaying a corresponding target view in the application interface according to the acquired data needing to be displayed.
2. The method of claim 1, wherein the searching for the first controller waiting for reuse from the reuse view container and placing the searched first controller in the visible view container comprises:
determining whether a first controller waiting for reuse exists in the reuse view container;
and if the first controller waiting for reuse exists, searching the first controller waiting for reuse from the reuse view container, and placing the searched first controller into the visible view container.
3. The method of claim 2, wherein after the determining whether the reuse view container has a first controller waiting for reuse, the method further comprises:
if no first controller waiting for reuse exists, creating a second controller and putting the second controller into the visible view container;
and acquiring data to be displayed corresponding to the first view switching operation through a second controller in the visible view container.
4. The method of claim 1, wherein after placing the located first controller into a visible view container, the method further comprises:
and deleting the searched first controller waiting for reuse from the reuse view container.
5. The method according to claim 1, wherein after the displaying the corresponding target view in the application interface according to the acquired data to be displayed, the method further comprises:
monitoring a second view switching operation occurring in the application interface;
judging whether the target view partially appears in the application interface;
and if the second view switching operation is monitored and the target view part appears in the application interface, keeping the first controller in the visible view container.
6. The method of claim 5, further comprising:
and if the second view switching operation is monitored and the target view disappears in the application interface, deleting the first controller from the visible view container.
7. The method of claim 6, further comprising:
replacing the first controller in the reuse view container while the first controller is deleted from the visible view container.
8. A view switching apparatus, characterized in that the apparatus comprises:
the switching operation monitoring module is used for monitoring first view switching operation generated in the application interface;
the controller searching module is used for searching a first controller waiting for reuse from the reuse view container if the first view switching operation is monitored, and placing the searched first controller into the visible view container;
the display data acquisition module is used for acquiring data to be displayed corresponding to the first view switching operation through a first controller in the visible view container;
and the target view display module is used for displaying the corresponding target view in the application interface according to the acquired data needing to be displayed.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201910905917.9A 2019-09-24 2019-09-24 View switching method, device, computer equipment and storage medium Active CN110780831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910905917.9A CN110780831B (en) 2019-09-24 2019-09-24 View switching method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910905917.9A CN110780831B (en) 2019-09-24 2019-09-24 View switching method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110780831A true CN110780831A (en) 2020-02-11
CN110780831B CN110780831B (en) 2023-09-22

Family

ID=69384266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910905917.9A Active CN110780831B (en) 2019-09-24 2019-09-24 View switching method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110780831B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113504862A (en) * 2021-09-11 2021-10-15 腾讯科技(深圳)有限公司 View data processing method and device, target device and storage medium
CN113946255A (en) * 2021-11-01 2022-01-18 广州繁星互娱信息科技有限公司 Method and device for running list view control and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893095A (en) * 2016-04-13 2016-08-24 海尔优家智能科技(北京)有限公司 Webpage loading method and device
CN106843953A (en) * 2017-01-16 2017-06-13 百融(北京)金融信息服务股份有限公司 Application program transverse direction switching system and method based on iOS system
CN108984245A (en) * 2018-06-20 2018-12-11 武汉斑马快跑科技有限公司 A kind of page switching method and system based on single view controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893095A (en) * 2016-04-13 2016-08-24 海尔优家智能科技(北京)有限公司 Webpage loading method and device
CN106843953A (en) * 2017-01-16 2017-06-13 百融(北京)金融信息服务股份有限公司 Application program transverse direction switching system and method based on iOS system
CN108984245A (en) * 2018-06-20 2018-12-11 武汉斑马快跑科技有限公司 A kind of page switching method and system based on single view controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113504862A (en) * 2021-09-11 2021-10-15 腾讯科技(深圳)有限公司 View data processing method and device, target device and storage medium
CN113946255A (en) * 2021-11-01 2022-01-18 广州繁星互娱信息科技有限公司 Method and device for running list view control and electronic equipment

Also Published As

Publication number Publication date
CN110780831B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
EP3734447B1 (en) Application program processing method, apparatus, storage medium and computer device
EP3567476B1 (en) Application data processing method and apparatus, and storage medium
CN110765379B (en) Method, device, computer equipment and storage medium for loading resource file
CN108848142B (en) Message pushing method and device, computer equipment and storage medium
CN110221889B (en) Page display method and device, electronic equipment and storage medium
WO2022110819A1 (en) Video switching method and apparatus
CN110780939B (en) Method, device, computer equipment and storage medium for loading resource file
CN106873844B (en) Picture viewing method and device
CN113065082A (en) Data processing method and device, electronic equipment and storage medium
CN110780831B (en) View switching method, device, computer equipment and storage medium
CN113051493A (en) Application program display method and device, storage medium and terminal
CN112241498A (en) Page content display method and device, readable storage medium and computer equipment
CN111596911A (en) Method and device for generating control, computer equipment and storage medium
CN111813305A (en) Application program starting method and device
CN111159598A (en) Image browsing method and device, computer equipment and storage medium
CN113641294A (en) Information display method and device, electronic equipment and storage medium
CN111739136B (en) Rendering method, computer device, and storage medium
CN109800039B (en) User interface display method and device, electronic equipment and storage medium
CN111522476A (en) Method, device, computer device and storage medium for monitoring window switching
CN115729544A (en) Desktop component generation method and device, electronic equipment and readable storage medium
CN114564134A (en) Application icon display method and device
CN114115639A (en) Interface control method and device, electronic equipment and storage medium
CN111813303A (en) Text processing method and device, electronic equipment and readable storage medium
WO2021073549A1 (en) Screen rotation picture display method and apparatus, computer device, and storage medium
US11977724B2 (en) Information processing method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 215000 unit 01, floor 11, building 23, No. 388, Xinping street, Suzhou Industrial Park, Suzhou, Jiangsu Province

Applicant after: Yicui network technology (Suzhou) Co.,Ltd.

Address before: 215000 unit 01, floor 11, building 23, No. 388, Xinping street, Suzhou Industrial Park, Suzhou, Jiangsu Province

Applicant before: BIZGO TECHNOLOGY (CHINA) Co.,Ltd.

CB02 Change of applicant information
TA01 Transfer of patent application right

Effective date of registration: 20230308

Address after: 322000 floor 1, building a, No. 288, Yangcun Road, Houjiang street, Yiwu City, Jinhua City, Zhejiang Province (self declaration)

Applicant after: Zhejiang Kunying Technology Co.,Ltd.

Address before: 215000 unit 01, floor 11, building 23, No. 388, Xinping street, Suzhou Industrial Park, Suzhou, Jiangsu Province

Applicant before: Yicui network technology (Suzhou) Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant