摘要 |
A method and apparatus for generating an unlocking interface, and an electronic device. The method for generating an unlocking interface comprises: receiving an unlocking request for an application program locked by an application lock (S101); determining, according to the unlocking request, an application program to be unlocked and an icon file of the application program (S102); extracting, according to the icon file, a first color value, and forming, based on the first color value, a first unlocking interface display layer corresponding to the application program (S103); acquiring a pre-generated special effect picture, and forming, based on the special effect picture, a second unlocking interface display layer corresponding to the application program (S104); forming, based on unlocking interaction information about the application lock, a third unlocking interface display layer corresponding to the application program (S105); and superposing the first, second, and third display layers by means of specific transparency separately to generate an unlocking interface (S106). An unlocking interface of which the display effect is the same as that of the prior art can be generated by only covering three display layers of an unlocking interface, the consumption of a CPU and the consumption of a GPU being relatively low. |