CN109189525B - Method, device and equipment for loading sub-page and computer readable storage medium - Google Patents

Method, device and equipment for loading sub-page and computer readable storage medium Download PDF

Info

Publication number
CN109189525B
CN109189525B CN201810908844.4A CN201810908844A CN109189525B CN 109189525 B CN109189525 B CN 109189525B CN 201810908844 A CN201810908844 A CN 201810908844A CN 109189525 B CN109189525 B CN 109189525B
Authority
CN
China
Prior art keywords
option
sub
page
loading
functional
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.)
Active
Application number
CN201810908844.4A
Other languages
Chinese (zh)
Other versions
CN109189525A (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201810908844.4A priority Critical patent/CN109189525B/en
Publication of CN109189525A publication Critical patent/CN109189525A/en
Application granted granted Critical
Publication of CN109189525B publication Critical patent/CN109189525B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

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

Abstract

The invention discloses a method, a device and equipment for loading sub-pages and a computer readable storage medium, and belongs to the field of internet. The method comprises the following steps: when the application client is started, only loading the layout file of the sub-page of the first functional option; loading a layout file of a cut scene of at least one second functional option of the application client, wherein the at least one second functional option is an option other than the first functional option; loading a view display file of a sub-page of the first function option; and when any one second functional option is selected, loading a view display file of the cut scene of the selected second functional option, and loading a layout file of a sub page of the selected second functional option. When the application is started, the invention only loads the layout file and the cut-through animation of the sub-page of the first function option, thereby greatly shortening the time for loading the layout file, reducing the CPU occupancy rate in a short time and ensuring that the client runs more smoothly.

Description

Method, device and equipment for loading sub-page and computer readable storage medium
Technical Field
The present invention relates to the field of internet, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for loading a sub-page.
Background
With the development of network technology, the types and functions of Application software (APP) are more and more abundant, and for the convenience of use of users, the APP main interface can be displayed in a function option mode to provide various functions.
Different function options in the APP main interface correspond to different sub-pages, and usually when the sub-pages are loaded, the layout files and the view display files of the sub-pages need to be loaded, so that the sub-pages can be displayed in the APP main interface. And the terminal finishes the loading of the layout file of the sub-page by adding the layout file into the sub-page switching control. When an application client is started, loading layout files of sub-pages corresponding to all functional options of an APP main interface; when the terminal switches the function options based on the operation of a user, the terminal judges whether each function option is in a selected state, if so, the terminal requests to load a view display file of a sub-page corresponding to the function option, and displays the sub-page corresponding to the selected function option; and if the terminal is in the unselected state, giving up the view display file requesting the terminal to load the sub-page, and not displaying the sub-page corresponding to the unselected functional option.
In the method for loading the sub-pages, when the application client is started, the layout files of the sub-pages corresponding to all the functional options of the APP main interface need to be loaded, and the data structure of the layout files is complex, so that the loading time is long, the CPU occupation is high in a short time, and the page is easy to jam.
Disclosure of Invention
The embodiment of the invention provides a method, a device and equipment for loading a sub-page and a computer readable storage medium, which can solve the problems that the current loading time is long, the CPU occupation is high in a short time and the page is easy to be jammed. The technical scheme is as follows:
in a first aspect, a method for loading a sub-page is provided, where the method includes:
when the application client is started, only loading the layout file of the sub-page of the first functional option;
loading a layout file of a cut scene of at least one second functional option of the application client, wherein the at least one second functional option is an option other than the first functional option;
loading a view display file of a sub-page of the first function option;
and when any one second functional option is selected, loading a view display file of the cut scene of the selected second functional option, and loading a layout file of a sub page of the selected second functional option.
In a second aspect, an apparatus for loading a sub-page is provided, the apparatus comprising:
the first loading module is used for only loading the layout file of the sub-page of the first function option when the application client is started;
the first loading module is further configured to load a layout file of a cut scene of at least one second functional option of the application client, where the at least one second functional option is an option other than the first functional option;
the second loading module is used for loading the view display file of the sub-page of the first function option;
the second loading module is further used for loading the view display file of the cut scene of the selected second functional option when any one of the second functional options is selected;
the first loading module is further used for loading the layout file of the sub-page of the selected second functional option.
In a third aspect, an electronic device for loading a sub-page is provided, where the electronic device includes a processor and a memory, and the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the operations performed by the method for loading a sub-page according to any one of the foregoing possible implementations of the first aspect.
In a fourth aspect, a computer-readable storage medium for loading sub-pages is provided, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the operations performed by the method for loading sub-pages according to any one of the possible implementations of the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
when the application client is started, only the layout file and the cut-through animation with a simpler data structure of the sub-page of the first function option are loaded, and the layout file of the sub-page which is not needed to be displayed temporarily is not loaded, so that the time consumed by loading the layout file is greatly shortened, the CPU occupancy rate in a short time is reduced, and the client runs more smoothly without influencing the normal browsing of a user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for loading a sub-page according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for loading a sub-page according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for loading a sub-page according to an embodiment of the present invention;
fig. 4 is a block diagram of a terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for loading a sub-page according to an embodiment of the present invention. Referring to fig. 1, the embodiment includes:
101. when the application client side is started, only the layout file of the sub-page of the first functional option is loaded.
102. And loading a layout file of the cut scene of at least one second functional option of the application client, wherein the at least one second functional option is an option other than the first functional option.
103. And loading the view display file of the sub-page of the first function option.
104. And when any one second functional option is selected, loading a view display file of the cut scene of the selected second functional option, and loading a layout file of a sub page of the selected second functional option.
According to the method provided by the embodiment of the invention, when the application client is started, only the layout file and the cross scene with a simpler data structure of the sub-page of the first function option are loaded, and the layout file of the sub-page which is not required to be displayed temporarily is not loaded, so that the time consumed by loading the layout file is greatly shortened under the condition that the normal browsing of a user is not influenced, the CPU occupancy rate in a short time is reduced, and the client is enabled to run more smoothly.
In a possible embodiment, the loading, when the application client is started, the layout file of the sub page of the first function option only includes:
and adding the layout file of the sub-page of the first functional option into a sub-page switching control.
In one possible embodiment, the loading the view display file of the sub page of the first function option includes:
and adding the view display file of the sub-page of the first function option into a sub-page switching control.
In a possible implementation manner, after loading the view display file of the cut scene of the selected second function option and loading the layout file of the sub page of the selected second function option when any one of the second function options is selected, the method further includes:
and deleting the view display file and the layout file of the cut scene of the selected second function option.
In one possible implementation, the first function option is a function option preset by the application client.
In one possible embodiment, the method further comprises:
and acquiring the use conditions of the plurality of function options of the application client, and setting the function option with the use condition meeting the preset condition as the first function option.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 2 is a flowchart of a method for loading a sub-page according to an embodiment of the present invention. Referring to fig. 2, the embodiment includes:
201. when the application client side is started, only the layout file of the sub-page of the first function option is added into the sub-page switching control.
The application client may be a specific one, and can implement the process provided by the whole embodiment without affecting the application clients displayed by other application clients on the terminal, or a whole set of running logic may be provided on the terminal, and may be applied to each installed application client.
The first function option is a function option preset by the application client. The presetting means that the background server of the application client performs configuration and is stored in an installation file of the application client in a configuration file form. For example, the first function option may be the first function option on the APP main interface, or may be a function option determined based on the frequency of use of all users of the APP.
Optionally, the first function option may also be a function option preset based on a user usage of the application client. That is, the method may further include the steps of: and acquiring the use conditions of the plurality of function options of the application client, and setting the function option with the use condition meeting the preset condition as the first function option. Based on the analysis of the usage, the personal habits of different users can be determined, so that the loaded first function option can be made to conform to the usage habits of the users. For example, the preset condition is that the sub-page of the function option is used most frequently, or the sub-page of the function option has the longest browsing time.
The layout file of the sub page may be a file for defining a display position, a display form, and the like of each display element on the sub page.
The step 201 is actually a process of loading a layout file of a sub-page of a first function option, and the process may be applied to any application client running in an operating system, for example, for an android system, the form of the function option may be Fragment, and the sub-page switching control may be a ViewPager switching control, that is, the step 201 may be specifically implemented as: fragment of the function option is added to the ViewPager toggle control. It should be noted that, the embodiment of the present invention does not limit what kind of operating system is specifically applied.
For example, an application in the android system has four function options of "focus", "hot", "friend", and "nearby", corresponding to four sub-pages, and when the application client is started, assuming that the "focus" function option is the first function option, only Fragment of the "focus" function option may be added to the ViewPager toggle control.
202. And adding a layout file of the cut scene of at least one second functional option of the application client into the sub-page switching control, wherein the at least one second functional option is an option other than the first functional option.
Wherein the at least one second function option may be all function options on the application client except the first function option. The number of the second function options is not limited by the present invention.
The cut-through animation can be an animation effect with a simple data structure, can also be a progress reading bar in loading, and can display the loading progress of the layout file of the sub-page of the second function option in real time. Each second function option corresponds to a cut scene, and the cut scenes of the second function options can be the same or different.
Step 202 is actually a process of loading a layout file of the cut scene of the at least one second function option, and a specific implementation manner is the same as that of step 201, which is not described herein again.
For the above example, the "hot" function option is the second function option, the cutscene View of the "hot" function option is added to the ViewPager switching control, and since the "hot" function option is not selected, the cutscene is not displayed at this time.
Due to the fact that the layout file and the view display file of the cut-scene animation are loaded, when the terminal switches the function options based on the operation of the user, the cut-scene animation is displayed first, meanwhile, the layout file of the sub-page is loaded, and the page blocking phenomenon which possibly occurs when the function options are switched is avoided.
203. And adding the view display file of the sub-page of the first function option into a sub-page switching control.
The view display file is used for displaying related data of a sub-page, and is usually a list item in an android system, but the embodiment of the invention does not limit the form of the view display file, and the view display file has different implementation methods in different systems.
Step 203 is actually a process of loading the view display file of the sub page of the first function option, and the specific implementation manner is the same as that of step 201, which is not described herein again.
For the above example, the "focus" function option is the first function option, and the view display file of the sub-page of the "focus" function option is added to the ViewPager toggle control.
The step 201 and 203 are processes of loading the application client at the same time when the user starts the application client for the first time, and after the file is loaded, the following process of step 204 may be performed along with the operation of the user.
204. When any one of the second functional options is selected, adding the view display file of the cut scene of the selected second functional option into the sub-page switching control, and adding the layout file of the sub-page of the selected second functional option into the sub-page switching control.
The selected state is determined based on a user operation, and the user operation may be that when the user clicks the second function option, the second function option is determined to be selected; alternatively, when the user slides the screen to the left or right, it may be determined that the function option to the left or right of the first function option is selected.
Step 204 is actually a process of displaying the cutscene of the second function option and loading the layout file of the sub-page of the function option, and the specific implementation manner is the same as that of step 201, which is not described herein again.
For the above example, the sub-page information of each function option corresponds to one Fragment, and when a certain function option is selected, the layout file and the view display file of the Fragment corresponding to the function option are searched from the ViewPager control, so that the sub-page is displayed. When the user slides from the first function option 'focus' to the second function option 'friend', the terminal detects that the 'friend' function option is selected, loads a View display file of the View of the scene passing animation, displays the scene passing animation, and simultaneously adds Fragment of the 'friend' function option into the ViewPager switching control.
205. And deleting the view display file and the layout file of the cut scene of the selected second function option.
Step 205 is specifically implemented as: and deleting the view display file and the layout file of the cutscene of the selected second functional option from the sub-page switching control.
After the sub-page is loaded, the cut-scene animation is reserved, so that the memory is influenced, and a part of CPU resources are continuously occupied, therefore, the screen resources can be more reasonably configured by deleting the cut-scene animation, the CPU occupation ratio is further reduced, and the fluency of the application page is increased.
For the above example, when the user finishes sliding, the scene cut animation is played, the layout file and the view display file of the scene cut animation are deleted, and simultaneously, the Fragment of the "friend" function option is loaded, and the sub-page of the "friend" function option is displayed. That is, the Fragment of the "friend" function option in the ViewPager control will replace the cutscene of the "friend" function option.
According to the method provided by the embodiment of the invention, when the application client is started, only the layout file and the cross scene with a simpler data structure of the sub-page of the first function option are loaded, and the layout file of the sub-page which is not required to be displayed temporarily is not loaded, so that the time consumed by loading the layout file is greatly shortened under the condition that the normal browsing of a user is not influenced, the CPU occupancy rate in a short time is reduced, and the client is enabled to run more smoothly. Furthermore, the loaded cut scene animation can be deleted after the sub-page display is finished, and the memory occupied by the cut scene animation is released, so that the client runs more smoothly, and the user experience is further optimized.
Fig. 3 is a schematic structural diagram of an apparatus for loading a sub-page according to an embodiment of the present invention. Referring to fig. 3, the embodiment includes:
the first loading module 301 is configured to, when the application client is started, only load the layout file of the sub page of the first function option;
the first loading module 301 is further configured to load a layout file of a cut scene of at least one second functional option of the application client, where the at least one second functional option is an option other than the first functional option;
a second loading module 302, configured to load a view display file of a sub-page of the first function option;
the second loading module 302 is further configured to, when any one of the second function options is selected, load a view display file of a cut scene of the selected second function option;
the first loading module 301 is further configured to load a layout file of a sub-page of the selected second function option.
According to the device provided by the embodiment of the invention, when the application client is started, only the layout file and the cross scene with a simpler data structure of the sub-page of the first function option are loaded, and the layout file of the sub-page which is not required to be displayed temporarily is not loaded, so that the time consumed by loading the layout file is greatly shortened under the condition that the normal browsing of a user is not influenced, the CPU occupancy rate in a short time is reduced, and the client is enabled to run more smoothly.
In one possible implementation, the first loading module 301 is configured to add the layout file of the sub-page and cut scene of the first functional option and the at least one second functional option to a sub-page switching control.
In one possible implementation, the second loading module 302 is configured to add the view display files of the sub-page and the cut scene of the first functional option and the at least one second functional option to a sub-page switching control.
In one possible implementation, based on the apparatus composition of fig. 3, the apparatus further includes:
and the deleting module is used for deleting the view display file and the layout file of the cut scene of the selected second function option.
In one possible implementation manner, the first function option is a function option preset by the application client.
In one possible implementation, based on the apparatus composition of fig. 3, the apparatus further includes:
the acquisition module is used for acquiring the use conditions of a plurality of functional options of the application client;
and the setting module is used for setting the function option of which the use condition meets the preset condition as the first function option.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
It should be noted that: in the apparatus for loading a sub-page provided in the foregoing embodiment, when the sub-page is loaded, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for loading a sub-page and the method for loading a sub-page provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
Fig. 4 is a block diagram of a terminal according to an embodiment of the present invention. The terminal 400 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The terminal 400 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
Generally, the terminal 400 includes: a processor 401 and a memory 402.
Processor 401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 401 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 401 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 401 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 402 may include one or more computer-readable storage media, which may be non-transitory. Memory 402 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 402 is used to store at least one instruction for execution by processor 401 to implement the method of loading a sub-page provided by method embodiments herein.
In some embodiments, the terminal 400 may further optionally include: a peripheral interface 403 and at least one peripheral. The processor 401, memory 402 and peripheral interface 403 may be connected by bus or signal lines. Each peripheral may be connected to the peripheral interface 403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 404, touch screen display 405, camera 406, audio circuitry 407, positioning components 408, and power supply 409.
The peripheral interface 403 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 401 and the memory 402. In some embodiments, processor 401, memory 402, and peripheral interface 403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 401, the memory 402 and the peripheral interface 403 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 404 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 404 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 404 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 404 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 404 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 405 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 405 is a touch display screen, the display screen 405 also has the ability to capture touch signals on or over the surface of the display screen 405. The touch signal may be input to the processor 401 as a control signal for processing. At this point, the display screen 405 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 405 may be one, providing the front panel of the terminal 400; in other embodiments, the display screen 405 may be at least two, respectively disposed on different surfaces of the terminal 400 or in a folded design; in still other embodiments, the display 405 may be a flexible display disposed on a curved surface or a folded surface of the terminal 400. Even further, the display screen 405 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The Display screen 405 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 406 is used to capture images or video. Optionally, camera assembly 406 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 406 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 401 for processing, or inputting the electric signals to the radio frequency circuit 404 for realizing voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 400. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 401 or the radio frequency circuit 404 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 407 may also include a headphone jack.
The positioning component 408 is used to locate the current geographic position of the terminal 400 for navigation or LBS (Location Based Service). The Positioning component 408 may be a Positioning component based on the GPS (Global Positioning System) of the united states, the beidou System of china, the graves System of russia, or the galileo System of the european union.
The power supply 409 is used to supply power to the various components in the terminal 400. The power source 409 may be alternating current, direct current, disposable or rechargeable. When power source 409 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 400 also includes one or more sensors 410. The one or more sensors 410 include, but are not limited to: acceleration sensor 411, gyro sensor 412, pressure sensor 413, fingerprint sensor 414, optical sensor 415, and proximity sensor 416.
The acceleration sensor 411 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 400. For example, the acceleration sensor 411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 401 may control the touch display screen 405 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 411. The acceleration sensor 411 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 412 may detect a body direction and a rotation angle of the terminal 400, and the gyro sensor 412 may cooperate with the acceleration sensor 411 to acquire a 3D motion of the terminal 400 by the user. From the data collected by the gyro sensor 412, the processor 401 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 413 may be disposed on a side bezel of the terminal 400 and/or a lower layer of the touch display screen 405. When the pressure sensor 413 is disposed on the side frame of the terminal 400, a user's holding signal to the terminal 400 can be detected, and the processor 401 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 413. When the pressure sensor 413 is disposed at the lower layer of the touch display screen 405, the processor 401 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 405. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 414 is used for collecting a fingerprint of the user, and the processor 401 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 414, or the fingerprint sensor 414 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 401 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 414 may be disposed on the front, back, or side of the terminal 400. When a physical key or vendor Logo is provided on the terminal 400, the fingerprint sensor 414 may be integrated with the physical key or vendor Logo.
The optical sensor 415 is used to collect the ambient light intensity. In one embodiment, the processor 401 may control the display brightness of the touch display screen 405 based on the ambient light intensity collected by the optical sensor 415. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 405 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 405 is turned down. In another embodiment, the processor 401 may also dynamically adjust the shooting parameters of the camera assembly 406 according to the ambient light intensity collected by the optical sensor 415.
A proximity sensor 416, also known as a distance sensor, is typically disposed on the front panel of the terminal 400. The proximity sensor 416 is used to collect the distance between the user and the front surface of the terminal 400. In one embodiment, when the proximity sensor 416 detects that the distance between the user and the front surface of the terminal 400 gradually decreases, the processor 401 controls the touch display screen 405 to switch from the bright screen state to the dark screen state; when the proximity sensor 416 detects that the distance between the user and the front surface of the terminal 400 gradually becomes larger, the processor 401 controls the touch display screen 405 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 4 is not intended to be limiting of terminal 400 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Fig. 5 is a schematic structural diagram of a computer device 500 according to an embodiment of the present invention, where the computer device 500 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 501 and one or more memories 502, where the memory 502 stores at least one instruction, and the at least one instruction is loaded and executed by the processors 501 to implement the methods provided by the above method embodiments. Certainly, the computer device may further have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and the computer device may further include other components for implementing the functions of the device, which is not described herein again.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, is also provided that includes instructions executable by a processor in a terminal to perform the method of loading sub-pages in the above-described embodiments. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (14)

1. A method of loading a sub-page, the method comprising:
when the application client is started, only loading the layout file of the sub-page of the first function option of the main interface;
loading a layout file of a cut scene of at least one second functional option of the application client, and not loading a layout file of a sub-page of the at least one second functional option, wherein the at least one second functional option is an option other than the first functional option;
loading a view display file of a sub-page of the first function option;
when any second functional option of the main interface is selected to switch the functional options, loading a view display file of the live action of the selected second functional option, and loading a layout file of a sub-page of the selected second functional option.
2. The method of claim 1, wherein loading only the layout file of the sub-page of the first functional option when the application client is started comprises:
and adding the layout file of the sub-page of the first functional option into a sub-page switching control.
3. The method of claim 1, wherein the loading the view display file of the sub-page of the first function option comprises:
and adding the view display file of the sub-page of the first function option into a sub-page switching control.
4. The method of claim 1, wherein when any one of the second function options is selected, loading a view display file of a cut scene of the selected second function option, and after loading a layout file of a sub page of the selected second function option, the method further comprises:
and deleting the view display file and the layout file of the cut scene of the selected second functional option.
5. The method of claim 1, wherein the first function option is a function option preset by the application client.
6. The method of claim 1, further comprising:
and acquiring the use conditions of the plurality of function options of the application client, and setting the function option with the use condition meeting the preset condition as the first function option.
7. An apparatus for loading a sub-page, the apparatus comprising:
the first loading module is used for only loading the layout file of the sub-page of the first functional option of the main interface when the application client is started;
the first loading module is further configured to load a layout file of a cut scene of at least one second functional option of the application client, and not load a layout file of a sub-page of the at least one second functional option, where the at least one second functional option is an option other than the first functional option;
the second loading module is used for loading the view display file of the sub-page of the first function option;
the second loading module is further used for loading the view display file of the cut scene of the selected second functional option when any second functional option of the main interface is selected to switch the functional options;
the first loading module is further configured to load a layout file of the sub-page of the selected second function option.
8. The apparatus of claim 7, wherein the first loading module is configured to add a layout file of a sub-page of the first functional option to a sub-page switching control.
9. The apparatus of claim 7, wherein the second loading module is configured to add a view display file of a sub-page of the first functional option to a sub-page toggle control.
10. The apparatus of claim 7, further comprising:
and the deleting module is used for deleting the view display file and the layout file of the cut scene of the selected second function option.
11. The apparatus of claim 7, wherein the first function option is a function option preset by the application client.
12. The apparatus of claim 7, further comprising:
the acquisition module is used for acquiring the use conditions of a plurality of functional options of the application client;
and the setting module is used for setting the function option of which the use condition meets the preset condition as the first function option.
13. An electronic device, comprising a processor and a memory, wherein at least one instruction is stored in the memory and loaded and executed by the processor to perform operations performed by the method of loading sub-pages of any of claims 1 to 6.
14. A computer-readable storage medium having stored therein at least one instruction which is loaded and executed by a processor to perform operations performed by a method of loading sub-pages according to any one of claims 1 to 6.
CN201810908844.4A 2018-08-10 2018-08-10 Method, device and equipment for loading sub-page and computer readable storage medium Active CN109189525B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810908844.4A CN109189525B (en) 2018-08-10 2018-08-10 Method, device and equipment for loading sub-page and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810908844.4A CN109189525B (en) 2018-08-10 2018-08-10 Method, device and equipment for loading sub-page and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109189525A CN109189525A (en) 2019-01-11
CN109189525B true CN109189525B (en) 2021-03-26

Family

ID=64921004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810908844.4A Active CN109189525B (en) 2018-08-10 2018-08-10 Method, device and equipment for loading sub-page and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109189525B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783176B (en) * 2019-01-17 2022-02-22 广州酷狗计算机科技有限公司 Page switching method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541848A (en) * 2010-12-08 2012-07-04 卓望数码技术(深圳)有限公司 Method, device, system and server for page loading based on cell phone browser
CN103019683A (en) * 2012-11-20 2013-04-03 北京思特奇信息技术股份有限公司 Method for dynamically configuring page view
CN103488504A (en) * 2013-09-12 2014-01-01 天脉聚源(北京)传媒科技有限公司 Method and device for loading data
CN103914204A (en) * 2012-12-31 2014-07-09 北京新媒传信科技有限公司 Method and device for displaying and switching views
CN105094683A (en) * 2015-06-30 2015-11-25 北京金山安全软件有限公司 Data display method and device
CN105094763A (en) * 2014-04-30 2015-11-25 广州市动景计算机科技有限公司 Video expansion function method and system
CN105630949A (en) * 2015-12-23 2016-06-01 小米科技有限责任公司 Page loading and backspacing method and device
CN105975319A (en) * 2016-05-26 2016-09-28 天脉聚源(北京)传媒科技有限公司 Application program loading method and device
CN107704241A (en) * 2017-09-26 2018-02-16 广州优视网络科技有限公司 A kind of display methods and device of page status switching

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11210708B2 (en) * 2011-11-03 2021-12-28 ADObjects, Inc. Responsive advertisement footprint and framework
US20160034258A1 (en) * 2014-07-31 2016-02-04 Lexmark International Technology S.A. System and Methods of Generating Build Dependencies Radiator

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541848A (en) * 2010-12-08 2012-07-04 卓望数码技术(深圳)有限公司 Method, device, system and server for page loading based on cell phone browser
CN103019683A (en) * 2012-11-20 2013-04-03 北京思特奇信息技术股份有限公司 Method for dynamically configuring page view
CN103914204A (en) * 2012-12-31 2014-07-09 北京新媒传信科技有限公司 Method and device for displaying and switching views
CN103488504A (en) * 2013-09-12 2014-01-01 天脉聚源(北京)传媒科技有限公司 Method and device for loading data
CN105094763A (en) * 2014-04-30 2015-11-25 广州市动景计算机科技有限公司 Video expansion function method and system
CN105094683A (en) * 2015-06-30 2015-11-25 北京金山安全软件有限公司 Data display method and device
CN105630949A (en) * 2015-12-23 2016-06-01 小米科技有限责任公司 Page loading and backspacing method and device
CN105975319A (en) * 2016-05-26 2016-09-28 天脉聚源(北京)传媒科技有限公司 Application program loading method and device
CN107704241A (en) * 2017-09-26 2018-02-16 广州优视网络科技有限公司 A kind of display methods and device of page status switching

Also Published As

Publication number Publication date
CN109189525A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN110602321B (en) Application program switching method and device, electronic device and storage medium
CN107908929B (en) Method and device for playing audio data
CN108449641B (en) Method, device, computer equipment and storage medium for playing media stream
CN110368689B (en) Game interface display method, system, electronic equipment and storage medium
CN109327608B (en) Song sharing method, terminal, server and system
CN110278464B (en) Method and device for displaying list
CN109144346B (en) Song sharing method and device and storage medium
CN110769313B (en) Video processing method and device and storage medium
CN112667835A (en) Work processing method and device, electronic equipment and storage medium
CN111083526B (en) Video transition method and device, computer equipment and storage medium
CN110677713B (en) Video image processing method and device and storage medium
CN109783176B (en) Page switching method and device
CN111083554A (en) Method and device for displaying live gift
CN110769120A (en) Method, device, equipment and storage medium for message reminding
CN112616082A (en) Video preview method, device, terminal and storage medium
CN110191236B (en) Song playing queue management method and device, terminal equipment and storage medium
CN110286839B (en) Message sending method, device, terminal and storage medium
CN109033473B (en) Picture sharing method and device and computer readable storage medium
CN109189525B (en) Method, device and equipment for loading sub-page and computer readable storage medium
CN112230910A (en) Page generation method, device, equipment and storage medium of embedded program
CN113301422B (en) Method, terminal and storage medium for acquiring video cover
CN111464829B (en) Method, device and equipment for switching media data and storage medium
CN110941458B (en) Method, device, equipment and storage medium for starting application program
CN110267114B (en) Video file playing method, device, terminal and storage medium

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
GR01 Patent grant
GR01 Patent grant