Implementation method of barrage effect
An implementation method and technology of barrage, applied in the fields of instruments, electrical digital data processing, electrical components, etc., can solve the problems of waste of system resources, high CPU usage, power consumption, etc., to reduce freezes, enhance user experience, and improve The effect of fluency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Example Embodiment
[0046] The present invention will be further described in detail below in conjunction with the drawings.
[0047] Such as figure 1 As shown, the method for implementing the barrage effect of the present invention includes the following steps:
[0048] Step 1. Customize the DanmakuBean metadata class of the bullet screen, which is the Object type provided by the Android system to store the metadata of the bullet screen;
[0049] Step 2. Customize the DanmakuItem class of barrage layout, inheriting the linear layout LinearLayout provided by the Android system to display barrage;
[0050] The custom barrage layout class DanmakuItem finally returns a bitmap, which includes the user's avatar and the published barrage content;
[0051] In the custom barrage layout class DanmakuItem, define the method createItem to create the barrage layout, get the corresponding View object of the avatar text and background content;
[0052] The method createItem can be implemented with the following code:
[...
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.
© 2023 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap