CN109684578A - Method and apparatus for showing information - Google Patents
Method and apparatus for showing information Download PDFInfo
- Publication number
- CN109684578A CN109684578A CN201811627873.XA CN201811627873A CN109684578A CN 109684578 A CN109684578 A CN 109684578A CN 201811627873 A CN201811627873 A CN 201811627873A CN 109684578 A CN109684578 A CN 109684578A
- Authority
- CN
- China
- Prior art keywords
- page
- page elements
- rendering
- elements
- spatial cue
- 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.)
- Pending
Links
Abstract
Embodiment of the disclosure discloses the method and apparatus for showing information.One specific embodiment of this method includes: to be used to indicate the page switching instruction that the selected page is switched to by current page in response to detecting, obtains the page elements set that the selected page includes;For selecting the page elements in the page elements set that the page includes, determine in target storage with the presence or absence of page elements after the rendering rendered in advance to the page elements;If it does, the page elements after extracting the corresponding rendering of the page elements in target storage;If it does not, obtaining the corresponding spatial cue of the page elements;The page elements are rendered based on acquired spatial cue, obtain page elements after the corresponding rendering of the page elements;Simultaneous display selectes page elements after the rendering that the page includes.This embodiment, reduces rendering one by one and phenomena such as display picture delay that while showing page elements occurs, Caton, the speed of page elements after display rendering is improved.
Description
Technical field
Embodiment of the disclosure is related to field of computer technology, and in particular to the method and apparatus for showing information.
Background technique
With the fast development of electronic technology, the mobile terminals such as mobile phone, tablet computer have become the life of user with
A part of work, user not only can use these mobile terminals and communicate, and can also use display circle of mobile terminal
Face read, is watched video, is played game etc..
Currently, being mainly based upon the generation of user's touch display screen when switching over to the display page of some applications
The switching between the display page is realized in instruction.Existing display page switching method obtains to be switched usually when switching the page
The page elements of the target pages arrived, the page elements that will acquire show in target pages, while to the back of target pages
Scape picture, background colour etc. such as are rendered, are modified at the processing.
Summary of the invention
Embodiment of the disclosure proposes the method and apparatus for showing information.
In a first aspect, embodiment of the disclosure provides a kind of method for showing information, this method comprises: in response to
It detects the page switching instruction for being used to indicate and switching to the selected page by current page, obtains the page member that the selected page includes
Element set;For selecting the page elements in the page elements set that the page includes, determine in target storage with the presence or absence of pre-
Page elements after the rendering first rendered to the page elements;Exist in response to determining, the page is extracted from target storage
Page elements after the corresponding rendering of surface element;It is not present in response to determination, obtains the corresponding spatial cue of the page elements;It is based on
Acquired spatial cue renders the page elements, obtains page elements after the corresponding rendering of the page elements;It is synchronous
Show page elements after selecting the rendering that the page includes.
In some embodiments, the page elements are being rendered based on acquired spatial cue, is obtaining the page
After the corresponding rendering of element after page elements, method further include: page elements after obtained rendering are stored in target and are deposited
In storage area.
In some embodiments, current page and the selected page are the pages that target application includes;And target application packet
Page elements after the rendering in the page included, are stored in target storage as follows in advance: in response to determining target
Using starting, the page elements and the corresponding spatial cue of page elements of the page that target application includes are obtained;Based on acquired
Spatial cue, acquired page elements are rendered, page elements and are stored in target storage after being rendered.
In some embodiments, simultaneous display selectes page elements after the rendering that the page includes, comprising: determination is preset
, switching display mode for switching the page;Page after the rendering for including according to the selected page of switching display mode simultaneous display
Surface element.
In some embodiments, switching display mode includes following any: being directly displayed, gradual change is shown.
Second aspect, embodiment of the disclosure provide it is a kind of for showing the device of information, the device include: obtain it is single
Member is configured in response to detect the page switching instruction for being used to indicate and switching to the selected page by current page, obtains choosing
Determine the page elements set that the page includes;Determination unit is configured to for selecting in the page elements set that the page includes
Page elements determine in target storage with the presence or absence of page elements after the rendering rendered in advance to the page elements;It rings
Should exist in determining, the page elements after extracting the corresponding rendering of the page elements in target storage;It is not deposited in response to determination
Obtaining the corresponding spatial cue of the page elements;The page elements are rendered based on acquired spatial cue, are obtained
Page elements after the corresponding rendering of the page elements;Display unit, after being configured to the rendering that the selected page of simultaneous display includes
Page elements.
In some embodiments, determination unit is further configured to: page elements after obtained rendering are stored in
In target storage.
In some embodiments, current page and the selected page are the pages that target application includes;And target application packet
Page elements after the rendering in the page included, are stored in target storage as follows in advance: in response to determining target
Using starting, the page elements and the corresponding spatial cue of page elements of the page that target application includes are obtained;Based on acquired
Spatial cue, acquired page elements are rendered, page elements and are stored in target storage after being rendered.
In some embodiments, display unit comprises determining that module, be configured to determine it is pre-set, for switching
The switching display mode of the page;Display module is configured to show the selected page according to switching display mode.
In some embodiments, switching display mode includes following any: being directly displayed, gradual change is shown.
The third aspect, embodiment of the disclosure provide a kind of terminal device, which includes: one or more places
Manage device;Storage device is stored thereon with one or more programs;When one or more programs are held by one or more processors
Row, so that one or more processors realize the method as described in implementation any in first aspect.
Fourth aspect, embodiment of the disclosure provide a kind of computer-readable medium, are stored thereon with computer program,
The method as described in implementation any in first aspect is realized when the computer program is executed by processor.
The method and apparatus for showing information that embodiment of the disclosure provides, by being used to indicate in response to detecting
The page switching instruction that the selected page is switched to by current page obtains the page elements set that the selected page includes;For choosing
Determine the page elements in the page elements set that the page includes, determines in target storage with the presence or absence of in advance to the page elements
Page elements after the rendering rendered;If it does, the page after extracting the corresponding rendering of the page elements in target storage
Surface element;Otherwise, the corresponding spatial cue of the page elements is obtained;The page elements are carried out based on acquired spatial cue
Rendering, obtains page elements after the corresponding rendering of the page elements, finally, simultaneous display selectes the page after the rendering that the page includes
Element, to realize when switching the page, simultaneous display selectes page elements after the rendering that the page includes, and reduces wash with watercolours one by one
Contaminate and occur when showing page elements display picture delay, Caton phenomena such as, pass through from target storage extract rendering after page
Surface element improves the speed of page elements after display rendering, enriches the mode of page elements after display rendering.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the disclosure is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the disclosure can be applied to exemplary system architecture figure therein;
Fig. 2 is according to an embodiment of the present disclosure for showing the flow chart of one embodiment of the method for information;
Fig. 3 is according to an embodiment of the present disclosure for showing the schematic diagram of an application scenarios of the method for information;
Fig. 4 is according to an embodiment of the present disclosure for showing the flow chart of another embodiment of the method for information;
Fig. 5 is according to an embodiment of the present disclosure for showing the structural schematic diagram of one embodiment of the device of information;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the terminal device of embodiment of the disclosure.
Specific embodiment
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the disclosure can phase
Mutually combination.The disclosure is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can the method for showing information using embodiment of the disclosure or the dress for showing information
The exemplary system architecture 100 set.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105.
Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out
Send message etc..Various telecommunication customer end applications can be installed, such as web browser is answered on terminal device 101,102,103
With, shopping class application, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 101,102,103 can be hardware, be also possible to software.When terminal device 101,102,103 is hard
When part, it can be with display screen and the various electronic equipments of supporting the page to show, including but not limited to smart phone, plate
Computer, pocket computer on knee and desktop computer etc..When terminal device 101,102,103 is software, can install
In above-mentioned cited electronic equipment.Multiple softwares or software module may be implemented into (such as providing distributed clothes in it
The software or software module of business), single software or software module also may be implemented into.It is not specifically limited herein.
Server 105 can be to provide the server of various services, such as to showing on terminal device 101,102,103
The page provides the background page server supported.Background page server can be used for sending to terminal device for setting in terminal
The information (such as page elements) that the page of standby upper display includes.
It should be noted that for showing the method for information generally by terminal device provided by embodiment of the disclosure
101, it 102,103 executes, correspondingly, for showing that the device of information is generally positioned in terminal device 101,102,103.
It should be noted that server can be hardware, it is also possible to software.When server is hardware, may be implemented
At the distributed server cluster that multiple servers form, individual server also may be implemented into.It, can when server is software
To be implemented as multiple softwares or software module (such as providing the software of Distributed Services or software module), also may be implemented
At single software or software module.It is not specifically limited herein.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process of one embodiment of the method for showing information according to the disclosure is shown
200.The method for being used to show information, comprising the following steps:
Step 201, it is used to indicate the page switching instruction for switching to the selected page by current page in response to detecting, obtained
The page elements set for taking the selected page to include.
In the present embodiment, for showing that the executing subject (such as terminal device shown in FIG. 1) of the method for information can be with
It is used to indicate the page switching instruction that the selected page is switched to by current page in response to detecting, from long-range (such as shown in Fig. 1
Server) obtain the page elements set that the selected page includes.Wherein, current page can be currently in above-mentioned executing subject
Screen on the page that shows, the selected page can be user and carries out selection page operation (such as click, sliding screen etc.) choosing
The fixed page.
Page switching instruction, which can be, is selected by users the instruction that page operation triggering generates.As an example it is supposed that
The above-mentioned selected page is the page for including news content, is switched to the above-mentioned selected page when detecting that user clicks to be used to indicate
When icon (icon for example including text " news "), page switching instruction is generated.
Page elements in above-mentioned page elements set can be the various forms of contents that the selected page includes, as showing
Example, page elements set can include but is not limited to following at least one page elements: text, picture, control, background frame
Deng.
Step 202, for selecting the page elements in the page elements set that the page includes, determining in target storage is
No page elements after there is the rendering rendered in advance to the page elements;Exist in response to determining, from target storage
Extract page elements after the corresponding rendering of the page elements;It is not present in response to determination, obtains the corresponding rendering of the page elements
Information;The page elements are rendered based on acquired spatial cue, obtain the page after the corresponding rendering of the page elements
Element.
In the present embodiment, for selecting the page elements in the page elements set that the page includes, above-mentioned executing subject
Following sub-step can be executed:
Step 2021, it determines in target storage with the presence or absence of the page after the rendering rendered in advance to the page elements
Element.Later, if it is determined that exist, executes step 2022, it is no to then follow the steps 2023.
Specifically, it is pre-set to can be technical staff for target storage, or automatically true by above-mentioned executing subject
Calmly (such as when the memory that including above-mentioned current page and when applying starting of the selected page, above-mentioned executing subject is distributed automatically)
, for page elements after storage rendering.Target storage can be the memory block for being set to above-mentioned executing subject local, can also
To be to be set to and the memory block in other electronic equipments of above-mentioned executing subject communication connection.
Page elements can be the page elements after the color to page elements, shape etc. are adjusted after above-mentioned rendering.
In general, page elements can have corresponding mark, for some page elements, above-mentioned executing subject can be from mesh
It marks in memory block, page elements are the page elements pair after determining identical with the mark of the page elements rendering of corresponding mark
Page elements after the rendering answered.
Step 2022, the page elements after extracting the corresponding rendering of the page elements in target storage.
Due to having stored page elements after the corresponding rendering of the page elements in target storage, it can subtract
It is few when switch the page, which is rendered and time for expending, to improve page elements after display renders
Efficiency.
Step 2023, the corresponding spatial cue of the page elements is obtained;Based on acquired spatial cue to page member
Element is rendered, and page elements after the corresponding rendering of the page elements are obtained.
Specifically, it is corresponding can to obtain the page elements from long-range (such as server shown in FIG. 1) for above-mentioned executing subject
Spatial cue.Alternatively, above-mentioned executing subject can obtain spatial cue from local, it should be understood that the rendering letter being locally stored
Breath can be to be obtained while obtaining page elements set in step 201, be also possible to by user it is pre-set (such as
User presets the color value of text as the spatial cue being locally stored).As an example, above-mentioned executing subject can be to such as
Server shown in FIG. 1 sends the instruction for being used to indicate and obtaining the corresponding spatial cue of the page elements, and server receives this
The corresponding spatial cue of the page elements is sent to above-mentioned executing subject after instruction.
Above-mentioned spatial cue is adjusted for features such as color, the shapes of page elements to the above-mentioned selected page
Information.For example, spatial cue may include the color value of page elements, by color value, the color of page elements can be set.
Above-mentioned executing subject can then render the page elements based on the spatial cue of acquisition, and the page is obtained
Page elements after the corresponding rendering of element.Specifically, as an example it is supposed that some page elements that the selected page includes are search
Icon, spatial cue may include search graph target color value, the information for characterizing search graph target shape.Using spatial cue,
Above-mentioned executing subject can render search icon, that is, set above-mentioned spatial cue packet for search graph target color value
Search graph target is shaped to the shape of above-mentioned spatial cue instruction by the color value included.
In practice, page elements can correspond to the interface for rendering page elements, by calling the interface, Ke Yigen
Page elements are rendered according to corresponding spatial cue.For example, interface can be the letter of the color for changing page elements
Number, inputs the function, page elements after available rendering for spatial cue (such as color value).
In some optional implementations of the present embodiment, above-mentioned executing subject can also be after step 2023, will
Page elements are stored in target storage after obtained rendering.By executing this implementation, can to switch again
When to the above-mentioned selected page, the page elements directly after extracting the rendering that the selected page includes in above-mentioned target storage.To
The efficiency of page switching can be improved.
Step 203, simultaneous display selectes page elements after the rendering that the page includes.
In the present embodiment, above-mentioned executing subject can select page elements after the rendering that the page includes with simultaneous display.Choosing
Determining page elements after the rendering that the page includes includes after the rendering extracted in above-mentioned steps 2022 in page elements and step 2023
Page elements after obtained rendering.Page elements after the rendering that the page includes are selected by simultaneous display, it is possible to reduce one by one
When each page elements that the selected page includes are rendered and are shown, caused by show picture delay, Caton phenomena such as.
In some optional implementations of the present embodiment, above-mentioned executing subject can simultaneous display in accordance with the following steps
Page elements after the rendering that the selected page includes:
Firstly, determining switching display mode pre-set, for switching the page.Specifically, switching display mode can
To be preset by user.Switching display mode can be when switching the page, and the picture of the selected page is switched to from current page
Face variation pattern.
Then, according to it is identified switching display mode simultaneous display select the page include rendering after page elements.
In some optional implementations of the present embodiment, above-mentioned switching display mode may include following any:
It directly displays, gradual change is shown.Wherein, gradual change display mode is gradually to be converted to the picture currently shown when switching the page
Page elements after the rendering that the selected page includes.For example, a period (such as 1 second) can be preset, in the period
It is interior, gradually the page elements of current page are hidden, while page elements after the rendering that gradually the selected page of display includes.
Alternatively, one section of animation can be loaded when switching the page, in the playing process of the animation, gradually show that the selected page includes
Rendering after page elements.The above-mentioned mode that directly displays is the page when switching the page, after directly displaying the rendering of the selected page
Surface element, without transit time or load animation.
With continued reference to the signal that Fig. 3, Fig. 3 are according to the application scenarios of the method for showing information of the present embodiment
Figure.In the application scenarios of Fig. 3, web browser applications browsing pages in user's using terminal equipment 301, user passes through cunning
Current page (recommending the page) is switched to the selected page (news pages) by dynamic screen, and terminal device 301, which detects, to be used to indicate
The page switching instruction that the selected page is switched to by current page, obtaining the selected page from the server 304 of communication connection includes
Page elements set 302.
For each page elements in page elements set 302, determine in target storage 303 (such as local cache)
With the presence or absence of page elements after the rendering rendered in advance to the page elements.If it does, terminal device 301 is deposited from target
Page elements after the corresponding rendering of the page elements are extracted in storage area 303.If it does not, obtaining the corresponding wash with watercolours of the page elements
It contaminates information (such as color value).The page elements are rendered based on acquired spatial cue (such as more according to color value
Change the color of page elements), obtain page elements after the corresponding rendering of the page elements.
Finally, terminal device 301 shows page elements after each rendering that the selected page includes on the selected page.
The method provided by the above embodiment of the disclosure, by being switched in response to detecting to be used to indicate by current page
The page switching instruction of the selected page obtains the page elements set that the selected page includes;The page for including for selecting the page
Page elements in element set determine after whether there is the rendering rendered in advance to the page elements in target storage
Page elements;If it does, the page elements after extracting the corresponding rendering of the page elements in target storage;Otherwise, it obtains
The corresponding spatial cue of the page elements;The page elements are rendered based on acquired spatial cue, obtain the page
Page elements after the corresponding rendering of element, finally, simultaneous display selectes page elements after the rendering that the page includes, to realize
When switching the page, simultaneous display selectes page elements after the rendering that the page includes, and reduces and renders and show page member one by one
Occur when plain display picture delay, Caton phenomena such as, by from target storage extract rendering after page elements, improve aobvious
The speed for showing page elements after rendering enriches the mode of page elements after display rendering.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment for showing the method for information.The use
In the process 400 of the method for display information, comprising the following steps:
Step 401, in response to determining target application starting, the page elements and the page of the page that target application includes are obtained
The corresponding spatial cue of element.
In the present embodiment, for showing that the executing subject (such as terminal device shown in FIG. 1) of the method for information can be with
In response to determining target application starting, the page for the page that target application includes is obtained from long-range (such as server shown in FIG. 1)
Surface element and the corresponding spatial cue of page elements.It should be appreciated that spatial cue can also be preparatory from local acquisition, such as user
The color value of text is set as the spatial cue being locally stored.Wherein, target application, which can be, is pre-installed in above-mentioned execution
Application in main body.In general, target application may include multiple pages, after target application starting, above-mentioned executing subject can be with
The page elements and the corresponding spatial cue of page elements of each page are obtained from server as shown in Figure 1.
Spatial cue is the information that the features such as color, shape for the page elements to the page are adjusted.For example, wash with watercolours
Dye information may include that the color of page elements can be set by color value in the color value of page elements.
It should be noted that the page elements and page of whole pages that the above-mentioned available target application of executing subject includes
The corresponding spatial cue of surface element, the page elements and page elements for the partial page that also available target application includes are corresponding
Spatial cue.As an example, target application may include multiple homepages and the corresponding multiple subpages of each homepage
Face.The page elements and the corresponding spatial cue of page elements of the above-mentioned available each homepage of executing subject, can also be only
Obtain the page elements and the corresponding spatial cue of page elements of each homepage.
Step 402, based on acquired spatial cue, acquired page elements are rendered, page after being rendered
Surface element and it is stored in target storage.
In the present embodiment, based on the spatial cue obtained in step 403, above-mentioned executing subject can be to acquired page
Surface element is rendered, and page elements and is stored in target storage after being rendered.
Specifically, the page elements for each page that above-mentioned executing subject can include to target application render,
The partial page that target application includes can be rendered.It continues the example presented above, above-mentioned executing subject can be to each homepage
The page elements of the page elements in face and each subpage frame are rendered, can also only to the page elements of each homepage into
Row rendering.It should be noted that being directed to some page, above-mentioned executing subject can carry out wash with watercolours to whole page elements of the page
Dye, can also render partial page element.For example, only being rendered to text.
Above-mentioned target storage can be memory block (such as caching, memory, the hard disk for being set to above-mentioned executing subject local
Deng), it is also possible to be set to and the memory block in other electronic equipments of above-mentioned executing subject communication connection.
In general, can show the page after the rendering that default page (such as recommending the page) includes after target application starting
Element.
Step 403, it is used to indicate the page switching instruction for switching to the selected page by current page in response to detecting, obtained
The page elements set for taking the selected page to include.
In the present embodiment, above-mentioned current page and the selected page can be the page that above-mentioned target application includes.Specifically
Ground, step 403 and the step 201 in Fig. 2 corresponding embodiment are almost the same, and which is not described herein again.
Step 404, for selecting the page elements in the page elements set that the page includes, determining in target storage is
No page elements after there is the rendering rendered in advance to the page elements;Exist in response to determining, from target storage
Extract page elements after the corresponding rendering of the page elements;It is not present in response to determination, obtains the corresponding rendering of the page elements
Information;The page elements are rendered based on acquired spatial cue, obtain the page after the corresponding rendering of the page elements
Element.
In the present embodiment, step 404 and the step 202 in Fig. 2 corresponding embodiment are almost the same, and which is not described herein again.
Step 405, simultaneous display selectes page elements after the rendering that the page includes.
In the present embodiment, step 405 and the step 203 in Fig. 2 corresponding embodiment are almost the same, and which is not described herein again.
Figure 4, it is seen that the method for showing information compared with the corresponding embodiment of Fig. 2, in the present embodiment
Process 400 highlight the page elements of the page for including to target application and rendered and be stored in the step of target storage
Suddenly.The page elements after more renderings can be stored in advance in the scheme of the present embodiment description in target storage as a result, from
And when switching the page, first from the page elements after extraction rendering in target storage, when further improving page switching,
Show the efficiency of the selected page.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, present disclose provides one kind for showing letter
One embodiment of the device of breath, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer
For in various electronic equipments.
As shown in figure 5, the present embodiment is used to show that the device 500 of information includes: acquiring unit 501, it is configured to ring
Ying Yu detects the page switching instruction for being used to indicate and switching to the selected page by current page, obtains the page that the selected page includes
Surface element set;Determination unit 502 is configured to for selecting the page elements in the page elements set that the page includes, really
It sets the goal in memory block with the presence or absence of page elements after the rendering rendered in advance to the page elements;It is deposited in response to determination
In the page elements after extracting the corresponding rendering of the page elements in target storage;It is not present in response to determination, obtains the page
The corresponding spatial cue of surface element;The page elements are rendered based on acquired spatial cue, obtain the page elements
Page elements after corresponding rendering;Display unit 503 is configured to simultaneous display and selectes page member after the rendering that the page includes
Element.
In the present embodiment, acquiring unit 501 can in response to detect be used to indicate switched to by current page it is selected
The page switching of the page instructs, and obtains the page elements set that the selected page includes from long-range (such as server shown in FIG. 1).
Wherein, current page can be the page currently shown on the screen of above-mentioned apparatus 500, and the selected page can be user's progress
The page for selecting page operation (such as click, sliding screen etc.) selected.
Page switching instruction, which can be, is selected by users the instruction that page operation triggering generates.As an example it is supposed that
The above-mentioned selected page is the page for including news content, is switched to the above-mentioned selected page when detecting that user clicks to be used to indicate
When icon (icon for example including text " news "), page switching instruction is generated.
Page elements in above-mentioned page elements set can be the various forms of contents that the selected page includes, as showing
Example, page elements set can include but is not limited to following at least one page elements: text, picture, control, background frame
Deng.
In the present embodiment, for selecting the page elements in the page elements set that the page includes, above-mentioned determination unit
502 can execute following sub-step:
Step 5021, it determines in target storage with the presence or absence of the page after the rendering rendered in advance to the page elements
Element.Later, if it is determined that exist, executes step 5022, it is no to then follow the steps 5023.
Specifically, it is pre-set to can be technical staff for target storage, or is automatically determined by above-mentioned apparatus 500
(such as when memory that including above-mentioned current page and when applying starting of the selected page, above-mentioned apparatus 500 is distributed automatically), it uses
The page elements after storage rendering.Target storage, which can be, is set to the local memory block of above-mentioned apparatus 500, is also possible to set
It is placed in the memory block in other electronic equipments communicated to connect with above-mentioned apparatus 500.
Page elements can be the page elements after the color to page elements, shape etc. are adjusted after above-mentioned rendering.
In general, page elements can have corresponding mark, for some page elements, above-mentioned determination unit 502 can be with
From target storage, page elements are that the page is first after determining identical with the mark of the page elements rendering of corresponding mark
Page elements after the corresponding rendering of element.
Step 5022, the page elements after extracting the corresponding rendering of the page elements in target storage.
Due to having stored page elements after the corresponding rendering of the page elements in target storage, it can subtract
It is few when switch the page, which is rendered and time for expending, to improve page elements after display renders
Efficiency.
Step 5023, the corresponding spatial cue of the page elements is obtained;Based on acquired spatial cue to page member
Element is rendered, and page elements after the corresponding rendering of the page elements are obtained.
Specifically, above-mentioned determination unit 502 can obtain the page elements pair from long-range (such as server shown in FIG. 1)
The spatial cue answered.Alternatively, above-mentioned determination unit 502 can obtain spatial cue from local, it should be understood that the wash with watercolours being locally stored
Dye information can be to be obtained while obtaining page elements set in step 201, is also possible to pre-set by user
(such as user presets the color value of text as the spatial cue being locally stored).As an example, above-mentioned apparatus 500 can be with
It is sent to server as shown in Figure 1 and is used to indicate the instruction for obtaining the corresponding spatial cue of the page elements, server receives
The corresponding spatial cue of the page elements is sent to above-mentioned apparatus 500 after to the instruction.
Above-mentioned spatial cue is adjusted for features such as color, the shapes of page elements to the above-mentioned selected page
Information.For example, spatial cue may include the color value of page elements, by color value, the color of page elements can be set.
Above-mentioned determination unit 502 can then render the page elements based on the spatial cue of acquisition, be somebody's turn to do
Page elements after the corresponding rendering of page elements.Specifically, as an example it is supposed that some page elements that the selected page includes are
Icon is searched for, spatial cue may include search graph target color value, the information for characterizing search graph target shape.Believed using rendering
Breath, above-mentioned determination unit 502 can render search icon, that is, set above-mentioned rendering for search graph target color value
Search graph target is shaped to the shape of above-mentioned spatial cue instruction by the color value that information includes.
In practice, page elements can correspond to the interface for rendering page elements, by calling the interface, Ke Yigen
Page elements are rendered according to corresponding spatial cue.For example, interface can be the letter of the color for changing page elements
Number, inputs the function, page elements after available rendering for spatial cue (such as color value).
In this example it is shown that unit 503 can select page elements after the rendering that the page includes with simultaneous display.It is selected
Page elements include after the rendering extracted in above-mentioned steps 5022 in page elements and step 5023 after the rendering that the page includes
Page elements after the rendering arrived.Page elements after the rendering that the page includes are selected by simultaneous display, it is possible to reduce right one by one
When each page elements that the selected page includes are rendered and are shown, caused by phenomena such as showing float, Caton.
In some optional implementations of the present embodiment, determination unit 502 can be further configured to: by gained
To rendering after page elements be stored in target storage.
In some optional implementations of the present embodiment, current page and the selected page are the pages that target application includes
Face;And target application include the page in rendering after page elements, be stored in target storage as follows in advance
In: in response to determining target application starting, obtain the page elements and the corresponding wash with watercolours of page elements of the page that target application includes
Contaminate information;Based on acquired spatial cue, acquired page elements are rendered, page elements and are deposited after being rendered
Storage is in target storage.
In some optional implementations of the present embodiment, display unit may include: that determining module (is not shown in figure
Out), it is configured to determine switching display mode pre-set, for switching the page;Display module (not shown), quilt
It is configured to show the selected page according to switching display mode.
In some optional implementations of the present embodiment, switching display mode includes following any: directly display,
Gradual change is shown.
The device provided by the above embodiment of the disclosure, by being switched in response to detecting to be used to indicate by current page
The page switching instruction of the selected page obtains the page elements set that the selected page includes;The page for including for selecting the page
Page elements in element set determine after whether there is the rendering rendered in advance to the page elements in target storage
Page elements;If it does, the page elements after extracting the corresponding rendering of the page elements in target storage;Otherwise, it obtains
The corresponding spatial cue of the page elements;The page elements are rendered based on acquired spatial cue, obtain the page
Page elements after the corresponding rendering of element, finally, simultaneous display selectes page elements after the rendering that the page includes, to realize
When switching the page, simultaneous display selectes page elements after the rendering that the page includes, and reduces and renders and show page member one by one
Occur when plain display picture delay, Caton phenomena such as, by from target storage extract rendering after page elements, improve aobvious
The speed for showing page elements after rendering enriches the mode of page elements after display rendering.
Below with reference to Fig. 6, it illustrates the computer systems for the terminal device for being suitable for being used to realize embodiment of the disclosure
600 structural schematic diagram.Terminal device shown in Fig. 6 is only an example, should not function to embodiment of the disclosure and
Use scope brings any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in
Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and
Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data.
CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always
Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;Including such as liquid crystal
Show the output par, c 607 of device (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.;And including such as LAN
The communications portion 609 of the network interface card of card, modem etc..Communications portion 609 is executed via the network of such as internet
Communication process.Driver 610, which also can according to need, is connected to I/O interface 605.Detachable media 611, such as disk, CD,
Magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to from the computer journey read thereon
Sequence is mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media
611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution disclosed method
Above-mentioned function.
It should be noted that computer-readable medium described in the disclosure can be computer-readable signal media or meter
Calculation machine readable medium either the two any combination.Computer-readable medium for example may be-but not limited to-
Electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.It is computer-readable
The more specific example of medium can include but is not limited to: have electrical connection, the portable computer magnetic of one or more conducting wires
Disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or sudden strain of a muscle
Deposit), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned appoint
The suitable combination of meaning.In the disclosure, computer-readable medium can be any tangible medium for including or store program, the journey
Sequence can be commanded execution system, device or device use or in connection.And in the disclosure, it is computer-readable
Signal media may include in a base band or as carrier wave a part propagate data-signal, wherein carrying computer can
The program code of reading.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, optical signal or
Above-mentioned any appropriate combination.Computer-readable signal media can also be any calculating other than computer-readable medium
Machine readable medium, the computer-readable medium can be sent, propagated or transmitted for by instruction execution system, device or device
Part uses or program in connection.The program code for including on computer-readable medium can use any Jie appropriate
Matter transmission, including but not limited to: wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, described program design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in embodiment of the disclosure can be realized by way of software, can also be passed through
The mode of hardware is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor
Including acquiring unit, determination unit, display unit.Wherein, the title of these units is not constituted under certain conditions to the list
The restriction of member itself, for example, acquiring unit is also described as " being switched in response to detecting to be used to indicate by current page
The page switching instruction of the selected page, obtains the unit for the page elements set that the selected page includes ".
As on the other hand, the disclosure additionally provides a kind of computer-readable medium, which can be
Included in terminal device described in above-described embodiment;It is also possible to individualism, and without in the supplying terminal device.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are held by the terminal device
When row, so that the terminal device: being referred in response to detecting to be used to indicate by the page switching that current page switches to the selected page
It enables, obtains the page elements set that the selected page includes;For selecting the page elements in the page elements set that the page includes,
It determines in target storage with the presence or absence of page elements after the rendering rendered in advance to the page elements;It is deposited in response to determination
In the page elements after extracting the corresponding rendering of the page elements in target storage;It is not present in response to determination, obtains the page
The corresponding spatial cue of surface element;The page elements are rendered based on acquired spatial cue, obtain the page elements
Page elements after corresponding rendering;Simultaneous display selectes page elements after the rendering that the page includes.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (12)
1. a kind of method for showing information, comprising:
It is used to indicate the page switching instruction for switching to the selected page by current page in response to detecting, obtains the selected page
The page elements set that face includes;
The page elements in page elements set for including for the selected page determine in target storage with the presence or absence of pre-
Page elements after the rendering first rendered to the page elements;Exist in response to determining, is extracted from the target storage
Page elements after the corresponding rendering of the page elements;It is not present in response to determination, obtains the corresponding spatial cue of the page elements;
The page elements are rendered based on acquired spatial cue, obtain page elements after the corresponding rendering of the page elements;
Page elements after the rendering that the selected page includes described in simultaneous display.
2. according to the method described in claim 1, wherein, being carried out based on acquired spatial cue to the page elements described
Rendering obtains after the corresponding rendering of the page elements after page elements, the method also includes:
Page elements after obtained rendering are stored in the target storage.
3. according to the method described in claim 1, wherein, the current page and the selected page are that target application includes
The page;And
Page elements after the rendering in the page that the target application includes are stored in the target as follows in advance and deposit
In storage area:
In response to the determination target application starting, the page elements and page elements of the page that the target application includes are obtained
Corresponding spatial cue;
Based on acquired spatial cue, acquired page elements are rendered, page elements and storage after being rendered
In the target storage.
4. method described in one of -3 according to claim 1, wherein after selecting the rendering that the page includes described in the simultaneous display
Page elements, comprising:
Determine switching display mode pre-set, for switching the page;
Page elements after the rendering for including according to the selected page described in the switching display mode simultaneous display.
5. according to the method described in claim 4, wherein, the switching display mode includes following any: being directly displayed, gradually
Become display.
6. a kind of for showing the device of information, comprising:
Acquiring unit, is configured in response to detect to be used to indicate and is referred to by the page switching that current page switches to the selected page
It enables, obtains the page elements set that the selected page includes;
Determination unit, the page elements being configured in the page elements set for including for the selected page, determines target
With the presence or absence of page elements after the rendering rendered in advance to the page elements in memory block;Exist in response to determining, from institute
State page elements after extracting the corresponding rendering of the page elements in target storage;It is not present in response to determination, obtains the page
The corresponding spatial cue of element;The page elements are rendered based on acquired spatial cue, obtain the page elements pair
Page elements after the rendering answered;
Display unit is configured to select page elements after the rendering that the page includes described in simultaneous display.
7. device according to claim 6, wherein the determination unit is further configured to:
Page elements after obtained rendering are stored in the target storage.
8. device according to claim 6, wherein the current page and the selected page are that target application includes
The page;And
Page elements after the rendering in the page that the target application includes are stored in the target as follows in advance and deposit
In storage area:
In response to the determination target application starting, the page elements and page elements of the page that the target application includes are obtained
Corresponding spatial cue;
Based on acquired spatial cue, acquired page elements are rendered, page elements and storage after being rendered
In the target storage.
9. the device according to one of claim 6-8, wherein the display unit includes:
Determining module is configured to determine switching display mode pre-set, for switching the page;
Display module is configured to show the selected page according to the switching display mode.
10. device according to claim 9, wherein the switching display mode includes following any: directly display,
Gradual change is shown.
11. a kind of terminal device, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, wherein the realization when program is executed by processor
Such as method as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811627873.XA CN109684578A (en) | 2018-12-28 | 2018-12-28 | Method and apparatus for showing information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811627873.XA CN109684578A (en) | 2018-12-28 | 2018-12-28 | Method and apparatus for showing information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109684578A true CN109684578A (en) | 2019-04-26 |
Family
ID=66190115
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811627873.XA Pending CN109684578A (en) | 2018-12-28 | 2018-12-28 | Method and apparatus for showing information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109684578A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110928626A (en) * | 2019-11-21 | 2020-03-27 | 北京金山安全软件有限公司 | Interface switching method and device and electronic equipment |
CN111506372A (en) * | 2020-04-07 | 2020-08-07 | 口碑(上海)信息技术有限公司 | Object visualization processing method and device |
CN111596916A (en) * | 2020-04-20 | 2020-08-28 | 北京飞漫软件技术有限公司 | Application program management method, device and equipment and computer storage medium |
CN111783504A (en) * | 2019-04-30 | 2020-10-16 | 北京京东尚科信息技术有限公司 | Method and apparatus for displaying information |
CN112417344A (en) * | 2021-01-25 | 2021-02-26 | 北京小米移动软件有限公司 | Rendering method, rendering device, electronic equipment and storage medium |
CN112543363A (en) * | 2020-12-04 | 2021-03-23 | 海看网络科技(山东)股份有限公司 | Method for configuring background in IPTV diversification |
CN112559922A (en) * | 2020-12-08 | 2021-03-26 | 歌尔科技有限公司 | Page rendering method, terminal device and storage medium |
CN113312163A (en) * | 2021-06-10 | 2021-08-27 | 腾讯数码(深圳)有限公司 | Page switching state monitoring method and device, electronic equipment and storage medium |
CN113722642A (en) * | 2021-08-31 | 2021-11-30 | 北京百度网讯科技有限公司 | Webpage conversion method and device, electronic equipment and storage medium |
CN113835790A (en) * | 2020-06-23 | 2021-12-24 | 北京字节跳动网络技术有限公司 | Paging page display method and device based on Android |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103500189A (en) * | 2013-09-16 | 2014-01-08 | 广州华多网络科技有限公司 | Picture browsing method and device |
CN106021421A (en) * | 2016-05-13 | 2016-10-12 | 北京视博云科技有限公司 | Method and device for accelerating web page rendering |
WO2018034736A1 (en) * | 2016-08-18 | 2018-02-22 | Qualcomm Incorporated | Systems and methods for controlling webpage pre-rendering |
CN108197264A (en) * | 2017-12-29 | 2018-06-22 | 广东欧珀移动通信有限公司 | Webpage accelerates display methods, device, mobile terminal and storage medium |
-
2018
- 2018-12-28 CN CN201811627873.XA patent/CN109684578A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103500189A (en) * | 2013-09-16 | 2014-01-08 | 广州华多网络科技有限公司 | Picture browsing method and device |
CN106021421A (en) * | 2016-05-13 | 2016-10-12 | 北京视博云科技有限公司 | Method and device for accelerating web page rendering |
WO2018034736A1 (en) * | 2016-08-18 | 2018-02-22 | Qualcomm Incorporated | Systems and methods for controlling webpage pre-rendering |
CN108197264A (en) * | 2017-12-29 | 2018-06-22 | 广东欧珀移动通信有限公司 | Webpage accelerates display methods, device, mobile terminal and storage medium |
Non-Patent Citations (1)
Title |
---|
杨艾祥: "《下一站,用户体验》", 31 July 2012, 中国发展出版社 * |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111783504A (en) * | 2019-04-30 | 2020-10-16 | 北京京东尚科信息技术有限公司 | Method and apparatus for displaying information |
CN110928626A (en) * | 2019-11-21 | 2020-03-27 | 北京金山安全软件有限公司 | Interface switching method and device and electronic equipment |
CN111506372A (en) * | 2020-04-07 | 2020-08-07 | 口碑(上海)信息技术有限公司 | Object visualization processing method and device |
CN111506372B (en) * | 2020-04-07 | 2023-09-26 | 口碑(上海)信息技术有限公司 | Object visualization processing method and device |
CN111596916A (en) * | 2020-04-20 | 2020-08-28 | 北京飞漫软件技术有限公司 | Application program management method, device and equipment and computer storage medium |
CN113835790A (en) * | 2020-06-23 | 2021-12-24 | 北京字节跳动网络技术有限公司 | Paging page display method and device based on Android |
CN113835790B (en) * | 2020-06-23 | 2024-03-19 | 北京字节跳动网络技术有限公司 | Paging page display method and device based on Android |
CN112543363A (en) * | 2020-12-04 | 2021-03-23 | 海看网络科技(山东)股份有限公司 | Method for configuring background in IPTV diversification |
CN112559922A (en) * | 2020-12-08 | 2021-03-26 | 歌尔科技有限公司 | Page rendering method, terminal device and storage medium |
CN112559922B (en) * | 2020-12-08 | 2022-11-22 | 歌尔科技有限公司 | Page rendering method, terminal device and storage medium |
CN112417344A (en) * | 2021-01-25 | 2021-02-26 | 北京小米移动软件有限公司 | Rendering method, rendering device, electronic equipment and storage medium |
CN113312163A (en) * | 2021-06-10 | 2021-08-27 | 腾讯数码(深圳)有限公司 | Page switching state monitoring method and device, electronic equipment and storage medium |
CN113722642A (en) * | 2021-08-31 | 2021-11-30 | 北京百度网讯科技有限公司 | Webpage conversion method and device, electronic equipment and storage medium |
CN113722642B (en) * | 2021-08-31 | 2023-07-25 | 北京百度网讯科技有限公司 | Webpage conversion method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109684578A (en) | Method and apparatus for showing information | |
CN110046021B (en) | Page display method, device, system, equipment and storage medium | |
CN109471695A (en) | Method and apparatus for more new data | |
CN109460513A (en) | Method and apparatus for generating clicking rate prediction model | |
CN110162670A (en) | Method and apparatus for generating expression packet | |
US8539101B2 (en) | Systems, methods, and computer programs for detecting carrier-controlled requests for a web site | |
CN108965907A (en) | For playing the methods, devices and systems of video | |
CN109582873A (en) | Method and apparatus for pushed information | |
CN109446442A (en) | Method and apparatus for handling information | |
CN110471733A (en) | Information processing method and device | |
CN110502699A (en) | Method and apparatus for obtaining information | |
CN109036397A (en) | The method and apparatus of content for rendering | |
CN108646972A (en) | Method and apparatus for showing information, searching information | |
CN109525855A (en) | Method and apparatus for handling information | |
CN110245298A (en) | Method and apparatus for pushed information | |
CN109408748A (en) | Method and apparatus for handling information | |
CN111339418A (en) | Page display method and device, electronic equipment and computer readable medium | |
CN109413056A (en) | Method and apparatus for handling information | |
CN109960450A (en) | The starting method and apparatus of application | |
CN109788333A (en) | For being displayed in full screen the method and device of video | |
CN110619101B (en) | Method and apparatus for processing information | |
CN110069186B (en) | Method and equipment for displaying operation interface of application | |
CN110058857A (en) | Generation method and device are applied in boarding | |
CN108984260A (en) | Method and apparatus for handling information | |
CN109408647A (en) | Method and apparatus for handling information |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190426 |
|
RJ01 | Rejection of invention patent application after publication |