Picture resource recycling method and apparatus
A picture and resource technology, applied in the field of recycling picture resources, can solve problems such as OOM, NativeCache insufficient memory, unable to control picture resource recovery, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0080] This embodiment provides a method for loading image resources, such as figure 1 As shown, the method includes:
[0081] S101. Encapsulate the image resource recycling program into an image resource loading class.
[0082] In this step, before encapsulating the recovery program of the image resource into the image loading class, it is necessary to first encapsulate the loading program of the image background setting and the loading program of the image content display into the image resource loading class.
[0083] Wherein, the picture resource generally includes picture background setting and picture content display. When loading the picture resource, the background setting and picture content display need to be loaded, so the loading program of the picture background setting and the picture content display loading program are packaged in The picture resource loading class is in the Decode DrawableHelper, which is convenient for unified loading management.
[0084] Af...
Embodiment 2
[0144] Corresponding to Embodiment 1, this embodiment also provides a device for loading image resources, such as Figure 4 As shown, the device includes: a first encapsulation unit 41, a second encapsulation unit 42, a calling unit 43 and an establishment unit 44; wherein,
[0145] The first encapsulation unit 41 is used for encapsulating the recovery program of the picture resource into the picture resource loading class; here, before the first encapsulation unit 41 encapsulates the recovery program of the picture resource into the picture resource loading class, the The first encapsulation unit 41 first encapsulates the loading program of the picture background setting and the loading program of the picture content display into the picture resource loading class; wherein, the picture resource generally includes the picture background setting and the picture content display, when loading the picture resource, It is necessary to load the background setting and picture content...
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