Android system-based development system, decoupling method and device
A development system and basic technology, applied in the computer field, can solve the problems of too deep state transfer path, complex relationship chain, low readability and maintainability, etc., achieve easy management, high flexibility, reduce programming complexity and The effect of dependent coupling
- 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 mechanisms, Figure 4A The realization of →4B→4C involves the following processes:
[0247] Card bag (CardBag), card list (CardBagList), card (CardItem) are all created in Activity, these three are common business classes, card (CardItem) is the inner class of card list (CardBagList).
[0248] The corresponding execution process is: click on the card - the card responds to the click - read the card package expansion status (CardBag.isPopup) - if the card package is not expanded, expand it (CardBag.popup()) - card list expansion
[0249] CardBagList, as a card list, aggregates the cards CardItem, and monitors the click event onClick in CardItem. When clicking, you need to first read whether the state in the card bag CardBag has been expanded CardBag.isPopup, and then call the expansion method of the card bag CardBag.popup() . Since it is necessary to directly read the state of the card package and perform ...
example 2
[0253] After the page is switched to the background, it is necessary to return to the state of the card package being put away, that is, Figure 4B , Figure 4C →4A.
[0254] Based on the existing Activity and Fragment processing mechanisms, Figure 4B , Figure 4C The realization of →4A involves the following processes:
[0255] Call CardBag.isPopup(), CardBag.packup(), CardBagList.isListPopup(), and CardBagList.packupList() in the life cycle method onpause() of the Activity. As there are 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 the stacking of a lot of business logic code. And, because the business components are not related, both portability and maintainability will be greatly reduced.
example 3
[0257] Based on the existing Activity and Fragment processing mechanisms, when the business changes, creating other page reuse components involves the following processing processes:
[0258] Create a new page, take the CardBagList and put it on the Activity page, but due to the strong reference of CardBagList and CardBag, all the logic code related to CardBag needs to be removed to pass the compilation, and the onPause() method of the Activity on the new page is also required. Add CardBagList.isListPopup() call and CardBagList.packupList() call to , the porting cost is high, and the function is easy to lose.
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