WO2017193574A1 - Screen-lock method, apparatus, and electronic device - Google Patents

Screen-lock method, apparatus, and electronic device Download PDF

Info

Publication number
WO2017193574A1
WO2017193574A1 PCT/CN2016/109307 CN2016109307W WO2017193574A1 WO 2017193574 A1 WO2017193574 A1 WO 2017193574A1 CN 2016109307 W CN2016109307 W CN 2016109307W WO 2017193574 A1 WO2017193574 A1 WO 2017193574A1
Authority
WO
WIPO (PCT)
Prior art keywords
component
information
lock screen
function
configuration file
Prior art date
Application number
PCT/CN2016/109307
Other languages
French (fr)
Chinese (zh)
Inventor
周峰
郑南岭
谷保震
Original Assignee
北京金山安全软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京金山安全软件有限公司 filed Critical 北京金山安全软件有限公司
Publication of WO2017193574A1 publication Critical patent/WO2017193574A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method, device, and electronic device for developing a lock screen interface.
  • Lock screens have received much attention as an important application in electronic devices. With the increasing demand for personalized devices for electronic devices, the demand for lock screen themes is growing. Therefore, it is a trend to provide users with a variety of lock screen themes through the theme application. At present, since the lock screen themes provided by the theme application are independent of each other, developers need to develop corresponding function modules according to the requirements of the lock screen theme when developing each lock screen theme, thereby reducing development efficiency.
  • the invention provides a development method, a device and an electronic device for a lock screen interface, which can solve the technical problem of low development efficiency when developing the lock screen theme.
  • a first aspect of the present invention provides a method for developing a lock screen interface, the method comprising:
  • the executable file is used to load a configuration file and a resource file in a lock screen installation package of a lock screen theme, and the configuration file includes layout information and style information of the universal function component.
  • the configuration file further includes animation information of at least one of the universal function components.
  • the animation information includes at least one of displacement information, reduction information, magnification information, transparency information, rotation information, and reverse information.
  • the universal function component includes at least one of a weather component, a clock component, a date component, an alarm component, a camera component, an unlocking prompt component, a short message prompt component, and a battery power prompt component.
  • the universal function component further includes a password unlocking component.
  • the configuration file further includes a function module of the custom function component, and layout information and style information of the custom function component.
  • the second aspect of the present invention further provides a device for developing a lock screen interface, including:
  • An acquisition module configured to acquire a function module of a general function component abstracted from a plurality of lock screen topics; a compiling module, configured to compile the function module into an executable file of an application installation package of the lock screen interface;
  • the executable file is used to load a configuration file and a resource file in a lock screen installation package of a lock screen theme, and the configuration file includes layout information and style information of the general function component.
  • the configuration file further includes animation information of at least one of the universal function components.
  • the animation information includes at least one of displacement information, reduction information, magnification information, transparency information, rotation information, and reverse information.
  • the universal function component includes at least one of a weather component, a clock component, a date component, an alarm component, a camera component, an unlocking prompt component, a short message prompt component, and a battery power prompt component.
  • the universal function component further includes a password unlocking component.
  • the configuration file further includes a function module of the custom function component, and layout information and style information of the custom function component.
  • a third aspect of the present invention provides an electronic device including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the memory Provided on a circuit board; a power circuit for powering various circuits or devices of the electronic device; a memory for storing executable program code; and a processor for executing the executable program code by reading executable program code stored in the memory Corresponding program for performing the following steps:
  • the executable file is used to load a configuration file and a resource file in a lock screen installation package of a lock screen theme, and the configuration file includes layout information and style information of the universal function component.
  • a fourth aspect of the present invention provides a storage medium, wherein the storage medium is used to store an application, and the application is configured to execute a lock disclosed in the first aspect of the embodiment of the present invention at runtime The development method of the screen interface.
  • the fifth aspect of the embodiments of the present invention further provides an application program, where the application is used to execute a development method of a lock screen interface disclosed in the first aspect of the embodiments of the present invention at runtime.
  • FIG. 1 is a schematic flowchart of a method for developing a lock screen interface according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a display device displaying a target lock screen according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a lock screen interface development apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • the device for developing a lock screen interface (hereinafter referred to as "the device of the present invention") in the embodiment of the present invention is built in an electronic device, and the electronic device includes a device that can be used for compiling, such as a personal computer or a tablet computer.
  • the application installation package of the lock screen interface developed by the development device of the lock screen interface can be run on the electronic device.
  • the electronic device of the application installation package running the lock screen interface is simply referred to as a display device in the embodiment of the present invention.
  • FIG. 1 is a schematic flowchart diagram of a method for developing a lock screen interface according to an embodiment of the present invention. Such as The method shown in Figure 1 can include:
  • Step S11 Acquire a functional module of a common functional component abstracted in advance by a plurality of lock screen themes.
  • a generic functional component is a functional component that is used by multiple lock screen themes. In other alternative embodiments, other names may also be used, and the invention may not be limited thereby.
  • the common functional components are mainly divided into two categories. The first one is the functional components used by the main display interface, such as weather components, clock components, date components, alarm components, camera components, unlocking prompt components, short message prompt components, or battery power. Prompt component.
  • the second category is the functional components used by the password unlocking interface, such as the password unlocking component.
  • the functional modules of the generic functional components are used to implement the functions of the generic functional components.
  • the generic functional component is a weather component
  • the functional component of the weather component allows the display device to display a corresponding weather condition.
  • All weather conditions are abstracted as: cloudy, dusty, ice/cold, rain, snow, sunny, gale, no data.
  • the function module of the weather component can realize the following functions: when detecting that the current weather condition is cloudy, let the display device display cloudy corresponding information, such as a cloudy corresponding icon, or a cloudy corresponding description information; when the current weather condition is detected; For strong winds, let the display device display the information corresponding to the strong wind, and so on in other weather conditions.
  • a generic functional component is a clock component, and a clock can be abstracted into a digital clock and an analog clock.
  • the function module of the digital clock component allows the display device to display the current time point in digital form; the function module of the module clock component allows the display device to display the current time point in a pattern.
  • a generic functional component is a date component, and dates can be abstracted into three formats. Format one: month, day, week three elements; format two: (month, day) and week two elements; format three: (month, day, week) an element.
  • the function module of the date component allows the display device to display the current date in any of the above formats.
  • the universal function component is an alarm component
  • the function module of the alarm component allows the display device to output prompt information in a preset manner at a specified time point.
  • the universal function component is an unlocking prompt component
  • the function module of the unlocking prompt component can cause the display device to unlock the prompt in a preset unlocking prompt manner.
  • the general function component is a short message prompt component
  • the function module of the short message prompt component can cause the display device to display a prompt message at a specified position when detecting a short message.
  • the universal function component is a battery power prompt component, which can abstract the battery power into various states, such as 100%, 80% to 99%, 60% to 79%, 40% to 59%, 20% to 39%, and 0. % ⁇ 19%.
  • the function module of the battery power prompt component allows the display device to display a prompt message indicating the current state of the battery power.
  • the universal function component is a camera component
  • the function module of the camera component allows the display device to display a camera icon at a specified location, and provides a shortcut to the camera application through the camera icon.
  • the universal function component is a password unlocking component, and the format of the password unlocking component is divided into a nine-square grid pattern unlocking and a digital unlocking.
  • the function module of the Jiugongge pattern unlocking component allows the display device to display the unlocking icon in a nine-square grid pattern; the function module of the digital unlocking component allows the display device to display the unlocking icon in the form of digital unlocking.
  • step S12 the function module is compiled into an executable file of an application installation package of the lock screen interface.
  • the executable file is used to load a configuration file and a resource file in a lock screen installation package of a lock screen theme, and the configuration file includes layout information and style information of the universal function component.
  • the function modules of the pre-abstracted general function component are compiled into the executable file of the application installation package of the lock screen interface, and when the display device executes the executable file, the lock of the lock screen theme can be loaded by the dynamic loading technology.
  • Configuration files and resource files in the screen installation package is an installation package of a lock screen application for providing a lock screen service for the screen.
  • the configuration file includes layout information and style information of the general function component.
  • the common function component is a weather component
  • the configuration file can be used to configure the location, color, size, and the like of the weather component in the main display interface, and can also be used to configure the weather component to display the description information of the current weather, such as the current weather is sunny, and the description information. It is cloudless.
  • the resource file can include pictures of the various weather conditions described above.
  • a generic functional component is a clock component, and a clock can be abstracted into a digital clock and an analog clock.
  • the format of the digital clock consists of a font of 0 to 9 digits and a colon.
  • the configuration file can be used to configure the size, color, position, etc. of the number.
  • Profiles can also be used to configure the layout of digital clocks, such as horizontal alignment (such as between numbers, numbers, and horizontal spacing between two points) or vertical alignment (such as vertical alignment between hour and digital hands, and horizontal arrangement of numbers between numbers) .
  • the resource file may include a font of numbers from 0 to 9.
  • the format of the analog clock consists of an hour hand, a minute hand, a second hand, a dial, and a cover.
  • the configuration file can be used to configure the position, size, and color of the analog clock, as well as to configure the second hand to rotate at a constant speed or to beat once per second.
  • the resource file may include a resource file of an hour hand, a minute hand, a second hand, a dial, and a display icon of the cover.
  • the clock component of the lock screen theme may correspond to a format, and the display device detects the current time by abstracting the function module of the clock component corresponding to the format, and displays the corresponding content on the main display interface according to the configuration file and the resource file.
  • the configuration information of the analog clock component configured by the configuration file is: width and height are respectively 200dp, and is horizontally centered in the screen, and the distance from the top is 100dp, and the outer frame image, the hour hand image, the minute hand image, the second hand image, respectively specify one. Corresponding picture resources, and the pointer moves in a constant speed.
  • the display device can display the corresponding content on the main display interface according to the analog clock component configured by the configuration file.
  • the generic function component is a date component, which can be configured with a date number font, color, and large through a configuration file. Small, location, etc.
  • the date component of the lock screen theme may correspond to a format, and the display device detects the current date through the function module of the date component corresponding to the abstracted format, and displays the corresponding content on the main display interface according to the configuration file and the resource file.
  • the common function component is an alarm component
  • the configuration file of the lock screen theme can be used to configure whether to display description information, such as the alarm time set by the alarm icon, the alarm time set by the current display device, and the above font, size, position, color, and the like. Can be configured in the configuration file.
  • the resource file may include a picture resource corresponding to the alarm component.
  • the generic function component is an unlocking prompt component
  • the configuration file can be used to configure the unlocking prompt component in the main display interface layout and style.
  • the generic function component is a short message prompt component
  • the configuration file can be used to configure the short message prompt component in the main display interface layout and style (such as background color, transparency, etc.).
  • Short messages include QQ messages, emails, Face Book messages, and more.
  • the generic feature component is the battery charge component
  • the profile can be used to configure the battery display component layout and style in the main display interface.
  • the display device detects the current power through the abstracted function module of the battery power prompt component, and displays the corresponding content on the main display interface according to the configuration file and the resource file.
  • the generic functional component is a camera component
  • the configuration file configures the layout and style of the camera component in the main display interface.
  • the resource file may include a display icon of the camera component.
  • the universal function component is a password unlocking component
  • the configuration file can be used to configure the location, color, and the like of the password unlocking component in the password unlocking interface.
  • the format of the password unlocking component is 9-square grid pattern unlocking
  • the configuration file can also be used to configure the size, transparency, and the like of each pattern in the nine-square grid.
  • the configuration file further includes animation information of at least one of the universal function components.
  • the animation information includes at least one of displacement information, reduction information, magnification information, transparency information, rotation information, and reverse information.
  • the common function component takes the unlocking prompt component as an example, and the configuration file can also be used to configure the animation information of the unlocking prompt component, so that the icon of the unlocking prompt component is animated on the main display interface.
  • the configuration file also includes functional modules of the custom functional components.
  • a custom function component refers to a functional component other than a general-purpose functional component, such as a universal component, including a weather component, a clock component, a date component, an alarm component, a camera component, an unlocking prompt component, a short message prompt component, and does not include a battery power prompt.
  • Component if the lock screen theme needs to set the battery power prompt component, at this time, the configuration file of the main display interface not only includes the style information and layout information of the battery power prompt component, but also includes a module for realizing the function of the battery power prompt component.
  • the function modules of the common function components of the plurality of lock screen themes that are pre-abstracted are compiled into the executable file of the application installation package of the lock screen interface, and the executable file is at runtime.
  • General function group The function module of the piece performs the corresponding function, so that each time a lock screen theme is developed, it is not necessary to develop the function module of the universal function component, and only the layout information and the style information are configured for the common function component, compared with the prior art, each development A lock screen theme needs to be developed to improve the development efficiency through the functional modules of the functional components.
  • FIG. 2 is a schematic flowchart of a display device displaying a target lock screen according to an embodiment of the present invention.
  • the target lock screen theme is any lock screen theme in multiple lock screen themes.
  • the embodiment of the invention is executed on the premise that the display device runs the above executable file.
  • the lock screen interface of the embodiment of the invention comprises a main display interface and a password unlocking interface, and the main display interface is used for displaying functional components, such as a weather component, a clock component, a date component, an alarm component, a camera component, an unlocking prompt component, and a short message prompt component. , battery power prompt component, and so on.
  • the password unlock interface is used to display the decode unlock page.
  • step S21 the package name of the input target lock screen theme is obtained.
  • the display device may provide an entry of a plurality of lock screen themes, and when detecting a trigger instruction for an entry of a lock screen theme, the display device may use the lock screen theme as a target lock Screen theme and get the package name of the target lock screen theme.
  • the lock screen theme before the screen is turned off is the target lock screen theme, and the package name of the target lock screen theme is obtained.
  • Step S22 Determine, by using a package name of the target lock screen theme, a lock screen installation package of the target lock screen theme.
  • the lock screen installation package includes a configuration file and a resource file of the main display interface, where the configuration file of the main display interface includes layout information and style information of a common function component of the main display interface;
  • the lock screen installation package further includes a configuration file and a resource file of the password unlocking interface, and the configuration file of the password unlocking interface includes layout information and style information of the password unlocking component.
  • the configuration content of the main display interface and the password unlocking interface are in different configuration files.
  • the configuration content of the main display interface and the password unlocking interface are It can be set in the same configuration file, and the present invention is not limited.
  • Step S23 Determine, by using the layout information of the password unlocking component of the password unlocking interface, the layout of the password unlocking component on the password unlocking interface.
  • Step S24 Determine, by using the style information of the password unlocking component, a resource file invoked by the password unlocking component, and a style of the password unlocking component in the password unlocking interface.
  • Step S25 The password unlocking interface is generated and displayed by loading the corresponding resource file by the layout of the password unlocking interface and the pattern.
  • Step S26 when the password is unlocked, the layout of the general function component of the main display interface on the main display interface is determined by the layout information of the general function component of the main display interface.
  • Step S27 Determine, by using the style information of the general function component of the main display interface, a resource file invoked by the universal function component of the main display interface, and a style of the universal function component in the main display interface.
  • Step S28 The main display interface is generated and displayed by loading the corresponding resource file by the layout of the universal function component and the style.
  • steps S23-S25 are used to display the password unlocking interface
  • steps S26-S28 are used to display the main display interface.
  • the password unlocking interface is displayed first, and if the password is unlocked, the display main display interface is executed.
  • the display device can simultaneously display the password unlocking interface and the main display interface, and the password unlocking interface is displayed on the main display interface.
  • the main display interface when the main display interface is displayed, if a resource file associated with the package name of the target lock screen theme exists in the resource file, the corresponding resource file is directly loaded according to the package name of the target lock screen theme.
  • the motion of the icon called by the corresponding functional component may also be controlled according to the animation information of the functional component in the configuration file.
  • the corresponding lock screen installation package is determined by the obtained package name of the lock screen theme, and then the content in the lock screen installation package is loaded by loading, thereby displaying the corresponding lock screen interface. . Since only the resource file and the configuration file are set in the lock screen installation package of the lock screen theme, the volume of the lock screen installation package of the lock screen theme is reduced, thereby reducing the traffic consumed when downloading the lock screen theme.
  • an embodiment of the present invention provides a schematic structural diagram of a device for developing a lock screen interface.
  • the apparatus of the present invention may at least include an obtaining module 31 and a compiling module 32, wherein:
  • the obtaining module 31 is configured to acquire a function module of a general function component abstracted from a plurality of lock screen themes; the compiling module 32 is configured to compile the function module into an executable file of the application installation package of the lock screen interface.
  • the executable file is used to load a configuration file and a resource file in a lock screen installation package of a lock screen theme, and the configuration file includes layout information and style information of the general function component.
  • the configuration file further includes animation information of at least one of the universal function components.
  • the animation information includes at least one of displacement information, reduction information, magnification information, transparency information, rotation information, and reverse information.
  • the universal function component includes at least one of a weather component, a clock component, a date component, an alarm component, a camera component, an unlocking prompt component, a short message prompt component, and a battery power prompt component.
  • the universal function component further includes a password unlocking component.
  • the configuration file further includes a function module of the custom function component, and layout information and style information of the custom function component.
  • an embodiment of the present invention provides a schematic structural diagram of an electronic device.
  • the electronic device 4 includes the lock screen interface development device described in FIG. 3, and the electronic device 4 can be used to implement the lock screen interface development method provided in the embodiment of FIG. 1. Specifically:
  • the electronic device 4 may include a housing 41, a processor 42, a memory 43, a circuit board 44, and a power supply circuit 45, wherein the circuit board 44 is disposed inside a space surrounded by the housing 41, and the processor 42 and the memory 43 are disposed in the circuit On the board 44; a power supply circuit 45 for powering various circuits or devices of the electronic device; a memory 43 for storing executable program code; and a processor 42 for executing and executing by reading executable program code stored in the memory 43
  • the program code corresponds to the program to perform the following steps:
  • the technical solution of the embodiments of the present invention may be embodied in the form of a computer software product stored in a storage medium (such as a ROM/RAM, a magnetic disk or an optical disk).
  • the method includes a plurality of instructions for controlling the electronic device to perform part or all of the development method of the lock screen interface described in FIG. 1 of the embodiment of the present invention.
  • first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
  • features defining “first” or “second” may include at least one of the features, either explicitly or implicitly.
  • the meaning of "a plurality” is at least two, such as two, three, etc., unless specifically defined otherwise.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module if in software When the functional modules are implemented and sold or used as stand-alone products, they can also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

