(The implementation source code of Android floating window can be used as an example for reference. For the floating window displaying the monitored content, for example, 360 guards have a floating window with memory usage, which is displayed on a certain edge of the screen. The floating window is widely used in android, but the floating window should not be too large and should not be abused to avoid users' boredom. Description of the implementation of the floating window: 1. The floating window can be moved at will. 2. The current memory data is displayed in real time. 3. The upper layer data indicates the available memory value. 4. The lower layer data indicates the total memory value. 5. Click the floating window to display the close small icon to directly close it in the MyApplication class: create global variables. Generally, global variables tend to create a separate data class file and use static static variables. The method of adding data in Application is used here to implement global variables. Note that the android: name=. MyApplication attribute is added to the Application node in AndroidManifest.xml.)