Traditional Culture Encyclopedia - Hotel franchise - How to do e4a foreground floating window program, just like desktop pet?

How to do e4a foreground floating window program, just like desktop pet?

Enter the Create Floating Button (,,,,,) in the code area. There are 9 parameters, including title, button size, picture and position. And the picture is what you call a pet. You will save the pet picture in the resource or SD. Build another clock, the clock cycle is adjustable, the default is 300ms, the time event is a picture cycle, and then enter the modify floating button (,,,,), with five parameters such as changing the picture, you can make the dynamic effect of the pet. Enter the main window. Long press the hover button ()

If the foreground () = false, then

Return to the application ()' This will return to your main window where you put the clock and other settings.

otherwise

Back to the desktop () `This means that you hold down the hover button in the main window, the main window returns to the background, and only the hover button is displayed on the desktop.

This is just writing with a mobile phone. You can enter the specific code in e4a.