Provided are a screen-lock method, apparatus, and electronic device; said method comprises: obtaining a function module, extracted in advance from a plurality of lock-screen themes, of a universal function component (S11); compiling said function module into an executable file of an application installation package of a lock-screen interface; said executable file being used for loading a configuration file and resource file of the lock-screen package of the lock-screen theme, and said configuration file comprising the layout information and style information of said universal function component (S12). The method can solve the technical problem of low efficiency in the development of lock-screen themes.

Description

锁屏界面的开发方法、装置及电子设备Development method, device and electronic device of lock screen interface
相关申请的交叉引用Cross-reference to related applications
本申请要求北京金山安全软件有限公司于2016年5月13日提交的、发明名称为“锁屏界面的开发方法、装置及电子设备”的、中国专利申请号“201610319401.2”的优先权。This application claims the priority of the Chinese patent application No. "201610319401.2" filed on May 13, 2016 by Beijing Jinshan Security Software Co., Ltd., entitled "Development Method, Device and Electronic Device for Lock Screen Interface".
技术领域Technical field
本发明涉及计算机技术领域,尤其涉及一种锁屏界面的开发方法、装置及电子设备。The present invention relates to the field of computer technologies, and in particular, to a method, device, and electronic device for developing a lock screen interface.
背景技术Background technique
锁屏作为电子设备中的一项重要应用而备受关注。随着用户对电子设备的个性化需求的日益增长,锁屏主题的需求量也越来越大。因此,通过主题应用程序的方式为用户提供各式各样的锁屏主题成为一种趋势。目前,由于通过主题应用程序提供的锁屏主题之间相互独立,开发人员在开发每个锁屏主题时都需要根据该锁屏主题的需求开发相应的功能模块,降低了开发效率。Lock screens have received much attention as an important application in electronic devices. With the increasing demand for personalized devices for electronic devices, the demand for lock screen themes is growing. Therefore, it is a trend to provide users with a variety of lock screen themes through the theme application. At present, since the lock screen themes provided by the theme application are independent of each other, developers need to develop corresponding function modules according to the requirements of the lock screen theme when developing each lock screen theme, thereby reducing development efficiency.
发明内容Summary of the invention
本发明提供一种锁屏界面的开发方法、装置及电子设备,可以解决开发锁屏主题时,开发效率较低的技术问题。The invention provides a development method, a device and an electronic device for a lock screen interface, which can solve the technical problem of low development efficiency when developing the lock screen theme.
为了解决上述技术问题,本发明第一方面提供了一种锁屏界面的开发方法,所述方法包括:In order to solve the above technical problem, a first aspect of the present invention provides a method for developing a lock screen interface, the method comprising:
获取预先由多个锁屏主题中抽象出的通用功能组件的功能模块;Obtaining functional modules of common functional components abstracted in advance by a plurality of lock screen themes;
将所述功能模块编译到锁屏界面的应用安装包的可执行文件中;Compiling the function module into an executable file of an application installation package of the lock screen interface;
其中,所述可执行文件用于加载锁屏主题的锁屏安装包中的配置文件和资源文件,所述配置文件包括所述通用功能组件的布局信息和样式信息。The executable file is used to load a configuration file and a resource file in a lock screen installation package of a lock screen theme, and the configuration file includes layout information and style information of the universal function component.
其中,所述配置文件还包括至少一个所述通用功能组件的动画信息。Wherein, the configuration file further includes animation information of at least one of the universal function components.
进一步的,所述动画信息包括位移信息、缩小信息、放大信息、透明信息、旋转信息、反转信息中的至少一种信息。 Further, the animation information includes at least one of displacement information, reduction information, magnification information, transparency information, rotation information, and reverse information.
其中,所述通用功能组件包括天气组件、时钟组件、日期组件、闹钟组件、相机组件、解锁提示组件、短消息提示组件、电池电量提示组件中的至少一个。The universal function component includes at least one of a weather component, a clock component, a date component, an alarm component, a camera component, an unlocking prompt component, a short message prompt component, and a battery power prompt component.
进一步的,所述通用功能组件还包括密码解锁组件。Further, the universal function component further includes a password unlocking component.
其中,所述配置文件还包括自定义功能组件的功能模块,以及,所述自定义功能组件的布局信息和样式信息。The configuration file further includes a function module of the custom function component, and layout information and style information of the custom function component.
相应地,本发明第二方面还提供了一种锁屏界面的开发装置,包括:Correspondingly, the second aspect of the present invention further provides a device for developing a lock screen interface, including:
获取模块,用于获取预先由多个锁屏主题中抽象出的通用功能组件的功能模块;编译模块,用于将所述功能模块编译到锁屏界面的应用安装包的可执行文件中;其中,所述可执行文件用于加载锁屏主题的锁屏安装包中的配置文件和资源文件,所述配置文件包括所述通用功能组件的布局信息和样式信息。An acquisition module, configured to acquire a function module of a general function component abstracted from a plurality of lock screen topics; a compiling module, configured to compile the function module into an executable file of an application installation package of the lock screen interface; The executable file is used to load a configuration file and a resource file in a lock screen installation package of a lock screen theme, and the configuration file includes layout information and style information of the general function component.
其中,所述配置文件还包括至少一个所述通用功能组件的动画信息。Wherein, the configuration file further includes animation information of at least one of the universal function components.
进一步的,所述动画信息包括位移信息、缩小信息、放大信息、透明信息、旋转信息、反转信息中的至少一种信息。Further, the animation information includes at least one of displacement information, reduction information, magnification information, transparency information, rotation information, and reverse information.
其中,所述通用功能组件包括天气组件、时钟组件、日期组件、闹钟组件、相机组件、解锁提示组件、短消息提示组件、电池电量提示组件中的至少一个。The universal function component includes at least one of a weather component, a clock component, a date component, an alarm component, a camera component, an unlocking prompt component, a short message prompt component, and a battery power prompt component.
进一步的,所述通用功能组件还包括密码解锁组件。Further, the universal function component further includes a password unlocking component.
其中,所述配置文件还包括自定义功能组件的功能模块,以及,所述自定义功能组件的布局信息和样式信息。The configuration file further includes a function module of the custom function component, and layout information and style information of the custom function component.
相应地,本发明第三方面还提供了一种电子设备,包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行以下步骤:Accordingly, a third aspect of the present invention provides an electronic device including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the memory Provided on a circuit board; a power circuit for powering various circuits or devices of the electronic device; a memory for storing executable program code; and a processor for executing the executable program code by reading executable program code stored in the memory Corresponding program for performing the following steps:
获取预先由多个锁屏主题中抽象出的通用功能组件的功能模块;Obtaining functional modules of common functional components abstracted in advance by a plurality of lock screen themes;
将所述功能模块编译到锁屏界面的应用安装包的可执行文件中;Compiling the function module into an executable file of an application installation package of the lock screen interface;
其中,所述可执行文件用于加载锁屏主题的锁屏安装包中的配置文件和资源文件,所述配置文件包括所述通用功能组件的布局信息和样式信息。The executable file is used to load a configuration file and a resource file in a lock screen installation package of a lock screen theme, and the configuration file includes layout information and style information of the universal function component.
相应地,本发明第四方面还提供了一种存储介质,其中,所述存储介质用于存储应用程序,所述应用程序用于在运行时执行本发明实施例第一方面公开的一种锁屏界面的开发方法。 Correspondingly, a fourth aspect of the present invention provides a storage medium, wherein the storage medium is used to store an application, and the application is configured to execute a lock disclosed in the first aspect of the embodiment of the present invention at runtime The development method of the screen interface.
本发明实施例第五方面还提供了一种应用程序,其中,所述应用程序用于在运行时执行本发明实施例第一方面公开的一种锁屏界面的开发方法。The fifth aspect of the embodiments of the present invention further provides an application program, where the application is used to execute a development method of a lock screen interface disclosed in the first aspect of the embodiments of the present invention at runtime.
实施本发明实施例,具有如下有益效果:Embodiments of the present invention have the following beneficial effects:
将预先抽象出的多个锁屏主题的通用功能组件的功能模块编译到锁屏界面的应用安装包的可执行文件中,可执行文件在运行时,会根据通用功能组件的功能模块执行对应的功能,这样,每开发一个锁屏主题时,就无需开发通用功能组件的功能模块,只需为通用功能组件配置布局信息和样式信息,相比现有技术,每开发一个锁屏主题都需要开发通过功能组件的功能模块而言,提高了开发效率。Compiling the function modules of the common function components of the plurality of lock screen themes that are pre-abstracted into the executable file of the application installation package of the lock screen interface, and the executable file is executed according to the function modules of the common function components at runtime Function, so that every time you develop a lock screen theme, you don't need to develop the function modules of the common function components, just configure the layout information and style information for the common function components. Compared to the prior art, every lock screen theme needs to be developed. The development efficiency is improved by the functional modules of the functional components.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例提供的一种锁屏界面的开发方法的流程示意图;1 is a schematic flowchart of a method for developing a lock screen interface according to an embodiment of the present invention;
图2是本发明实施例提供的显示设备显示目标锁屏主题的流程示意图;2 is a schematic flowchart of a display device displaying a target lock screen according to an embodiment of the present invention;
图3是本发明实施例提供的一种锁屏界面开发装置的结构示意图;3 is a schematic structural diagram of a lock screen interface development apparatus according to an embodiment of the present invention;
图4是本发明实施例提供的一种电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
在此部分,首先对本发明各个实施例均涉及到的一些基本概念进行说明。In this section, some basic concepts involved in various embodiments of the present invention are first described.
本发明实施例中的锁屏界面的开发装置(以下简称为“本发明装置”)内置于电子设备,该电子设备包括个人电脑、平板电脑等可用于编译的设备。The device for developing a lock screen interface (hereinafter referred to as "the device of the present invention") in the embodiment of the present invention is built in an electronic device, and the electronic device includes a device that can be used for compiling, such as a personal computer or a tablet computer.
通过锁屏界面的开发装置开发的锁屏界面的应用安装包可以在电子设备上运行。为了便于描述,本发明实施例中将运行锁屏界面的应用安装包的电子设备简称为显示设备。The application installation package of the lock screen interface developed by the development device of the lock screen interface can be run on the electronic device. For convenience of description, the electronic device of the application installation package running the lock screen interface is simply referred to as a display device in the embodiment of the present invention.
请参阅图1,图1是本发明实施例提供的一种锁屏界面的开发方法的流程示意图。如 图1所示所述方法可以包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart diagram of a method for developing a lock screen interface according to an embodiment of the present invention. Such as The method shown in Figure 1 can include:
步骤S11,获取预先由多个锁屏主题中抽象出的通用功能组件的功能模块。Step S11: Acquire a functional module of a common functional component abstracted in advance by a plurality of lock screen themes.
通用功能组件是指多个锁屏主题都会使用的功能组件。在其他可选实施例中,还可以是其他名称,不能以此限定本发明。通用功能组件主要分为两大类,第一类为主显示界面使用到的功能组件,如天气组件、时钟组件、日期组件、闹钟组件、相机组件、解锁提示组件、短消息提示组件或电池电量提示组件。第二类为密码解锁界面使用的到功能组件,如密码解锁组件。A generic functional component is a functional component that is used by multiple lock screen themes. In other alternative embodiments, other names may also be used, and the invention may not be limited thereby. The common functional components are mainly divided into two categories. The first one is the functional components used by the main display interface, such as weather components, clock components, date components, alarm components, camera components, unlocking prompt components, short message prompt components, or battery power. Prompt component. The second category is the functional components used by the password unlocking interface, such as the password unlocking component.
通用功能组件的功能模块用于实现通用功能组件的功能。The functional modules of the generic functional components are used to implement the functions of the generic functional components.
例如,通用功能组件为天气组件,天气组件的功能模块可以让显示设备显示对应的天气情况。所有的天气情况被抽象为:多云、尘土、冰/冷、雨、雪、晴、大风、无数据。天气组件的功能模块可以实现以下功能:当检测到当前的天气情况为多云,则让显示设备显示多云对应的信息,如多云对应的图标,或多云对应的描述信息;当检测到当前的天气情况为大风,则让显示设备显示大风对应的信息,其他天气情况以此类推。For example, the generic functional component is a weather component, and the functional component of the weather component allows the display device to display a corresponding weather condition. All weather conditions are abstracted as: cloudy, dusty, ice/cold, rain, snow, sunny, gale, no data. The function module of the weather component can realize the following functions: when detecting that the current weather condition is cloudy, let the display device display cloudy corresponding information, such as a cloudy corresponding icon, or a cloudy corresponding description information; when the current weather condition is detected; For strong winds, let the display device display the information corresponding to the strong wind, and so on in other weather conditions.
例如,通用功能组件为时钟组件,时钟可以被抽象为数字时钟和模拟时钟。数字时钟组件的功能模块可以让显示设备以数字形式显示当前的时间点;模块时钟组件的功能模块可以让显示设备以图案形式显示当前的时间点。For example, a generic functional component is a clock component, and a clock can be abstracted into a digital clock and an analog clock. The function module of the digital clock component allows the display device to display the current time point in digital form; the function module of the module clock component allows the display device to display the current time point in a pattern.
例如,通用功能组件为日期组件,日期可以抽象出三种格式。格式一:月、日、周三个元素;格式二:(月、日)和周两个元素;格式三:(月、日、周)一个元素。日期组件的功能模块可以让显示设备以上述任一格式显示当前日期。For example, a generic functional component is a date component, and dates can be abstracted into three formats. Format one: month, day, week three elements; format two: (month, day) and week two elements; format three: (month, day, week) an element. The function module of the date component allows the display device to display the current date in any of the above formats.
例如,通用功能组件为闹钟组件,闹钟组件的功能模块可以让显示设备在指定的时间点以预设方式输出提示信息。For example, the universal function component is an alarm component, and the function module of the alarm component allows the display device to output prompt information in a preset manner at a specified time point.
例如,通用功能组件为解锁提示组件,解锁提示组件的功能模块可以让显示设备以预设解锁提示方式进行解锁提示。For example, the universal function component is an unlocking prompt component, and the function module of the unlocking prompt component can cause the display device to unlock the prompt in a preset unlocking prompt manner.
例如,通用功能组件为短消息提示组件,短消息提示组件的功能模块可以让显示设备在检测到短消息时,在指定位置显示提示消息。For example, the general function component is a short message prompt component, and the function module of the short message prompt component can cause the display device to display a prompt message at a specified position when detecting a short message.
例如,通用功能组件为电池电量提示组件,可以将电池电量抽象为多种状态,如100%、80%~99%、60%~79%、40%~59%、20%~39%、0%~19%。电池电量提示组件的功能模块可以让显示设备显示当前电池电量对应状态的提示信息。For example, the universal function component is a battery power prompt component, which can abstract the battery power into various states, such as 100%, 80% to 99%, 60% to 79%, 40% to 59%, 20% to 39%, and 0. %~19%. The function module of the battery power prompt component allows the display device to display a prompt message indicating the current state of the battery power.
例如,通用功能组件为相机组件,相机组件的功能模块可以让显示设备在指定位置显示相机图标,并通过该相机图标提供相机应用的快捷方式。 For example, the universal function component is a camera component, and the function module of the camera component allows the display device to display a camera icon at a specified location, and provides a shortcut to the camera application through the camera icon.
例如,通用功能组件为密码解锁组件,密码解锁组件的格式分为九宫格图案解锁和数字解锁。九宫格图案解锁组件的功能模块可以让显示设备以九宫格图案显示解锁图标;数字解锁组件的功能模块可以让显示设备以数字解锁的形式显示解锁图标。For example, the universal function component is a password unlocking component, and the format of the password unlocking component is divided into a nine-square grid pattern unlocking and a digital unlocking. The function module of the Jiugongge pattern unlocking component allows the display device to display the unlocking icon in a nine-square grid pattern; the function module of the digital unlocking component allows the display device to display the unlocking icon in the form of digital unlocking.
步骤S12,将所述功能模块编译到锁屏界面的应用安装包的可执行文件中。其中,所述可执行文件用于加载锁屏主题的锁屏安装包中的配置文件和资源文件,所述配置文件包括所述通用功能组件的布局信息和样式信息。In step S12, the function module is compiled into an executable file of an application installation package of the lock screen interface. The executable file is used to load a configuration file and a resource file in a lock screen installation package of a lock screen theme, and the configuration file includes layout information and style information of the universal function component.
具体的,将预先抽象出的通用功能组件的功能模块都编译到锁屏界面的应用安装包的可执行文件中,当显示设备执行可执行文件时,可通过动态加载技术加载锁屏主题的锁屏安装包中的配置文件和资源文件。可选的,锁屏界面的应用安装包为用于为屏幕提供锁屏服务的锁屏应用程序的安装包。Specifically, the function modules of the pre-abstracted general function component are compiled into the executable file of the application installation package of the lock screen interface, and when the display device executes the executable file, the lock of the lock screen theme can be loaded by the dynamic loading technology. Configuration files and resource files in the screen installation package. Optionally, the application installation package of the lock screen interface is an installation package of a lock screen application for providing a lock screen service for the screen.
其中,该配置文件包括通用功能组件的布局信息和样式信息。The configuration file includes layout information and style information of the general function component.
例如,通用功能组件为天气组件,配置文件可用于配置天气组件在主显示界面的位置、颜色、大小等样式,也可用于配置天气组件显示当前天气的描述信息,如当前天气为晴天、描述信息为万里无云。资源文件可以包括上述各种天气情况的图片。显示设备在执行可执行文件时,通过抽象出的天气组件的功能模块检测实际的天气情况,并根据配置文件和资源文件在主显示界面显示对应的内容。For example, the common function component is a weather component, and the configuration file can be used to configure the location, color, size, and the like of the weather component in the main display interface, and can also be used to configure the weather component to display the description information of the current weather, such as the current weather is sunny, and the description information. It is cloudless. The resource file can include pictures of the various weather conditions described above. When the executable device executes the executable file, the actual weather condition is detected by the function module of the abstracted weather component, and the corresponding content is displayed on the main display interface according to the configuration file and the resource file.
例如,通用功能组件为时钟组件,时钟可以被抽象为数字时钟和模拟时钟。For example, a generic functional component is a clock component, and a clock can be abstracted into a digital clock and an analog clock.
数字时钟的格式由0~9个数字的字体和冒号,配置文件可用于配置数字的大小、颜色、位置等等样式。配置文件还可用于配置数字时钟的布局,如横向排列(如数字间、数字及两点间统一间距横向排列)或纵向排列(如时针数字和分针数字间纵向排列、数字间的冒号横向排列)。资源文件可以包括0~9的数字的字体。模拟时钟的格式由时针、分针、秒针、表盘、表盖组成,配置文件可用于配置模拟时钟的位置、大小、颜色,以及用于配置秒针匀速转动或每秒跳动一次等等。资源文件可以包括时针、分针、秒针、表盘、表盖的显示图标的资源文件。锁屏主题的时钟组件可以对应一种格式,显示设备通过抽象出的该格式对应的时钟组件的功能模块检测当前的时间,并根据配置文件和资源文件在主显示界面显示对应的内容。例如配置文件配置的模拟时钟组件的配置信息为:宽和高分别为200dp,并且在屏幕中水平居中,距离顶部距离为100dp,外框图像、时针图像、分针图像、秒针图像、分别指定了一个对应的图片资源,并且指针的运动方式为匀速转动。显示设备可以根据配置文件配置的模拟时钟组件在主显示界面显示对应的内容。The format of the digital clock consists of a font of 0 to 9 digits and a colon. The configuration file can be used to configure the size, color, position, etc. of the number. Profiles can also be used to configure the layout of digital clocks, such as horizontal alignment (such as between numbers, numbers, and horizontal spacing between two points) or vertical alignment (such as vertical alignment between hour and digital hands, and horizontal arrangement of numbers between numbers) . The resource file may include a font of numbers from 0 to 9. The format of the analog clock consists of an hour hand, a minute hand, a second hand, a dial, and a cover. The configuration file can be used to configure the position, size, and color of the analog clock, as well as to configure the second hand to rotate at a constant speed or to beat once per second. The resource file may include a resource file of an hour hand, a minute hand, a second hand, a dial, and a display icon of the cover. The clock component of the lock screen theme may correspond to a format, and the display device detects the current time by abstracting the function module of the clock component corresponding to the format, and displays the corresponding content on the main display interface according to the configuration file and the resource file. For example, the configuration information of the analog clock component configured by the configuration file is: width and height are respectively 200dp, and is horizontally centered in the screen, and the distance from the top is 100dp, and the outer frame image, the hour hand image, the minute hand image, the second hand image, respectively specify one. Corresponding picture resources, and the pointer moves in a constant speed. The display device can display the corresponding content on the main display interface according to the analog clock component configured by the configuration file.
例如,通用功能组件为日期组件,可通过配置文件配置日期数字的字体、颜色、大 小、位置等等样式。锁屏主题的日期组件可以对应一种格式,显示设备通过抽象出的格式对应的日期组件的功能模块检测当前日期,并根据配置文件和资源文件在主显示界面显示对应的内容。For example, the generic function component is a date component, which can be configured with a date number font, color, and large through a configuration file. Small, location, etc. The date component of the lock screen theme may correspond to a format, and the display device detects the current date through the function module of the date component corresponding to the abstracted format, and displays the corresponding content on the main display interface according to the configuration file and the resource file.
例如,通用功能组件为闹钟组件,锁屏主题的配置文件可用于配置是否显示描述信息,如闹钟图标旁描述信息为当前显示设备所设置的闹钟时间,以上字体、大小、位置、颜色等样式信息均可在配置文件中配置。资源文件可包括闹钟组件对应的图片资源。For example, the common function component is an alarm component, and the configuration file of the lock screen theme can be used to configure whether to display description information, such as the alarm time set by the alarm icon, the alarm time set by the current display device, and the above font, size, position, color, and the like. Can be configured in the configuration file. The resource file may include a picture resource corresponding to the alarm component.
例如,通用功能组件为解锁提示组件,配置文件可用于配置解锁提示组件在主显示界面布局和样式。For example, the generic function component is an unlocking prompt component, and the configuration file can be used to configure the unlocking prompt component in the main display interface layout and style.
例如,通用功能组件为短消息提示组件,配置文件可用于配置短消息提示组件在主显示界面布局和样式(如背景颜色、透明度等等)。短消息包括QQ消息、邮件、Face Book消息等等。For example, the generic function component is a short message prompt component, and the configuration file can be used to configure the short message prompt component in the main display interface layout and style (such as background color, transparency, etc.). Short messages include QQ messages, emails, Face Book messages, and more.
例如,通用功能组件为电池电量提示组件,配置文件可用于配置电池电量提示组件在主显示界面布局和样式。显示设备通过抽象出的电池电量提示组件的功能模块检测当前电量,并根据配置文件和资源文件在主显示界面显示对应的内容。For example, the generic feature component is the battery charge component, and the profile can be used to configure the battery display component layout and style in the main display interface. The display device detects the current power through the abstracted function module of the battery power prompt component, and displays the corresponding content on the main display interface according to the configuration file and the resource file.
例如,通用功能组件为相机组件,配置文件可配置相机组件在主显示界面布局和样式。资源文件可可以包括相机组件的显示图标。For example, the generic functional component is a camera component, and the configuration file configures the layout and style of the camera component in the main display interface. The resource file may include a display icon of the camera component.
例如,通用功能组件为密码解锁组件,配置文件可用于配置密码解锁组件在密码解锁界面的位置、颜色等等样式。若密码解锁组件的格式为九宫格图案解锁,配置文件还可用于配置九宫格中每个图案的大小、透明度等等样式信息。For example, the universal function component is a password unlocking component, and the configuration file can be used to configure the location, color, and the like of the password unlocking component in the password unlocking interface. If the format of the password unlocking component is 9-square grid pattern unlocking, the configuration file can also be used to configure the size, transparency, and the like of each pattern in the nine-square grid.
进一步的,所述配置文件还包括至少一个所述通用功能组件的动画信息。所述动画信息包括位移信息、缩小信息、放大信息、透明信息、旋转信息、反转信息中的至少一种信息。通用功能组件以解锁提示组件为例,配置文件还可用于配置解锁提示组件的动画信息,使得解锁提示组件的图标以动画方式展示在主显示界面。Further, the configuration file further includes animation information of at least one of the universal function components. The animation information includes at least one of displacement information, reduction information, magnification information, transparency information, rotation information, and reverse information. The common function component takes the unlocking prompt component as an example, and the configuration file can also be used to configure the animation information of the unlocking prompt component, so that the icon of the unlocking prompt component is animated on the main display interface.
再进一步的,配置文件还包括自定义功能组件的功能模块。自定义功能组件是指除通用功能组件以外的功能组件,如通用功能组件包括:天气组件、时钟组件、日期组件、闹钟组件、相机组件、解锁提示组件、短消息提示组件,不包括电池电量提示组件,若锁屏主题需要设置电池电量提示组件,此时,主显示界面的配置文件不仅包括电池电量提示组件的样式信息和布局信息,还包括用于实现电池电量提示组件功能的模块。Further, the configuration file also includes functional modules of the custom functional components. A custom function component refers to a functional component other than a general-purpose functional component, such as a universal component, including a weather component, a clock component, a date component, an alarm component, a camera component, an unlocking prompt component, a short message prompt component, and does not include a battery power prompt. Component, if the lock screen theme needs to set the battery power prompt component, at this time, the configuration file of the main display interface not only includes the style information and layout information of the battery power prompt component, but also includes a module for realizing the function of the battery power prompt component.
在图1所示的实施例中,将预先抽象出的多个锁屏主题的通用功能组件的功能模块,编译到锁屏界面的应用安装包的可执行文件中,可执行文件在运行时,会根据通用功能组 件的功能模块执行对应的功能,这样,每开发一个锁屏主题时,就无需开发通用功能组件的功能模块,只需为通用功能组件配置布局信息和样式信息,相比现有技术,每开发一个锁屏主题都需要开发通过功能组件的功能模块而言,提高了开发效率。In the embodiment shown in FIG. 1 , the function modules of the common function components of the plurality of lock screen themes that are pre-abstracted are compiled into the executable file of the application installation package of the lock screen interface, and the executable file is at runtime. General function group The function module of the piece performs the corresponding function, so that each time a lock screen theme is developed, it is not necessary to develop the function module of the universal function component, and only the layout information and the style information are configured for the common function component, compared with the prior art, each development A lock screen theme needs to be developed to improve the development efficiency through the functional modules of the functional components.
请参阅图2,图2是本发明实施例提供的显示设备显示目标锁屏主题的流程示意图。其中,目标锁屏主题是多个锁屏主题中的任一锁屏主题。本发明实施例是显示设备在运行上述可执行文件时的前提下执行的。本发明实施例的锁屏界面包括主显示界面和密码解锁界面,主显示界面用于显示功能组件,如天气组件、时钟组件、日期组件、闹钟组件、相机组件、解锁提示组件、短消息提示组件、电池电量提示组件等等。密码解锁界面用于显示解码解锁页。Referring to FIG. 2, FIG. 2 is a schematic flowchart of a display device displaying a target lock screen according to an embodiment of the present invention. Among them, the target lock screen theme is any lock screen theme in multiple lock screen themes. The embodiment of the invention is executed on the premise that the display device runs the above executable file. The lock screen interface of the embodiment of the invention comprises a main display interface and a password unlocking interface, and the main display interface is used for displaying functional components, such as a weather component, a clock component, a date component, an alarm component, a camera component, an unlocking prompt component, and a short message prompt component. , battery power prompt component, and so on. The password unlock interface is used to display the decode unlock page.
步骤S21,获取输入的目标锁屏主题的包名。In step S21, the package name of the input target lock screen theme is obtained.
在一种可选的实施方式中,显示设备可以提供多个锁屏主题的入口,当检测到针对某个锁屏主题的入口输入的触发指令时,显示设备可以将该锁屏主题作为目标锁屏主题,并获取所述目标锁屏主题的包名。In an optional implementation manner, the display device may provide an entry of a plurality of lock screen themes, and when detecting a trigger instruction for an entry of a lock screen theme, the display device may use the lock screen theme as a target lock Screen theme and get the package name of the target lock screen theme.
在另一种可选的实施方式中,显示设备在从灭屏切换到亮屏时,将灭屏之前的锁屏主题作为目标锁屏主题,并获取所述目标锁屏主题的包名。In another optional implementation manner, when the display device switches from off-screen to bright screen, the lock screen theme before the screen is turned off is the target lock screen theme, and the package name of the target lock screen theme is obtained.
步骤S22,通过所述目标锁屏主题的包名,确定所述目标锁屏主题的锁屏安装包。Step S22: Determine, by using a package name of the target lock screen theme, a lock screen installation package of the target lock screen theme.
具体的,所述锁屏安装包中包括所述主显示界面的配置文件和资源文件,所述主显示界面的配置文件包括所述主显示界面的通用功能组件的布局信息和样式信息;所述锁屏安装包中还包括所述密码解锁界面的配置文件和资源文件,所述密码解锁界面的配置文件包括密码解锁组件的布局信息和样式信息。Specifically, the lock screen installation package includes a configuration file and a resource file of the main display interface, where the configuration file of the main display interface includes layout information and style information of a common function component of the main display interface; The lock screen installation package further includes a configuration file and a resource file of the password unlocking interface, and the configuration file of the password unlocking interface includes layout information and style information of the password unlocking component.
具体的,应指出的是,在本发明实施例中,主显示界面和密码解锁界面的配置内容在不同的配置文件中,在其他可选实施例中,主显示界面和密码解锁界面的配置内容可设置于同一配置文件中,本发明不限定。Specifically, it should be noted that, in the embodiment of the present invention, the configuration content of the main display interface and the password unlocking interface are in different configuration files. In other optional embodiments, the configuration content of the main display interface and the password unlocking interface are It can be set in the same configuration file, and the present invention is not limited.
步骤S23,通过所述密码解锁界面的密码解锁组件的布局信息,确定所述密码解锁组件在所述密码解锁界面的布局。Step S23: Determine, by using the layout information of the password unlocking component of the password unlocking interface, the layout of the password unlocking component on the password unlocking interface.
步骤S24,通过所述密码解锁组件的样式信息,确定所述密码解锁组件调用的资源文件,以及密码解锁组件在密码解锁界面的样式。Step S24: Determine, by using the style information of the password unlocking component, a resource file invoked by the password unlocking component, and a style of the password unlocking component in the password unlocking interface.
步骤S25,通过所述密码解锁界面的所述布局和所述样式加载对应的资源文件,生成并显示所述密码解锁界面。 Step S25: The password unlocking interface is generated and displayed by loading the corresponding resource file by the layout of the password unlocking interface and the pattern.
步骤S26,在密码解锁通过时,通过所述主显示界面的通用功能组件的布局信息,确定所述主显示界面的通用功能组件在所述主显示界面的布局。Step S26, when the password is unlocked, the layout of the general function component of the main display interface on the main display interface is determined by the layout information of the general function component of the main display interface.
步骤S27,通过所述主显示界面的通用功能组件的样式信息,确定所述主显示界面的通用功能组件调用的资源文件,以及通用功能组件在所述主显示界面的样式。Step S27: Determine, by using the style information of the general function component of the main display interface, a resource file invoked by the universal function component of the main display interface, and a style of the universal function component in the main display interface.
步骤S28,通过通用功能组件的所述布局和所述样式加载对应的资源文件,生成并显示所述主显示界面。Step S28: The main display interface is generated and displayed by loading the corresponding resource file by the layout of the universal function component and the style.
具体的,应指出的是,步骤S23~S25用于显示密码解锁界面,步骤S26~S28用于显示主显示界面。本发明实施例是先显示密码解锁界面,若密码解锁通过,才执行显示主显示界面。在其他可选实施例中,显示设备可同时显示密码解锁界面和主显示界面,密码解锁界面显示在主显示界面之上。Specifically, it should be noted that steps S23-S25 are used to display the password unlocking interface, and steps S26-S28 are used to display the main display interface. In the embodiment of the present invention, the password unlocking interface is displayed first, and if the password is unlocked, the display main display interface is executed. In other optional embodiments, the display device can simultaneously display the password unlocking interface and the main display interface, and the password unlocking interface is displayed on the main display interface.
可选的,在显示主显示界面时,若资源文件中存在与目标锁屏主题的包名相关联的资源文件,则直接根据目标锁屏主题的包名加载对应的资源文件。Optionally, when the main display interface is displayed, if a resource file associated with the package name of the target lock screen theme exists in the resource file, the corresponding resource file is directly loaded according to the package name of the target lock screen theme.
可选的,在显示主显示界面时,还可以根据配置文件中的功能组件的动画信息控制对应的功能组件调用的图标的运动。Optionally, when the main display interface is displayed, the motion of the icon called by the corresponding functional component may also be controlled according to the animation information of the functional component in the configuration file.
在图2所示的实施例中,通过获取到的锁屏主题的包名确定对应的锁屏安装包,再通过加载的方式加载该锁屏安装包中的内容,从而显示对应的锁屏界面。由于,锁屏主题的锁屏安装包中只设置了资源文件和配置文件,因此,缩小了锁屏主题的锁屏安装包的体积,从而减少了下载锁屏主题时消耗的流量。In the embodiment shown in FIG. 2, the corresponding lock screen installation package is determined by the obtained package name of the lock screen theme, and then the content in the lock screen installation package is loaded by loading, thereby displaying the corresponding lock screen interface. . Since only the resource file and the configuration file are set in the lock screen installation package of the lock screen theme, the volume of the lock screen installation package of the lock screen theme is reduced, thereby reducing the traffic consumed when downloading the lock screen theme.
请参阅图3,本发明实施例提供了一种锁屏界面的开发装置的结构示意图。如图3所示,本发明装置至少可以包括获取模块31以及编译模块32,其中:Referring to FIG. 3, an embodiment of the present invention provides a schematic structural diagram of a device for developing a lock screen interface. As shown in FIG. 3, the apparatus of the present invention may at least include an obtaining module 31 and a compiling module 32, wherein:
获取模块31,用于获取预先由多个锁屏主题中抽象出的通用功能组件的功能模块;编译模块32,用于将所述功能模块编译到锁屏界面的应用安装包的可执行文件中;其中,所述可执行文件用于加载锁屏主题的锁屏安装包中的配置文件和资源文件,所述配置文件包括所述通用功能组件的布局信息和样式信息。The obtaining module 31 is configured to acquire a function module of a general function component abstracted from a plurality of lock screen themes; the compiling module 32 is configured to compile the function module into an executable file of the application installation package of the lock screen interface. The executable file is used to load a configuration file and a resource file in a lock screen installation package of a lock screen theme, and the configuration file includes layout information and style information of the general function component.
进一步的,所述配置文件还包括至少一个所述通用功能组件的动画信息。所述动画信息包括位移信息、缩小信息、放大信息、透明信息、旋转信息、反转信息中的至少一种信息。Further, the configuration file further includes animation information of at least one of the universal function components. The animation information includes at least one of displacement information, reduction information, magnification information, transparency information, rotation information, and reverse information.
其中,所述通用功能组件包括天气组件、时钟组件、日期组件、闹钟组件、相机组件、解锁提示组件、短消息提示组件、电池电量提示组件中的至少一个。 The universal function component includes at least one of a weather component, a clock component, a date component, an alarm component, a camera component, an unlocking prompt component, a short message prompt component, and a battery power prompt component.
进一步的,所述通用功能组件还包括密码解锁组件。Further, the universal function component further includes a password unlocking component.
其中,所述配置文件还包括自定义功能组件的功能模块,以及,所述自定义功能组件的布局信息和样式信息。The configuration file further includes a function module of the custom function component, and layout information and style information of the custom function component.
请参阅图4,本发明实施例提供了一种电子设备的结构示意图。该电子设备4包含图3所述的锁屏界面开发装置,且该电子设备4可以用于实施图1实施例中提供的锁屏界面开发方法。具体来讲:Referring to FIG. 4, an embodiment of the present invention provides a schematic structural diagram of an electronic device. The electronic device 4 includes the lock screen interface development device described in FIG. 3, and the electronic device 4 can be used to implement the lock screen interface development method provided in the embodiment of FIG. 1. Specifically:
该电子设备4可以包括壳体41、处理器42、存储器43、电路板44和电源电路45,其中,电路板44安置在壳体41围成的空间内部,处理器42和存储器43设置在电路板44上;电源电路45,用于为电子设备的各个电路或器件供电;存储器43用于存储可执行程序代码;处理器42通过读取存储器43中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行以下步骤:The electronic device 4 may include a housing 41, a processor 42, a memory 43, a circuit board 44, and a power supply circuit 45, wherein the circuit board 44 is disposed inside a space surrounded by the housing 41, and the processor 42 and the memory 43 are disposed in the circuit On the board 44; a power supply circuit 45 for powering various circuits or devices of the electronic device; a memory 43 for storing executable program code; and a processor 42 for executing and executing by reading executable program code stored in the memory 43 The program code corresponds to the program to perform the following steps:
获取预先由多个锁屏主题中抽象出的通用功能组件的功能模块;将所述功能模块编译到锁屏界面的应用安装包的可执行文件中;其中,所述可执行文件用于加载锁屏主题的锁屏安装包中的配置文件和资源文件,所述配置文件包括所述通用功能组件的布局信息和样式信息。Obtaining a function module of a general function component abstracted in advance by a plurality of lock screen topics; compiling the function module into an executable file of an application installation package of a lock screen interface; wherein the executable file is used to load a lock A configuration file and a resource file in a lock screen installation package of a screen theme, the configuration file including layout information and style information of the general function component.
本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以通过计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟或光盘)中,包括若干指令用以控制电子设备执行本发明实施例图1所描述的锁屏界面的开发方法的部分或全部的步骤。The technical solution of the embodiments of the present invention may be embodied in the form of a computer software product stored in a storage medium (such as a ROM/RAM, a magnetic disk or an optical disk). The method includes a plurality of instructions for controlling the electronic device to perform part or all of the development method of the lock screen interface described in FIG. 1 of the embodiment of the present invention.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material or feature is included in at least one embodiment or example of the invention. In the present specification, the schematic representation of the above terms is not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, various embodiments or examples described in the specification, as well as features of various embodiments or examples, may be combined and combined.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。 Moreover, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" or "second" may include at least one of the features, either explicitly or implicitly. In the description of the present invention, the meaning of "a plurality" is at least two, such as two, three, etc., unless specifically defined otherwise.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a particular logical function or process. And the scope of the preferred embodiments of the invention includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in an opposite order depending on the functions involved, in the order shown or discussed. It will be understood by those skilled in the art to which the embodiments of the present invention pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, a "computer-readable medium" can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件 功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The integrated module if in software When the functional modules are implemented and sold or used as stand-alone products, they can also be stored in a computer readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。The above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. Although the embodiments of the present invention have been shown and described, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the invention. The embodiments are subject to variations, modifications, substitutions and variations.
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.

