Development system based on Android system, decoupling method and device
A development system and message management technology, applied in the computer field, can solve the problems that Activity or Fragment coupling cannot realize reuse, complex relationship chain, low readability and maintainability, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0246] Based on the existing Activity and Fragment processing mechanism, Figure 4A The realization of →4B→4C involves the following process:
[0247] Card bag (CardBag), card list (CardBagList), and card (CardItem) are all created in Activity. These three are common business classes, and card (CardItem) is an internal class of card list (CardBagList).
[0248] The corresponding execution process is: click the card—the card responds to the click—read the expansion status of the card bag (CardBag.isPopup)—expand if the card bag is not expanded (CardBag.popup())—expand the card list
[0249] CardBagList is used as a card list, which aggregates card CardItem, and listens to the click event onClick in CardItem. When clicking, you need to first read whether the status in the card bag CardBag has been expanded CardBag.isPopup, and then call the card bag expansion method CardBag.popup() . Since it is necessary to directly read the status of the card package and execute the...
example 2
[0253] After the page is switched to the background, it is necessary to return to the state of the card package, that is, Figure 4B , Figure 4C →4A.
[0254] Based on the existing Activity and Fragment processing mechanism, Figure 4B , Figure 4C → The realization of 4A involves the following processes:
[0255] Call CardBag.isPopup(), CardBag.packup(), CardBagList.isListPopup(), CardBagList.packupList() in the life cycle method onpause() of the Activity. With more and more components, there will be a lot of business logic code stacked in onPause(), and the Activity will become bloated and difficult to maintain due to a large number of business logic code stacks. And, since business components are not related, portability and maintainability will be greatly reduced.
example 3
[0257] Based on the existing Activity and Fragment processing mechanism, when the business changes, creating other page reuse components involves the following processing process:
[0258] Create a new page, take the CardBagList and put it in the Activity page, but because CardBagList and CardBag are strongly referenced, all the logic code related to CardBag needs to be removed to pass the compilation, and the onPause() method of the new page Activity is also required Add the CardBagList.isListPopup() call and the CardBagList.packupList() call in , the migration cost is high, and the function is easy to be lost.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com