CN108920227A - A kind of method, apparatus, storage medium and the equipment of multi-page slide handover - Google Patents

A kind of method, apparatus, storage medium and the equipment of multi-page slide handover Download PDF

Info

Publication number
CN108920227A
CN108920227A CN201810460017.3A CN201810460017A CN108920227A CN 108920227 A CN108920227 A CN 108920227A CN 201810460017 A CN201810460017 A CN 201810460017A CN 108920227 A CN108920227 A CN 108920227A
Authority
CN
China
Prior art keywords
fragment
slide handover
adapter
page
view
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
Application number
CN201810460017.3A
Other languages
Chinese (zh)
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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information 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 Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201810460017.3A priority Critical patent/CN108920227A/en
Publication of CN108920227A publication Critical patent/CN108920227A/en
Pending legal-status Critical Current

Links

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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses method, apparatus, storage medium and the equipment of a kind of multi-page slide handover, method includes:Multiple fragment Fragment are buffered in the adapter of view slide handover control;When page slide handover, it is added in the view slide handover control by the adapter from Fragment to be shown is obtained in the multiple Fragment.Beneficial effects of the present invention are, by the way that Fragment is cached in adapter in advance, so that when page slide handover, corresponding Fragment only need to be searched from the Fragment of caching to be added in view slide handover control, it avoids adapter to create the repetition of Fragment, optimizes the performance of adapter load Fragment, avoid the wasting of resources, page sliding efficiency is improved, user experience is more preferably.

Description