Claims (13)

  1. 一种锁屏界面的开发方法,其特征在于,包括:A method for developing a lock screen interface, comprising:
    获取预先由多个锁屏主题中抽象出的通用功能组件的功能模块;Obtaining functional modules of common functional components abstracted in advance by a plurality of lock screen themes;
    将所述功能模块编译到锁屏界面的应用安装包的可执行文件中;Compiling the function module into an executable file of an application installation package of the lock screen interface;
    其中,所述可执行文件用于加载锁屏主题的锁屏安装包中的配置文件和资源文件,所述配置文件包括所述通用功能组件的布局信息和样式信息。The executable file is used to load a configuration file and a resource file in a lock screen installation package of a lock screen theme, and the configuration file includes layout information and style information of the universal function component.
  2. 如权利要求1所述的方法,其特征在于,所述配置文件还包括至少一个所述通用功能组件的动画信息。The method of claim 1 wherein said profile further comprises animation information for at least one of said generic functional components.
  3. 如权利要求2所述的方法,其特征在于,所述动画信息包括位移信息、缩小信息、放大信息、透明信息、旋转信息、反转信息中的至少一种信息。The method according to claim 2, wherein the animation information comprises at least one of displacement information, reduction information, magnification information, transparency information, rotation information, and reverse information.
  4. 如权利要求1所述的方法,其特征在于,所述通用功能组件包括天气组件、时钟组件、日期组件、闹钟组件、相机组件、解锁提示组件、短消息提示组件、电池电量提示组件中的至少一个。The method of claim 1, wherein the universal function component comprises at least one of a weather component, a clock component, a date component, an alarm component, a camera component, an unlocking prompt component, a short message prompt component, and a battery power prompt component. One.
  5. 如权利要求4所述的方法,其特征在于,所述通用功能组件还包括密码解锁组件。The method of claim 4 wherein said universal function component further comprises a password unlocking component.
  6. 如权利要求1-5中任一项所述的方法,其特征在于,所述配置文件还包括自定义功能组件的功能模块,以及,所述自定义功能组件的布局信息和样式信息。The method according to any one of claims 1 to 5, wherein the configuration file further comprises a function module of a custom function component, and layout information and style information of the custom function component.
  7. 一种锁屏界面的开发装置,其特征在于,包括:A device for developing a lock screen interface, comprising:
    获取模块,用于获取预先由多个锁屏主题中抽象出的通用功能组件的功能模块;An acquisition module, configured to acquire a function module of a common function component abstracted in advance by a plurality of lock screen topics;
    编译模块,用于将所述功能模块编译到锁屏界面的应用安装包的可执行文件中;a compiling module, configured to compile the function module into an executable file of an application installation package of a lock screen interface;
    其中,所述可执行文件用于加载锁屏主题的锁屏安装包中的配置文件和资源文件,所述配置文件包括所述通用功能组件的布局信息和样式信息。The executable file is used to load a configuration file and a resource file in a lock screen installation package of a lock screen theme, and the configuration file includes layout information and style information of the universal function component.
  8. 如权利要求7所述的装置,其特征在于,所述配置文件还包括至少一个所述通用功能组件的动画信息。The apparatus of claim 7 wherein said profile further comprises animation information for at least one of said generic functional components.
  9. 如权利要求8所述的装置,其特征在于,所述动画信息包括位移信息、缩小信息、放大信息、透明信息、旋转信息、反转信息中的至少一种信息。The apparatus according to claim 8, wherein the animation information comprises at least one of displacement information, reduction information, magnification information, transparency information, rotation information, and reverse information.
  10. 如权利要求7所述的装置,其特征在于,所述通用功能组件包括天气组件、时钟组件、日期组件、闹钟组件、相机组件、解锁提示组件、短消息提示组件、电池电量提示组件中的至少一个。 The apparatus according to claim 7, wherein said universal function component comprises at least one of a weather component, a clock component, a date component, an alarm component, a camera component, an unlocking prompt component, a short message prompting component, and a battery power prompting component. One.
  11. 如权利要求10所述的装置,其特征在于,所述通用功能组件还包括密码解锁组件。The device of claim 10 wherein said universal function component further comprises a password unlocking component.
  12. 如权利要求7-11中任一项所述的装置,其特征在于,所述配置文件还包括自定义功能组件的功能模块,以及,所述自定义功能组件的布局信息和样式信息。The apparatus according to any one of claims 7 to 11, wherein the configuration file further comprises a function module of a custom function component, and layout information and style information of the custom function component.
  13. 一种电子设备,其特征在于,所述电子设备包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行以下步骤:An electronic device, comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed in the circuit a power circuit for powering various circuits or devices of an electronic device; a memory for storing executable program code; and a processor for executing a program corresponding to the executable program code by reading executable program code stored in the memory To perform the following steps:
    获取预先由多个锁屏主题中抽象出的通用功能组件的功能模块;Obtaining functional modules of common functional components abstracted in advance by a plurality of lock screen themes;
    将所述功能模块编译到锁屏界面的应用安装包的可执行文件中;Compiling the function module into an executable file of an application installation package of the lock screen interface;
    其中,所述可执行文件用于加载锁屏主题的锁屏安装包中的配置文件和资源文件,所述配置文件包括所述通用功能组件的布局信息和样式信息。 The executable file is used to load a configuration file and a resource file in a lock screen installation package of a lock screen theme, and the configuration file includes layout information and style information of the universal function component.
