modify widget interface for lua
Merge pull request #9699 from super626/fixandroid

fix background/foreground switch
Merge pull request #9709 from htlxyz/v3_origin

modify widget interface for lua