A kind of method, apparatus, storage medium and the equipment of multi-page slide handover
Technical field
The present invention relates to page switching technical field more particularly to a kind of method, apparatus of multi-page slide handover, storage Medium and equipment.
Background technique
In the prior art, fragment Fragment and view slide handover control ViewPager is used in combination, and realizes at one The effect of the multiple subpage frames of gesture slide handover is supported in the page, ViewPager holds as father's container, Fragment as son Device, FragmentPagerAdapter provide Fragment as intermediate adapter and use to ViewPager.ViewPager is silent Three Fragment can be cached by recognizing, and when sliding is beyond three, first Fragment can be destroyed, be removed from viewpager, 4th Fragment can be created, and be added in viewpager, adapter FragmentPagerAdapter is being generated When Fragment, the index and a string of fixed character strings that will use current page regard unique mark of Fragment, first from Search whether that, there are corresponding Fragment, with the increase of the sliding page, page index is increasing always, in caching in caching Do not exist for the caching Fragment currently indexed, each Fragment sliding caused to require to carry out repeating creation, And repeat to destroy, discharge the process of resource.
Summary of the invention
The embodiment of the present invention provides method, apparatus, storage medium and the equipment of a kind of multi-page slide handover, to solve In the prior art during page slide handover, adapter needs to repeat creation, destroys fragment Fragment, waste of resource and shadow The problem of ringing switching efficiency.
In a first aspect, the embodiment of the present invention provides a kind of method of multi-page slide handover, including:
Multiple fragment Fragment are buffered in the adapter of view slide handover control;
When page slide handover, Fragment to be shown is obtained from the multiple Fragment by the adapter It is added in the view slide handover control.
Optionally, described to obtain Fragment addition to be shown from the multiple Fragment by the adapter Before into the view slide handover control, further include:
Determine the key assignments key that tracking and unique identification are carried out to the Fragment to be shown.
Optionally, described to obtain Fragment addition to be shown from the multiple Fragment by the adapter Into the view slide handover control, including:
Fragment corresponding with the key assignments key is found out from the multiple Fragment by the adapter to make For the Fragment to be shown;
The Fragment to be shown is added in the view slide handover control by the adapter.
Optionally, the determination carries out the key assignments key of tracking and unique identification, packet to the Fragment to be shown It includes:
By the adapter according to the index value of the Fragment currently shown in the view slide handover control and The quantity remainder of the multiple Fragment of caching generates the key assignments key.
Optionally, when the page slide handover, further include:
Shield the destruction function that the adapter destroy to the Fragment operation.
Optionally, further include:
When exiting the operation of page slide handover, the multiple Fragment cached in the adapter is destroyed.
Second aspect, the embodiment of the present invention provide a kind of device of multi-page slide handover, including:
Cache module, for multiple fragment Fragment to be buffered in the adapter of view slide handover control;
Switching module, be used for the page slide handover when, obtained from the multiple Fragment by the adapter to The Fragment of display is added in the view slide handover control.
Optionally, further include:
Determining module, for determining the key assignments key for carrying out tracking and unique identification to the Fragment to be shown.
Optionally, the switching module includes:
Unit is searched, it is opposite with the key assignments key for being found out from the multiple Fragment by the adapter The Fragment answered is as the Fragment to be shown;
Adding unit is cut for the Fragment to be shown to be added to the view sliding by the adapter It changes in control.
Optionally, the determining module is specifically used for:
By the adapter according to the index value of the Fragment currently shown in the view slide handover control and The quantity remainder of the multiple Fragment of caching generates the key assignments key.
Optionally, further include:
Shroud module destroy to the Fragment destruction function of operation for shielding the adapter.
Optionally, further include:
Destroy module, for exit the page slide handover operation when, destroy cached in the adapter it is the multiple Fragment。
The third aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium Computer program is stored in matter, the step of computer program realizes following method when being executed by processor:
Multiple fragment Fragment are buffered in the adapter of view slide handover control;
When page slide handover, Fragment to be shown is obtained from the multiple Fragment by the adapter It is added in the view slide handover control.
Fourth aspect, the embodiment of the present invention provide a kind of computer equipment, and the computer equipment includes:Memory, place It manages device and is stored in the computer program that can be run on the memory and on the processor, the computer program is by institute When stating processor and executing, the step of executing following method:
Multiple fragment Fragment are buffered in the adapter of view slide handover control;
When page slide handover, Fragment to be shown is obtained from the multiple Fragment by the adapter It is added in the view slide handover control.
The embodiment of the present invention has the beneficial effect that:
The embodiment of the present invention in adapter by caching Fragment in advance, only need to be from so that when page slide handover Corresponding Fragment is searched in the Fragment of caching to be added in view slide handover control, avoids adapter pair The repetition of Fragment creates, and optimizes the performance of adapter load Fragment, avoids the wasting of resources, it is sliding to improve the page Efficiency of movement, user experience is more preferably.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the flow chart of the method for multi-page slide handover in first embodiment of the invention;
Fig. 2 is the flow chart of the method for multi-page slide handover in second embodiment of the invention;
Fig. 3 is the flow chart of the method for multi-page slide handover in third embodiment of the invention;
Fig. 4 is the flow chart of the method for multi-page slide handover in fourth embodiment of the invention;
Fig. 5 is the structural schematic diagram of the device of multi-page slide handover in one embodiment of the invention.
In figure:1- cache module, 2- switching module, 21- search unit, 22- adding unit, 3- determining module, 4- shielding Module, 5- destroy module.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
First embodiment of the invention provides a kind of method of multi-page slide handover, as shown in Figure 1, including:
Step S11:Multiple fragment Fragment are buffered in the adapter of view slide handover control;
Step S12:When page slide handover, Fragment to be shown is obtained from multiple Fragment by adapter It is added in view slide handover control.
The process that the embodiment of the present invention generates fragment Fragment to adapter is optimized, by by multiple fragments Fragment is buffered in adapter, and subsequent page is all shown using the Fragment in caching, no longer creation Fragment, The repetition creation to Fragment is avoided, page sliding efficiency is improved.
Second embodiment of the invention provides a kind of method of multi-page slide handover, as shown in Fig. 2, including:
Step S21:Multiple fragment Fragment are buffered in the adapter of view slide handover control;
Step S22:When page slide handover, the key assignments that tracking and unique identification are carried out to Fragment to be shown is determined key;So that adapter accurately gets Fragment to be shown from multiple Fragment of caching;
Step S23:Found out from multiple Fragment by adapter Fragment corresponding with key assignments key be used as to The Fragment of display;
Step S24:Fragment to be shown is added in view slide handover control by adapter.
After multiple fragment Fragment are buffered in adapter as a result, in page slide handover, adapter Fragment to be shown is accurately got from multiple Fragment of caching according to key assignments key, and then will be to be shown Fragment is added in view slide handover control, avoids the repetition creation to Fragment, improves page sliding effect Rate.
Third embodiment of the invention provides a kind of method of multi-page slide handover, as shown in figure 3, including:
Step S31:Multiple fragment Fragment are buffered in the adapter of view slide handover control;
Step S32:When page slide handover, by adapter according to currently showing in view slide handover control The quantity remainder of multiple Fragment of the index value and caching of Fragment generates key assignments key;
Adapter can be directly according to the quantity remainder of the index value of current Fragment and the Fragment of caching as a result, Key assignments key is obtained, and then finds caching Fragment to be shown from the Fragment of multiple cachings, is avoided pair The repetition of Fragment creates;
Step S33:Found out from multiple Fragment by adapter Fragment corresponding with key assignments key be used as to The Fragment of display;
Step S34:Fragment to be shown is added in view slide handover control by adapter.
Obviously, multiple fragment Fragment are by being buffered in adapter by the embodiment of the present invention, when page slide handover, Key assignments is directly obtained according to the quantity remainder of the index value of current Fragment and the Fragment of caching by adapter Key, and then be added in view slide handover control from Fragment to be shown is found in the Fragment of multiple cachings, That is no matter slide the page quantity increase how much, subsequent page is all carried out using the Fragment in caching always Display avoids the repetition creation to Fragment, improves page sliding efficiency.
Fourth embodiment of the invention provides a kind of method of multi-page slide handover, as shown in figure 4, including:
Step S41:Multiple fragment Fragment are buffered in the adapter of view slide handover control;
Step S42:When page slide handover, by adapter according to currently showing in view slide handover control The quantity remainder of multiple Fragment of the index value and caching of Fragment generates key assignments key;
Step S43:Found out from multiple Fragment by adapter Fragment corresponding with key assignments key be used as to The Fragment of display;
Step S44:Fragment to be shown is added in view slide handover control by adapter;
Step S45:Shielding adapter destroy to Fragment the destruction function of operation;Shield the destruction letter of adapter After number, even if the quantity of the sliding page, which has exceeded view slide handover control, defaults the number that can be cached, adapter will not be sold Destroy any one Fragment;
Step S46:When exiting the operation of page slide handover, the multiple Fragment cached in adapter are destroyed;
When page close, the multiple Fragment cached in adapter are destroyed, and when page slide handover, then it adopts always It is shown with the multiple Fragment cached in adapter, improves page sliding efficiency, user experience is more preferably.
Obviously, the embodiment of the present invention is in page slide handover, with the increase of the sliding page, since key assignments key is logical Quantity remainder after multiple Fragment of the index value and caching of the Fragment currently shown generates, wherein currently show Fragment also belongs to one in the multiple Fragment cached in adapter, therefore, masks and destroys function in adapter Afterwards, adapter will not avoid the process that adapter repeats to create and repeats to destroy Fragment without Fragment is destroyed, The wasting of resources is avoided, page sliding efficiency is improved.
Fifth embodiment of the invention provides a kind of device of multi-page slide handover, as shown in figure 5, including:
Cache module 1, for multiple fragment Fragment to be buffered in the adapter of view slide handover control;
Switching module 2 is obtained from multiple Fragment to be shown when being used for page slide handover by adapter Fragment is added in view slide handover control.
Multiple Fragment are buffered in adapter by the embodiment of the present invention by cache module 1, are carrying out the page every time When slide handover, Fragment to be shown is obtained from multiple Fragment by adapter by switching module 2 and is added to view In figure slide handover control, even if the quantity of page sliding defaults the Fragment that can be cached beyond view slide handover control, Since the Fragment of display is the Fragment in caching always, the repetition creation process to Fragment is avoided, The performance for optimizing adapter load Fragment improves page sliding efficiency.
Sixth embodiment of the invention provides a kind of device of multi-page slide handover, as shown in figure 5, including:
Cache module 1, for multiple fragment Fragment to be buffered in the adapter of view slide handover control;
Switching module 2 is obtained from multiple Fragment to be shown when being used for page slide handover by adapter Fragment is added in view slide handover control.
Optionally, further include:
Determining module 3, for determining the key assignments key for carrying out tracking and unique identification to Fragment to be shown.It is optional Ground, determining module 3 are specifically used for:
It according to the index value of the Fragment currently shown in view slide handover control and is cached more by adapter The quantity remainder of a Fragment generates key assignments key.
Optionally, switching module 2 includes:
Unit 21 is searched, it is corresponding with key assignments key for being found out from multiple Fragment by adapter Fragment is as Fragment to be shown;
Adding unit 22, for Fragment to be shown to be added in view slide handover control by adapter.
Multiple Fragment are buffered in adapter by the embodiment of the present invention by cache module 1, by determining module 3 true After the key assignments key for having determined Fragment to be shown, by the search unit 21 in switching module 2 by adapter from multiple To be shown Fragment corresponding with key assignments key is found out in Fragment, then is led to by the adding unit 22 in switching module 2 It crosses adapter Fragment to be shown is added in view slide handover control and show, due to the Fragment of display Always it is the Fragment in caching, therefore, avoids the repetition creation process to Fragment, optimize adapter load The performance of Fragment improves page sliding efficiency.
Seventh embodiment of the invention provides a kind of device of multi-page slide handover, as shown in figure 5, including:
Cache module 1, for multiple fragment Fragment to be buffered in the adapter of view slide handover control;
Switching module 2 is obtained from multiple Fragment to be shown when being used for page slide handover by adapter Fragment is added in view slide handover control.
Optionally, further include:
Determining module 3, for determining the key assignments key for carrying out tracking and unique identification to Fragment to be shown.It is optional Ground, determining module 3 are specifically used for:
It according to the index value of the Fragment currently shown in view slide handover control and is cached more by adapter The quantity remainder of a Fragment generates key assignments key.
Optionally, switching module 2 includes:
Unit 21 is searched, it is corresponding with key assignments key for being found out from multiple Fragment by adapter Fragment is as Fragment to be shown;
Adding unit 22, for Fragment to be shown to be added in view slide handover control by adapter.
Optionally, further include:
Shroud module 4 destroy to Fragment the destruction function of operation for shielding adapter.To avoid adapter Repeat to Fragment the operation of destruction.
Optionally, further include:
Module 5 being destroyed, when for exiting the operation of page slide handover, destroying the multiple Fragment cached in adapter.
The embodiment of the present invention is by shroud module 4, after the destruction function mask in adapter, even if the page slides quantity The Fragment quantity that can be cached is defaulted beyond view slide handover control, adapter will not carry out pin to any Fragment The operation ruined avoids the operation for repeat to Fragment destruction.As it can be seen that multi-page sliding provided in an embodiment of the present invention The device of switching not only can create process to avoid the repetition to Fragment, moreover it is possible to the repetition to Fragment be avoided to destroy Operation, improves page sliding efficiency, and user experience is more preferably, directly multiple by what is cached in adapter when page close Fragment is all destroyed.
Eighth embodiment of the invention, the present embodiment are on the basis of the above embodiments, to be with view slide handover control Default can cache the ViewPager of three Fragment, and adapter is when ViewPager and Fragment is used in combination For FragmentPagerAdapter, an Application Example of the invention is introduced.
The adapter FragmentPagerAdapter mechanism for generating Fragment is optimized.
It pre-creates three Fragment to be buffered in FragmentPagerAdapter, subsequent page all uses these three Fragment shown, no longer creation Fragment.When page slide handover, according to the index value of current Fragment and Cache Fragment quantity remainder and generate key assignments key, find in three Fragment the corresponding Fragment of key assignments key be used as to The Fragment of display is added in ViewPager, avoids repetition creation.
Destruction when sliding in FragmentPagerAdapter to Fragment is shielded, avoids repeating to destroy, works as the page When closing, three Fragment cached in FragmentPagerAdapter are destroyed.
The embodiment of the present invention is solved when ViewPager and Fragment is used in combination using caching technology to page sliding property The influence of energy, optimizes user experience, ensure that the normal of core business function.FragmentPagerAdapter does not make directly Index of reference value searches Fragment, but three Fragment are first cached in adapter FragmentPagerAdapter, so The key that FragmentPagerAdapter is obtained using the index value and caching Fragment quantity remainder of current Fragment afterwards Value key searches next Fragment to be shown, during page slide handover, always using being buffered in Fragment in FragmentPagerAdapter optimizes the property of FragmentPagerAdapter load Fragment Can, the method for multi-page slide handover provided in an embodiment of the present invention can apply it is some do topic application it is upper, with promoted inscribe The multiplexing performance of the page, so that user experience is more preferably.
Ninth embodiment of the invention provides a kind of computer readable storage medium, as shown in Figs 1-4, computer-readable storage The step of being stored with computer program on medium, following method realized when computer program is executed by processor:
Step S11:Multiple fragment Fragment are buffered in the adapter of view slide handover control;
Step S12:When page slide handover, Fragment to be shown is obtained from multiple Fragment by adapter It is added in view slide handover control.
The specific embodiment process of above method step can be found in second to fourth embodiment, and the present embodiment is no longer heavy herein It repeats again.
Tenth embodiment of the invention provides a kind of computer equipment, and as shown in Figs 1-4, computer equipment includes:Memory, Processor and storage are on a memory and the computer program that can run on a processor, computer program are executed by processor When, the step of executing following method:
Step S11:Multiple fragment Fragment are buffered in the adapter of view slide handover control;
Step S12:When page slide handover, Fragment to be shown is obtained from multiple Fragment by adapter It is added in view slide handover control.
The specific embodiment process of above method step can be found in second to fourth embodiment, and the present embodiment is no longer heavy herein It repeats again.
Obviously, the present invention in adapter by caching Fragment in advance, so that need to only postpone when page slide handover Corresponding Fragment is searched in the Fragment deposited to be added in view slide handover control, avoids adapter pair While the repetition creation of Fragment, without destruction Fragment is repeated, the wasting of resources is avoided, adapter is optimized and adds The performance for carrying Fragment improves page sliding efficiency, and user experience is more preferably.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (14)