PCT/CN2016/109307 2016-05-13 2016-12-09 Screen-lock method, apparatus, and electronic device WO2017193574A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610319401.2 2016-05-13
CN201610319401.2A CN106020808A (en) 2016-05-13 2016-05-13 Screen locking interface development method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2017193574A1 true WO2017193574A1 (en) 2017-11-16

Family

ID=57100800

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/109307 WO2017193574A1 (en) 2016-05-13 2016-12-09 Screen-lock method, apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN106020808A (en)
WO (1) WO2017193574A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020808A (en) * 2016-05-13 2016-10-12 北京金山安全软件有限公司 Screen locking interface development method and device and electronic equipment
CN106557318A (en) * 2016-11-15 2017-04-05 上海传英信息技术有限公司 Locking screen interface method to set up and user terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819432A (en) * 2012-07-11 2012-12-12 广州市久邦数码科技有限公司 Mobile phone screen locking interface achievement method based on scripts
CN103870251A (en) * 2012-12-07 2014-06-18 广州爱游信息科技有限公司 Method and device for quickly generating game UI (User Interface) function panel from PSD (Photoshop Document)
CN103955364A (en) * 2014-04-15 2014-07-30 南威软件股份有限公司 Front end assembly method suitable for mobile phone
US20150261506A1 (en) * 2014-03-11 2015-09-17 Telefonaktiebolaget L M Ericsson (Publ) Methods and systems for dynamic runtime generation of customized applications
CN106020808A (en) * 2016-05-13 2016-10-12 北京金山安全软件有限公司 Screen locking interface development method and device and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102393806A (en) * 2011-10-24 2012-03-28 深圳市智慧宇宙管理咨询有限公司 Mobile terminal, display method and system for locking screen interface
CN103037079A (en) * 2012-12-06 2013-04-10 广东欧珀移动通信有限公司 Mobile terminal lock screen system and implementation method thereof
CN103853485B (en) * 2012-12-07 2018-10-02 腾讯科技(深圳)有限公司 touch screen unlocking method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819432A (en) * 2012-07-11 2012-12-12 广州市久邦数码科技有限公司 Mobile phone screen locking interface achievement method based on scripts
CN103870251A (en) * 2012-12-07 2014-06-18 广州爱游信息科技有限公司 Method and device for quickly generating game UI (User Interface) function panel from PSD (Photoshop Document)
US20150261506A1 (en) * 2014-03-11 2015-09-17 Telefonaktiebolaget L M Ericsson (Publ) Methods and systems for dynamic runtime generation of customized applications
CN103955364A (en) * 2014-04-15 2014-07-30 南威软件股份有限公司 Front end assembly method suitable for mobile phone
CN106020808A (en) * 2016-05-13 2016-10-12 北京金山安全软件有限公司 Screen locking interface development method and device and electronic equipment

