Toast component realization method and system
A technology for implementing systems and methods, applied in the computer field, can solve problems such as dependence on acitvity and authorization, and achieve the effect of avoiding abnormal display
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0044] Embodiments of the present invention provide a method and system for implementing Toast components, which are used to solve the technical problem of relying on acitvity and authorization when implementing Toast components in the prior art.
[0045] In order to solve the above technical problems, the general idea of the technical solution provided by the present invention is as follows:
[0046] In the technical solution of the embodiment of the present invention, first obtain the Toast layout and create the root layout, then add the Toast root layout to the object of WindowManager through the addView function of WindowManager, and finally hold the handler object of the main thread message queue to convert the Toast The root layout is sent to the main thread message queue, and when the main thread processes the Toast root layout message, the corresponding Toast component can be displayed. Among them, the level of WindowManager.LayoutParams used to represent the display...
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