1. a kind of method of multi-page slide handover, which is characterized in that including:
Multiple fragment Fragment are buffered in the adapter of view slide handover control;
When page slide handover, Fragment addition to be shown is obtained from the multiple Fragment by the adapter Into the view slide handover control.
2. the method for multi-page slide handover as described in claim 1, which is characterized in that it is described by the adapter from institute It states and is obtained in multiple Fragment before Fragment to be shown is added in the view slide handover control, further include:
Determine the key assignments key that tracking and unique identification are carried out to the Fragment to be shown.
3. the method for multi-page slide handover as claimed in claim 2, which is characterized in that it is described by the adapter from institute It states and obtains Fragment to be shown in multiple Fragment and be added in the view slide handover control, including:
Fragment corresponding with the key assignments key is found out from the multiple Fragment by the adapter as institute State Fragment to be shown;
The Fragment to be shown is added in the view slide handover control by the adapter.
4. the method for multi-page slide handover as claimed in claim 2, which is characterized in that the determination is to described to be shown Fragment carries out the key assignments key of tracking and unique identification, including:
By the adapter according to the index value and caching of the Fragment currently shown in the view slide handover control The quantity remainder of the multiple Fragment generate the key assignments key.
5. the method for multi-page slide handover as described in claim 1, which is characterized in that when the page slide handover, also Including:
Shield the destruction function that the adapter destroy to the Fragment operation.
6. the method for multi-page slide handover as described in claim 1, which is characterized in that further include:
When exiting the operation of page slide handover, the multiple Fragment cached in the adapter is destroyed.
7. a kind of device of multi-page slide handover, which is characterized in that including:
Cache module, for multiple fragment Fragment to be buffered in the adapter of view slide handover control;
Switching module is obtained from the multiple Fragment to be shown when being used for page slide handover by the adapter Fragment be added in the view slide handover control.
8. the device of multi-page slide handover as claimed in claim 7, which is characterized in that further include:
Determining module, for determining the key assignments key for carrying out tracking and unique identification to the Fragment to be shown.
9. the device of multi-page slide handover as claimed in claim 8, which is characterized in that the switching module includes:
Unit is searched, it is corresponding with the key assignments key for being found out from the multiple Fragment by the adapter Fragment is as the Fragment to be shown;
Adding unit, for the Fragment to be shown to be added to the view slide handover control by the adapter In part.
10. the device of multi-page slide handover as claimed in claim 8, which is characterized in that the determining module is specifically used for:
By the adapter according to the index value and caching of the Fragment currently shown in the view slide handover control The quantity remainder of the multiple Fragment generate the key assignments key.
11. the device of multi-page slide handover as claimed in claim 7, which is characterized in that further include:
Shroud module destroy to the Fragment destruction function of operation for shielding the adapter.
12. the device of multi-page slide handover as claimed in claim 7, which is characterized in that further include:
Destroy module, for exit the page slide handover operation when, destroy cached in the adapter it is the multiple Fragment。
13. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program is realized when the computer program is executed by processor such as the step of method described in any one of claims 1 to 6.
14. a kind of computer equipment, which is characterized in that the computer equipment includes:It memory, processor and is stored in described It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor Now such as the step of method described in any one of claims 1 to 6.
CN201810460017.3A 2018-05-15 2018-05-15 A kind of method, apparatus, storage medium and the equipment of multi-page slide handover Pending CN108920227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810460017.3A CN108920227A (en) 2018-05-15 2018-05-15 A kind of method, apparatus, storage medium and the equipment of multi-page slide handover

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810460017.3A CN108920227A (en) 2018-05-15 2018-05-15 A kind of method, apparatus, storage medium and the equipment of multi-page slide handover