Also Published As

Publication number Publication date
CN106020808A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
US11348201B2 (en) Electronic device having rollable display and method of controlling the same
RU2567503C2 (en) Method and apparatus for providing information history associated with time information
EP2834807B1 (en) Authenticated release of data towards a device driver
US9927952B2 (en) Utilizing a ribbon to access an application user interface
KR102257262B1 (en) Adaptive user interface pane manager
CN115097982B (en) Method for processing content and electronic device thereof
CN102968312B (en) User interface placeholder for application extension program
WO2021008334A1 (en) Data binding method, apparatus, and device of mini program, and storage medium
CN104106054A (en) Power efficient application notification system
TW201433967A (en) Auto-complete with persisted atomically linked entities
WO2015149363A1 (en) Expandable application representation,activity levels,and desktop representation
US20160266878A1 (en) Automatic wireframing using images
KR20160143752A (en) Expandable application representation and taskbar
CN105393222A (en) Delegation of rendering between a web application and a native application
CN104020990A (en) Date selection control displaying method and device
EP4167117A1 (en) Permission optimization method and related device
WO2017193574A1 (en) Screen-lock method, apparatus, and electronic device
US8898566B1 (en) Last screen rendering for electronic book readers
US7173630B2 (en) Information processing apparatus and method, and information processing program
Novák et al. Beginning Windows 8 application development
EP4184299A1 (en) Icon display method and apparatus, and electronic device
CN105893336A (en) Text display method and terminal
KR101214894B1 (en) Information processing apparatus for providing different user interface according to pivot status of display screen, and method for providing different user interface therefor
CN112162805A (en) Screenshot method and device and electronic equipment
CN113760164A (en) Display device and response method of control operation thereof

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16901529

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16901529

Country of ref document: EP

Kind code of ref document: A1