Publications (1)

Publication Number Publication Date
CN108920227A true CN108920227A (en) 2018-11-30

Family

ID=64402424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810460017.3A Pending CN108920227A (en) 2018-05-15 2018-05-15 A kind of method, apparatus, storage medium and the equipment of multi-page slide handover

Country Status (1)

Country Link
CN (1) CN108920227A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110618848A (en) * 2018-12-25 2019-12-27 北京时光荏苒科技有限公司 Page display method, device, equipment and storage medium
CN111782210A (en) * 2019-04-04 2020-10-16 阿里巴巴集团控股有限公司 Page management method and device, electronic equipment and computer readable medium
CN112711728A (en) * 2020-12-31 2021-04-27 百果园技术(新加坡)有限公司 Page layout frame, page loading method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760156A (en) * 2016-01-29 2016-07-13 福建星网锐捷通讯股份有限公司 Main menu navigation method based on Android system
CN106775637A (en) * 2016-11-18 2017-05-31 腾讯音乐娱乐(深圳)有限公司 The page display method and device of a kind of application program
CN107277601A (en) * 2017-07-12 2017-10-20 北京潘达互娱科技有限公司 Video broadcasting method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760156A (en) * 2016-01-29 2016-07-13 福建星网锐捷通讯股份有限公司 Main menu navigation method based on Android system
CN106775637A (en) * 2016-11-18 2017-05-31 腾讯音乐娱乐(深圳)有限公司 The page display method and device of a kind of application program
CN107277601A (en) * 2017-07-12 2017-10-20 北京潘达互娱科技有限公司 Video broadcasting method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110618848A (en) * 2018-12-25 2019-12-27 北京时光荏苒科技有限公司 Page display method, device, equipment and storage medium
CN111782210A (en) * 2019-04-04 2020-10-16 阿里巴巴集团控股有限公司 Page management method and device, electronic equipment and computer readable medium
CN112711728A (en) * 2020-12-31 2021-04-27 百果园技术(新加坡)有限公司 Page layout frame, page loading method, device, equipment and storage medium
CN112711728B (en) * 2020-12-31 2024-02-09 百果园技术(新加坡)有限公司 Page layout frame, page loading method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US11601450B1 (en) Suspicious message report processing and threat response
US9906554B2 (en) Suspicious message processing and incident response
CN108920227A (en) A kind of method, apparatus, storage medium and the equipment of multi-page slide handover
Narayan et al. The curse of 140 characters: evaluating the efficacy of SMS spam detection on android
Lin et al. Malicious URL filtering—A big data application
WO2016164844A1 (en) Message report processing and threat prioritization
US20170126723A1 (en) Method and device for identifying url legitimacy
KR20140051914A (en) Compiler for regular expressions
CN105630767B (en) The comparative approach and device of a kind of text similarity
CN102148805A (en) Feature matching method and device
AU2016246074B2 (en) Message report processing and threat prioritization
CN108762627A (en) Instant message display methods and terminal
CN105589919B (en) Web page resources processing method and processing device
CN110069769A (en) Using label generating method, device and storage equipment
Fehling-Kaschek et al. A systematic tabular approach for risk and resilience assessment and Improvement in the telecommunication industry
CN110417746A (en) Cross-site scripting attack defence method, device, equipment and storage medium
CN104504075A (en) Fuzzy information processing method and device
CN108551439B (en) Method and device for improving policy template application
CN113783855B (en) Site evaluation method, apparatus, electronic device, storage medium, and program product
US11929994B2 (en) Web scraping prevention system
CN114301696A (en) Malicious domain name detection method and device, computer equipment and storage medium
Zhang et al. A Lightweight Online Advertising Classification System using Lexical-based Features.
CN108683716A (en) Service logic study, means of defence based on big data and study, protective device
CN105792213A (en) Information security check method, and terminal device
CN110083583A (en) Streaming events processing method and processing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181130